[virt-tools-list] problem with cloning a vhost template to a remote host

Cole Robinson crobinso at redhat.com
Mon Mar 1 21:50:19 UTC 2010


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

This should be fixed in upstream virtinst now. Thanks for the report.

- Cole




More information about the virt-tools-list mailing list