[libvirt-users] is it possible to create a snapshot from a guest residing in a plain partition ?

Eric Blake eblake at redhat.com
Thu Apr 4 17:42:56 UTC 2019


On 4/4/19 11:57 AM, Lentes, Bernd wrote:

> 
> virsh # snapshot-create-as --disk-only --name sn --domain sim
> error: unsupported configuration: source for disk 'vdb' is not a regular file; refusing to generate external snapshot name

That just means that libvirt refuses to create a new block device name
(new file names are easy, new block devices not so much); so you'll have
to tell libvirt what filename (which may or may not be a block device)
to use instead, with the --diskspec parameter.  Something like:

snapshot-create-as --disk-only --name sn --domain sim --diskspec
vdb,file=/path/to/file.sn

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20190404/dc224024/attachment.sig>


More information about the libvirt-users mailing list