Saturday, June 7, 2014

Re: [fedora-virt] images on tmpfs?

On Sat, Jun 07, 2014 at 08:59:44AM -0400, Tom Horsley wrote:
> On Sat, 7 Jun 2014 12:33:52 +0100
> Richard W.M. Jones wrote:
> > any machine you create on a tmpfs is a throwaway
> > one, whether you intended that or not!
> That depends on if you migrate it off tmpfs to
> hard disk once all the I/O involved in doing
> an install is finished :-).

Indeed. Please note there is a potential trap here. If you just 'cp'
the guest to another disk and immediately boot it with cache=none,
then qemu might see a corrupt disk. You have to sync the disk after
the copy. Easiest way is to use 'dd' to copy the disk, w/ option


Richard Jones, Virtualization Group, Red Hat
Read my programming and virtualization blog:
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
virt mailing list

No comments:

Post a Comment