xenstored database may get corrupted sometimes and upon vm startup it would give a very misleading message like.
# xm create /etc/xen/win2k3
Using config file “/etc/xen/win2k3”.
Error: (28, ‘No space left on device, while writing /local/domain/0/backend/vbd/
18/768/online : 1′)
The workaround is documented
here. In short, you have to do the following:
- Stop xend "/etc/init.d/xend stop"
- Kill xenstored as the above script does not shut it down (I also killed xenconsoled, just in case)
- Delete all tdb file from /var/lib/xenstored/tdb*
- Start xend
- Attempt to start your vm.
- If you see the following error just reboot the machine.
# xm create /etc/xen/win2k3
Error: Device 0 (vif) could not be connected. Hotplug scripts not working. - After reboot everything should be fine.