Wednesday, October 15, 2008

F10-beta Virtualization: native -vs- hosted

More evidence that the Fedora 10 Beta virtualization technology, KVM, is a hosted solution rather than the native solution provided by Xen in versions 5 through 8. In FC6, restarting the virtualization library deamon (libvirtd), was a standard troubleshooting technique. In F10, it crashs the VM, since the VM is running inside the deamon.

FC6 using Xen:
[root@baltar ~]# xm list
Name           ID Mem VCPUs State
Domain-0     0   141         1       r-----
valhalla         5     95         1       -b----
[root@baltar ~]# service libvirtd restart
Stopping libvirtd daemon:       [ OK ]
Starting libvirtd daemon:       [ OK ]
[root@baltar ~]# xm list
Name           ID Mem VCPUs State
Domain-0     0   141         1       r-----
valhalla         5     95         1       -b----
[root@baltar ~]#
The VM survives.

F10-Beta running KVM:
[root@adama ~]# virsh list
Id Name             State
----------------------------------
14 vinci             running

[root@adama ~]# service libvirtd restart
Stopping libvirtd daemon:       [ OK ]
Starting libvirtd daemon:       [ OK ]
[root@adama ~]# virsh list
Id Name             State
----------------------------------

[root@adama ~]#
The VM dies.

The moral: don't bounce libvirtd.

No comments:

Post a Comment