* [Qemu-devel] How to clone a running vm?
@ 2015-01-12 7:49 Zhang Haoyu
2015-01-12 8:15 ` Zhang Haoyu
2015-01-12 15:17 ` Eric Blake
0 siblings, 2 replies; 4+ messages in thread
From: Zhang Haoyu @ 2015-01-12 7:49 UTC (permalink / raw)
To: qemu-devel; +Cc: Paolo Bonzini, Fam Zheng, Stefan Hajnoczi
Hi,
I want to clone a running vm without shutoff,
can below method work?
1) create a snapshot for the vm
2) create a new qcow2 image from the snapshot, but how?
3) use the new qcow2 image as backing image to clone vms
Any ideas?
Thanks,
Zhang Haoyu
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] How to clone a running vm?
2015-01-12 7:49 [Qemu-devel] How to clone a running vm? Zhang Haoyu
@ 2015-01-12 8:15 ` Zhang Haoyu
2015-01-12 9:13 ` Paolo Bonzini
2015-01-12 15:17 ` Eric Blake
1 sibling, 1 reply; 4+ messages in thread
From: Zhang Haoyu @ 2015-01-12 8:15 UTC (permalink / raw)
To: Zhang Haoyu, qemu-devel; +Cc: Paolo Bonzini, Fam Zheng, Stefan Hajnoczi
On 2015-01-12 15:50:13, Zhang Haoyu wrote:
>Hi,
>
>I want to clone a running vm without shutoff,
>can below method work?
>1) create a snapshot for the vm
>2) create a new qcow2 image from the snapshot, but how?
>3) use the new qcow2 image as backing image to clone vms
>
Can drive_mirror clone a running vm without guest service disruption?
>Any ideas?
>
>Thanks,
>Zhang Haoyu
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] How to clone a running vm?
2015-01-12 8:15 ` Zhang Haoyu
@ 2015-01-12 9:13 ` Paolo Bonzini
0 siblings, 0 replies; 4+ messages in thread
From: Paolo Bonzini @ 2015-01-12 9:13 UTC (permalink / raw)
To: Zhang Haoyu, qemu-devel; +Cc: Fam Zheng, Stefan Hajnoczi
On 12/01/2015 09:15, Zhang Haoyu wrote:
> > I want to clone a running vm without shutoff,
> > can below method work?
> > 1) create a snapshot for the vm
> > 2) create a new qcow2 image from the snapshot, but how?
> > 3) use the new qcow2 image as backing image to clone vms
>
> Can drive_mirror clone a running vm without guest service disruption?
Yes.
Paolo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] How to clone a running vm?
2015-01-12 7:49 [Qemu-devel] How to clone a running vm? Zhang Haoyu
2015-01-12 8:15 ` Zhang Haoyu
@ 2015-01-12 15:17 ` Eric Blake
1 sibling, 0 replies; 4+ messages in thread
From: Eric Blake @ 2015-01-12 15:17 UTC (permalink / raw)
To: Zhang Haoyu, qemu-devel; +Cc: Paolo Bonzini, Fam Zheng, Stefan Hajnoczi
[-- Attachment #1: Type: text/plain, Size: 1142 bytes --]
On 01/12/2015 12:49 AM, Zhang Haoyu wrote:
> Hi,
>
> I want to clone a running vm without shutoff,
A number of people have expressed a desire to do this. But PLEASE
consider the security implications. If you have two guests running from
the same initial running state, without sanitizing at least one of the
guests, then you have set yourself up for major security breaches if the
two guests can be accessed on the same network.
Things you need to sanitize include, but are not limited to, all guest
OS random number seeding, IP addresses, UUIDs, ssh keys, etc.
> can below method work?
> 1) create a snapshot for the vm
> 2) create a new qcow2 image from the snapshot, but how?
> 3) use the new qcow2 image as backing image to clone vms
While you can indeed create a qcow2 image from a running guest, I highly
suggest scrubbing and sanitizing that image before cloning new VMs that
use that state; and that your new guests be booted from scratch rather
than attempting to live-boot the cloned guests.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-01-12 15:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-12 7:49 [Qemu-devel] How to clone a running vm? Zhang Haoyu
2015-01-12 8:15 ` Zhang Haoyu
2015-01-12 9:13 ` Paolo Bonzini
2015-01-12 15:17 ` Eric Blake
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).