[libvirt-users] Problems moving qemu machine to libvirt
Gunnar Thielebein
gunnar_thielebein at gmx.net
Tue Jun 15 09:51:50 UTC 2010
Hi Erik,
thanks for the solution provided.
I tried that but unfortunately it spits out this error message:
> Traceback (most recent call last):
> File "/usr/share/virt-manager/virtManager/engine.py", line 588, in run_domain
> vm.startup()
> File "/usr/share/virt-manager/virtManager/domain.py", line 150, in startup
> self._backend.create()
> File "/usr/lib/python2.6/dist-packages/libvirt.py", line 300, in create
> if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
> libvirtError: internal error cannot parse QEMU version number in ''
Looks to me that libvirt does some version checks with the emulator-node and
don't get reliable output.
The wrapper script:
/etc/libvirt/kvmvde:
> #!/bin/bash
> exec /usr/bin/kvm "$@" \
> -net nic,vlan=0,model=virtio,macaddr=52:54:61:44:21:23 \
> -net vde,vlan=0,group=libvirtd,mode=0770,sock=/var/run/vde.ctl
The xml section:
...
> <devices>
> <emulator>/etc/libvirt/kvmvde</emulator>
> <disk type='file' device='disk'>
> <source file='/var/lib/libvirt/images/vlxp01-gt/tmp7Jiyzz.qcow2'/>
> <target dev='hda' bus='ide'/>
> </disk>
...
Btw. is the bridge entry really necessary in the xml file?
I wonder if this wouldn't also work, but I am not at this step, currently:
=> http://libvirt.org/formatdomain.html#elementsNICSSlirp
"Generic ethernet connection"
> ...
> <devices>
> <interface type='ethernet'/>
> ...
> <interface type='ethernet'>
> <target dev='vnet7'/>
> <script path='/etc/qemu-ifup-mynet'/>
> </interface>
> </devices>
> ...
Perhaps this is a place to also start the vde hub?
On 10.06.2010 13:34, Erik de Castro Lopo wrote:
> #!/bin/bash
> exec /usr/bin/kvm $@ \
> -net nic,vlan=0,model=rtl8139,macaddr=52:54:61:44:21:23 \
> -net vde,vlan=0,group=vde2-net,mode=0770,sock=/var/run/kvm-vde-ctl
Any reason no to use the virtio driver?
Best,
Gunnar
More information about the libvirt-users
mailing list