How to solve "Device 0 (vif) could not be connected. Hotplug scripts not working."?

feisky picture feisky · Oct 2, 2011 · Viewed 14.3k times · Source

When starting a virtual machine, xm shows:

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

Why does xm show this? How to solve it?

Answer

Todd Deshane picture Todd Deshane · Oct 3, 2011

From the Xen wiki:

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

This problem is often caused by not having "xen-netback" driver loaded in dom0 kernel.

The hotplug scripts are located in /etc/xen/scripts by default, and are labeled with the prefix vif-*. Those scripts log to /var/log/xen/xen-hotplug.log, and more detailed information can be found there.

http://wiki.xen.org/wiki/Xen_Common_Problems