MRKAVANA (mrkavana@gmail.com) - www.facebook.com/kavanathai

Jul 18, 2011

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

You may get this error while restarting the xen vps or virtual server.
It wont start if you are restarting it from front end like solusvm.

So start form the backend.
[root@xen ~]# xm create /home/xen/vm130/vm130.cfg
Using config file "/home/xen/vm130/vm130.cfg".
Error: Device 0 (vif) could not be connected. Hotplug scripts not working.

If you get any hotplug error then check the hotplug error log.
[root@xen ~]#  tail /var/log/xen/xen-hotplug.log
Nothing to flush.

can't add vifvm130.0 to bridge eth0: Operation not supported
Nothing to flush.
can't add vifvm130.0 to bridge eth0: Operation not supported
Nothing to flush.
can't add vifvm130.0 to bridge eth0: Operation not supported
[root@xen ~]#

Now you know the error. Open the configuration file.
vi /home/xen/vm130/vm130.cfg

See the bridge device name was given
vif        = ['type=ioemu, ip=178.162.239.188, vifname=vifvm130.0, mac=00:16:3e:50:e1:8c, bridge=eth0']

Change it to as follows.
vif        = ['type=ioemu, ip=178.162.239.188, vifname=vifvm130.0, mac=00:16:3e:50:e1:8c']
Now it works. Have fun.


No comments:

Post a Comment