virt-clone --preserve-data complains about missing disk image

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi folks,

I am trying to clone a virtual machine from a template
on a remote host using this procedure:

# 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'


Please note that the "openSUSE-11.3-i386-template.vda.lv" image
is the _source_ disk on the remote host, not the prepared
local copy.

In the past this procedure worked fine (and fast!), but since I
moved to version 0.6 virt-clone takes ages, and then I get the
error message about the missing disk image.

How can I tell virt-clone to accept the prepared disk image
as is?

Any helpful comment would be highly appreciated.


Regards

Harri

Attachment: virt-clone.log.gz
Description: application/gzip

<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>


[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux