Package: virtinst
Version: 0.600.0-1
I missed to define a local "br0" network interface on my new KVM
server. When I tried to create a new machine using an existing
host.xml file listing "br0" as a network interface I got an
error message about an inaccessible disk image instead.
# export VIRSH_DEFAULT_CONNECT_URI=qemu:///system
# masterhost=dpcl082
# master=openSUSE-11.3-i386-template
# name=sepos11i004
# virsh vol-create-as storage ${name}.vda.lv 32G
# ssh ${masterhost} dd if=/dev/storage/${master}.vda.lv bs=64k | dd bs=64k
of=/dev/storage/${name}.vda.lv
# virt-clone --connect ${VIRSH_DEFAULT_CONNECT_URI}
--original-xml=/tmp/${master}.xml --name=${name}
--file=/dev/storage/${name}.vda.lv --preserve-data
ERROR Could not determine original disk information: Size must be specified
for non existent volume path '/dev/storage/openSUSE-11.3-i386-template.vda.lv'
After setting up the br0 interface the error message about
the disk was gone, so there is something weird.
Debug output:
[Wed, 11 Jan 2012 12:15:42 virt-clone 2001] ERROR (cli:440) Could not determine
original disk information: Size must be specified for non existent volume path
'/dev/storage/openSUSE-11.3-i386-template.vda.lv'
[Wed, 11 Jan 2012 12:15:42 virt-clone 2001] DEBUG (_util:233) Traceback (most
recent call last):
File "/usr/bin/virt-clone", line 253, in <module>
main()
File "/usr/bin/virt-clone", line 232, in main
design.setup_original()
File "/usr/lib/pymodules/python2.6/virtinst/CloneManager.py", line 409, in
setup_original
self._original_virtual_disks =
self._get_original_devices_info(self._original_xml)
File "/usr/lib/pymodules/python2.6/virtinst/CloneManager.py", line 617, in
_get_original_devices_info
"information: %s" % str(e)))
ValueError: Could not determine original disk information: Size must be
specified for non existent volume path
'/dev/storage/openSUSE-11.3-i386-template.vda.lv'
Regards
Harri
<domain type='kvm'>
<name>openSUSE-11.3-i386-template</name>
<uuid>02752285-6e64-d4ab-100a-7eb62832d724</uuid>
<description>openSUSE 11.3 template</description>
<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>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/kvm</emulator>
<disk type='block' device='disk'>
<driver name='qemu' type='raw' cache='none'/>
<source dev='/dev/storage/openSUSE-11.3-i386-template.vda.lv'/>
<target dev='vda' bus='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw' cache='none'/>
<target dev='hdc' bus='ide'/>
<readonly/>
<address type='drive' controller='0' bus='1' unit='0'/>
</disk>
<controller type='ide' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
</controller>
<interface type='bridge'>
<mac address='52:54:00:e5:54:a1'/>
<source bridge='br0'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/>
<video>
<model type='cirrus' vram='9216' heads='1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</memballoon>
</devices>
</domain>