What causes the error “Error: Device 0 (vif) could not be connected. Hotplug scripts not working.” on CentOS5.6 x86_64 with Xen kernel

centos5domuxen

I have 10 domU's on my CentOS 5.6 server running Xen kernel.
All 10 are set to start on system boot; however, for just 1 of the machines, I get this error:

Error: Device 0 (vif) could not be connected. Hotplug scripts not working.

All 10 domU's have three configured network interfaces, all bridged to a physical interface on the host. All three work great – eth's 1, 2, and 3 are bridged to each VM's eth0,eth1, and eth2.

I can start this VM by hand and it starts without issue. I've tried via command line:

xm create /path/to/vm-config.cfg

And also in virt-manager.

What is causing this issue, and how can I get this one VM to start on host bootup just like the other 9 do?

Best Answer

I have this problem after create and destroy vm some time. It is udev problem. As i can understand, udev do not handle new vif devices after DOMID greater than 10. I fix it after adding next strings to udev rules: SUBSYSTEM=="xen-backend", KERNEL=="vif*", ACTION=="online", RUN+="$env{script} online" SUBSYSTEM=="xen-backend", KERNEL=="vif*", ACTION=="offline", RUN+="$env{script} offline"

Also i am restart udev (may be it is reason why xm create start to work?).

Related Topic