Chinaunix首页 | 论坛 | 博客
  • 博客访问: 336762
  • 博文数量: 135
  • 博客积分: 4637
  • 博客等级: 上校
  • 技术积分: 1410
  • 用 户 组: 普通用户
  • 注册时间: 2008-02-21 13:22
文章分类

全部博文(135)

文章存档

2013年(12)

2012年(14)

2011年(42)

2010年(22)

2009年(18)

2008年(27)

分类: LINUX

2009-05-05 10:32:50

Immutable PC

If you fear damaging your disk.img file, you can use the snapshot parameter to refrain from making modification to the diskimage. For the guest system, the disk will still appear to be writable.


qemu -snapshot -hda disk.img

Incremental diskimages

Or, you could create one or more new diskimages which are based on the previous one. Modifying these "child" disks, doesn't affect the parent disk.


qemu-img create -b disk.img -f qcow2 testdisk.img
qemu -hda testdisk.img

If you think "child" disk is ok and want to merge it into "parent" disk:

qemu-img commit -f qcow2 testdisk.img

阅读(881) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~