Hello,
I am trying to create a lucid guest VM with a vmchannel between the guest and the
hypervisor. Details below:
KERNEL:
# uname -a
Linux saurav-desktop 2.6.38-2-generic #29~lucid1-Ubuntu SMP Mon Feb 7 13:35:14 UTC 2011
i686 GNU/Linux
QEMU:
# /usr/bin/qemu --version
QEMU emulator version 0.13.0, Copyright (c) 2003-2008 Fabrice Bellard
LIBVIRT:
# /usr/sbin/libvirtd --version
/usr/local/sbin/libvirtd (libvirt) 0.8.8
Below is a snippet of my libvirt xml file.
===============================================================
<domain type='kvm' id='16'>
<name>FinalTest</name>
<uuid>212bc1f1-b4f7-1ed3-7dc3-2b4b82ab68d1</uuid>
<memory>1048576</memory>
<currentMemory>1048576</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='x86_64' machine='pc-0.12'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>destroy</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/bin/kvm</emulator>
<controller type='virtio-serial' index='0' max_ports='15'
vectors='4'/>
<channel type='pty'>
<target type='virtio' name='org.linux-kvm.port.1'/>
<address type='virtio-serial' controller='0' bus='0'/>
</channel>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/home/user1/linux_installed/image.cow2'/>
<target dev='hda' bus='ide'/>
<alias name='ide-disk0'/>
<address type='drive' controller='0' bus='0'
unit='0'/>
</disk>
================================================================
When i submit the xml file to virsh I get the following error:
===============================================================
# virsh create vmTemplete-1.xml
error: Failed to create domain from vmTemplete-1.xml
error: internal error Process exited while reading console log output: char device
redirected to /dev/pts/3
char device redirected to /dev/pts/4
open /dev/kvm: No such file or directory
Could not initialize KVM, will disable KVM support
kvm: -device
virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.linux-kvm.port.1:
virtio-serial-bus: Out-of-range port id specified, max. allowed: 0
kvm: -device
virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.linux-kvm.port.1:
Device 'virtserialport' could not be initialized
===========================================================
What could be the problem ? Could any one please point to the correct direction with
regard to this.
Regards
sl