[Pkg-libvirt-maintainers] Bug#522555: virtinst: virt-clone doesn't work: ERROR list index out of range

Matthias Köhne pluvo at kaoso.org
Sat Apr 4 19:52:50 UTC 2009


Package: virtinst
Version: 0.400.0-7
Severity: normal

I can't clone a virtual machine with virt-clone:


pluvo at anubis:/srv/pluvo/matrix$ virt-clone --connect=qemu:///system --original=lenny-re --name=squeeze-re --file 
/srv/pluvo/matrix/squeeze-re.img -d
Sa, 04 Apr 2009 18:17:18 DEBUG    start clone with HV qemu:///system
Sa, 04 Apr 2009 18:17:18 DEBUG    Using libvirt URI connect 'qemu:///system'
Sa, 04 Apr 2009 18:17:18 DEBUG    Using self.path for VirtualDisk.
Sa, 04 Apr 2009 18:17:18 DEBUG    VirtualDisk storage does not exist.
Sa, 04 Apr 2009 18:17:18 DEBUG    clone device list: ['/srv/pluvo/matrix/squeeze-re.img']
Sa, 04 Apr 2009 18:17:18 DEBUG    clone device size: [0]
Sa, 04 Apr 2009 18:17:18 DEBUG    clone device type: [True]
Sa, 04 Apr 2009 18:17:18 DEBUG    Using self.path for VirtualDisk.
Sa, 04 Apr 2009 18:17:18 DEBUG    VirtualDisk storage does not exist.
Sa, 04 Apr 2009 18:17:18 DEBUG    setup_original in
Sa, 04 Apr 2009 18:17:18 DEBUG    original device list: ['/srv/pluvo/matrix/lenny-re.img']
Sa, 04 Apr 2009 18:17:18 DEBUG    original device size: [4294967296]
Sa, 04 Apr 2009 18:17:18 DEBUG    original device type: [True]
Sa, 04 Apr 2009 18:17:18 DEBUG    original guest status: 5
Sa, 04 Apr 2009 18:17:18 DEBUG    setup_original out
Sa, 04 Apr 2009 18:17:18 DEBUG    original guest is
<domain type='kvm'>
  <name>lenny-re</name>
  <uuid>ab49c97b-c0a1-164e-cc02-e901f7714812</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='cdrom'>
      <target dev='hdc' bus='ide'/>
      <readonly/>
    </disk>
    <disk type='file' device='disk'>
      <source file='/srv/pluvo/matrix/lenny-re.img'/>
      <target dev='vda' bus='virtio'/>
    </disk>
    <interface type='bridge'>
      <mac address='54:52:00:29:b7:fc'/>
      <source bridge='br0'/>
      <target dev='vnet2'/>
      <model type='virtio'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/6'/>
      <target port='0'/>
    </serial>
    <console type='pty' tty='/dev/pts/6'>
      <source path='/dev/pts/6'/>
      <target port='0'/>
    </console>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' keymap='de'/>
  </devices>
</domain>

Sa, 04 Apr 2009 18:17:18 DEBUG    setup_clone in
Sa, 04 Apr 2009 18:17:18 DEBUG    clone device list: ['/srv/pluvo/matrix/squeeze-re.img']
Sa, 04 Apr 2009 18:17:18 DEBUG    clone device size: [0]
Sa, 04 Apr 2009 18:17:18 DEBUG    clone device type: [True]
Sa, 04 Apr 2009 18:17:18 ERROR    list index out of range



The virtual machine is off and enough disk space is available.

Maybe this is the same bug:
https://bugzilla.redhat.com/show_bug.cgi?id=480253



-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages virtinst depends on:
ii  python                     2.5.2-3       An interactive high-level object-o
ii  python-libvirt             0.4.6-10      libvirt Python bindings
ii  python-libxml2             2.6.32.dfsg-5 Python bindings for the GNOME XML 
ii  python-support             0.8.4         automated rebuilding support for P
ii  python-urlgrabber          3.1.0-4       A high-level cross-protocol url-gr

Versions of packages virtinst recommends:
ii  qemu                          0.9.1-10   fast processor emulator
pn  virt-viewer                   <none>     (no description available)

virtinst suggests no packages.

-- no debconf information





More information about the Pkg-libvirt-maintainers mailing list