Hi, guys
I am trying to mange my KVM VM by libvirt, but I get troubles. If you
have the experience, can you have a look about my issue?
Before I send out this email, I already search libvirt.org and google it, No
useful content found.
If you have a step by step document or you know the document URL, can you
forward it to me. Very appreciate for your helps.
I am working in RHEL5u3, with libvirt RPM packages installed.
# rpm -qa |grep libvirt
libvirt-python-0.3.3-14.el5
libvirt-0.3.3-14.el5
libvirt-cim-0.5.1-4.el5
libvirt-devel-0.3.3-14.el5
libvirt-devel-0.3.3-14.el5
libvirt-0.3.3-14.el5
I build the host kernel with kvm upstream (2.6.29); the kvm modules are also
built.
I can success to boot my Linux with the following command:
qemu-system-x86_64 -m 256 -smp 2 -no-acpi -net
nic,macaddr=00:16:3e:11:1d:c5,model=rtl8139 -net tap,script=/etc/kvm/qemu-ifup
-hda /share/xvs/var/tmp-img_gbp23_1238745859_1
I can run virsh with following command:
virsh --connect qemu:///system
But when I run 'list' command in virsh commlind, it can not find my VM, it is
very strange.
virsh # list
Id Name State
----------------------------------
I try to boot the guest with an xml file, the content is following:
[r...@vt-mv1 libvirt]# cat /share/xvs/var/kvm.conf
<domain type='kvm'>
<name>demo2</name>
<uuid>4dea24b3-1d52-d8f3-2516-782e98a23fa0</uuid>
<memory>131072</memory>
<vcpu>1</vcpu>
<os>
<type arch="i686">hvm</type>
</os>
<clock sync="localtime"/>
<devices>
<emulator>/usr/bin/kvm</emulator>
<disk type='file' device='disk'>
<source file='/share/ia32p_rhel5u1.img'/>
<target dev='hda'/>
</disk>
<interface type='network'>
<source network='default'/>
<mac address='24:42:53:21:52:45'/>
</interface>
<graphics type='vnc' port='-1' />
</devices>
</domain>
I ran the command line like this:
virsh # define /share/xvs/var/kvm.conf
Domain demo2 defined from /share/xvs/var/kvm.conf
virsh # start demo2
error: Failed to start domain demo2
I check the qemu log /var/log/libvirt/qemu/demo2.log, the file is empty.
I know that I miss some steps, but I can not find it. The documents in libvirt
is very rough, I did not find any docs about KVM in that website. I am
expecting your helps. Thanks.
-
Best Regards
Shaohui Zheng
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html