[virt-tools-list] virt-clone and a .img file?

Cole Robinson crobinso at redhat.com
Thu Apr 7 20:34:18 UTC 2016


On 03/25/2016 04:23 PM, James Okken wrote:
> Hi list!
> 
>  
> 
> virt-clone’s documentation shows a user should use <filename>.img for the
> --file parameter for the vHD name of the cloned machine
> 
>  
> 
> What format does this file get created in? The original vHD is a .qcow2 file.
> 
>  
> 
> Should I have really just used <filename>.qcow2?
> 
>  
> 
> Or is the .img file created actually different than the .qcow2 original file?

You probably just want to use the --auto-clone option. --file is only if you
want to specify a custom filename for the new storage.

The clone doesn't do much more than 'cp' the disk images to the new filenames,
so the qcow2 format will be preserved.

- Cole




More information about the virt-tools-list mailing list