Hi,
Got my git/hg builds of libvirtd/virt-manager running together with kvm.
Took some time but finally think I'm getting the
hang of it.
I noticed two things going from my pre-packaged Debian packages.
The older xml files I had seemed to generate a faulty kvm cmdline:
<disk type='file' device='cdrom'>
<target dev='hdc' bus='ide'/>
<readonly/>
</disk>
This seems to translate into a -drive file=,... The file argument for kvm
may be empty but should then not be defined:
"If you don’t specify the "file=" argument, you define an empty
drive". As a
result the first vm I tried to start came back
with a message saying it could not open the diskfile.
Additionally, check below screenshot; the vm names appear to be missing.
Here's the complete XML of one vm,
did anything change coming from this one?
<domain type='kvm'>
<name>vm1</name>
<uuid>ea14abdc-12a4-48cb-1424-46cdf15405f4</uuid>
<memory>524288</memory>
<currentMemory>524288</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='x86_64' machine='pc'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/kvm</emulator>
<disk type='file' device='disk'>
<source file='/kvmimages/vm1.qcow2'/>
<target dev='vda' bus='virtio'/>
</disk>
<interface type='bridge'>
<mac address='54:52:00:0a:dc:10'/>
<source bridge='br0'/>
<model type='virtio'/>
</interface>
<serial type='pty'>
<source path='/dev/pts/1'/>
<target port='0'/>
</serial>
<console type='pty' tty='/dev/pts/1'>
<source path='/dev/pts/1'/>
<target port='0'/>
</console>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes'
keymap='en-us'/>
</devices>
</domain>