On 02/26/2010 09:57 AM, Harald Dunkel wrote:
> Hi folks,
> 
> I would like to clone a virtual host template to a remote
> host, using this procedure:
> 
>       cd /export/storage
>       template=squeeze
>       name=squeezeclone
>       rhost=remotehost
>       rsync -SHa --progress $template/. $rhost:/export/storage/$name
>       virsh dumpxml $template | ssh $rhost "cat >/tmp/$name.xml"
>       disks=$(cd $template && for i in *.img; do echo -n "-f $name/$i "; done)
>       ssh $rhost "cd /export/storage && virt-clone --connect qemu:///system 
> --original-xml=/tmp/$name.xml -n $name --preserve-data $disks"
> 
> Problem: On the remote side I get an error message saying:
> 
> ERROR    Could not determine original disk information:
> Disk '/export/storage/squeeze/hda.img' does not exist.
>
> 
> Since I used '--preserve-data' I doubt that this error
> is reasonable. virt-clone should not care about the old
> disk image, but accept the new one as it is.
> 
> Is there some way around this? Any helpful comment would be
> highly appreciated.
> 

Hmm, this is a bug. What you are doing is certainly a legit use case and
we should try to facilitate it, unfortunately the clone backend
implicitly depends on having access to the original disk images.

I think I can make it work though, I'll take a stab at it and let you know.

- Cole

_______________________________________________
virt-tools-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-tools-list

Reply via email to