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

[virt-tools-list] virt-clone --preserve-data complains about missing disk image

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.



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

<domain type='kvm'>
  <description>openSUSE 11.3 template</description>
    <type arch='x86_64' machine='pc-0.12'>hvm</type>
    <boot dev='hd'/>
  <clock offset='utc'/>
    <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 type='file' device='cdrom'>
      <driver name='qemu' type='raw' cache='none'/>
      <target dev='hdc' bus='ide'/>
      <address type='drive' controller='0' bus='1' unit='0'/>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    <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'/>
    <serial type='pty'>
      <target port='0'/>
    <console type='pty'>
      <target type='serial' port='0'/>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/>
      <model type='cirrus' vram='9216' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>

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