virt-clone crashes whilst cloning a KVM vm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
virtinst (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I'm unable to clone VMs using the standard virt-clone tool due to a crash in a python script. Here is the output that is generated in ~/.virtinst/
[Mon, 06 Aug 2012 11:45:01 virt-clone 14340] DEBUG (cli:220) Launched with command line:
/usr/bin/virt-clone --original-
[Mon, 06 Aug 2012 11:45:01 virt-clone 14340] DEBUG (cli:326) Requesting libvirt URI default
[Mon, 06 Aug 2012 11:45:01 virt-clone 14340] DEBUG (cli:328) Received libvirt URI qemu:///system
[Mon, 06 Aug 2012 11:45:02 virt-clone 14340] DEBUG (CloneManager:399) Validating original guest parameters
[Mon, 06 Aug 2012 11:45:02 virt-clone 14340] DEBUG (CloneManager:408) Original XML:
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
virsh edit vm1.local
or other application using the libvirt API.
-->
<domain type='kvm'>
<name>
<uuid>
<memory>
<currentMemor
<vcpu>1</vcpu>
<os>
<type arch='x86_64' machine=
<boot dev='hd'/>
</os>
<features>
<acpi/>
</features>
<clock offset='utc'/>
<on_poweroff>
<on_reboot>
<on_crash>
<devices>
<emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/
<target dev='hda' bus='ide'/>
<address type='drive' controller='0' bus='0' unit='0'/>
</disk>
<controller type='ide' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
</controller>
<interface type='network'>
<mac address=
<source network='default'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' 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' listen='127.0.0.1'>
<listen type='address' address=
</graphics>
<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='0x04' function='0x0'/>
</memballoon>
</devices>
</domain>
[Mon, 06 Aug 2012 11:45:03 virt-clone 14340] ERROR (cli:439) 'NoneType' object is not iterable
[Mon, 06 Aug 2012 11:45:03 virt-clone 14340] DEBUG (cli:440)
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
design.
File "/usr/lib/
parsexml=
File "/usr/lib/
caps=caps)
File "/usr/lib/
self.
File "/usr/lib/
for node in self._xml_
TypeError: 'NoneType' object is not iterable
The command I'm using is:
/usr/bin/virt-clone --original-
--name=vm2 \
--uuid=
--mac=52:
--file=
I have previously applied the following patch from bug #1008225, this applied without error and fixed the issue with ubuntu-vm-builder
affects: | ubuntu → virtinst (Ubuntu) |
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/1033501/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]