[libvirt-users] XML-Created domain vanishes after shutdown

Alexander Topolanek atopo at ocv.org
Sat May 15 07:34:52 UTC 2010


Hi,

im migrating existing kvm-images into libvirt domains, by creating a 
domain in virsh from a xml file. The domain starts, is working fine, but 
after shutdown it is lost, and I have to recreate it.

BTW, can I reset the domain count somewhere?

Any ideas?

thx and kind regards
Alexander

virsh # version
Compiled against library: libvir 0.4.6
Using library: libvir 0.4.6
Using API: QEMU 0.4.6
Running hypervisor: QEMU 0.9.1


This is my xml file:

<domain type='qemu' id='2'>
<name>munin</name>
<uuid>6bb2995a-5443-2ddb-67fe-d69a9814ece4</uuid>
<memory>262144</memory>
<currentMemory>524288</currentMemory>
<vcpu>2</vcpu>
<os>
<type arch='x86_64' machine='pc'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset='utc'/>
<on_poweroff>preserve</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='/var/kvm/virsh/munin.img'/>
<target dev='hda' bus='ide'/>
</disk>
<interface type='bridge'>
<mac address='00:30:1c:45:40:02'/>
<source bridge='br0'/>
<target dev='vnet0'/>
<model type='virtio'/>
</interface>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='5900' autoport='yes' listen='127.0.0.1' 
keymap='de'/>
</devices>
</domain>



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5994 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20100515/af7d88c0/attachment.p7s>


More information about the libvirt-users mailing list