You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users-cn@cloudstack.apache.org by Sunsbin <yo...@gmail.com> on 2013/11/09 06:31:43 UTC

KVM建立快照并导出问题

大家好,想向大家请教一个关于kvm的qemu-img命令的问题:               qemu_img convert -f qcow2 -O qcow2 -s $snapshotname $disk $destPath/$destName
      我看到cs4.0.2中卷的快照功能用了这个命令。我自己测试时先给虚拟机建立了一个快照,再在虚拟机中写文件,用上面的命令导出虚拟机增量盘,使用导出的盘新建了一个虚拟机,发现写的文件还在。我感觉-s参数没有起作用,不知道是什么原因,想向大家请教,谢谢了

Re: KVM建立快照并导出问题

Posted by "linuxbqj@gmail.com" <li...@gmail.com>.
# qemu-img convert [-c] [-p] [-f fmt] [-t cache] [-O output_fmt] [-o
options] [-S sparse_size] filename output_filename

在 2013年11月9日下午1:31,Sunsbin <yo...@gmail.com> 写道:
> 大家好,想向大家请教一个关于kvm的qemu-img命令的问题:               qemu_img convert -f qcow2 -O qcow2 -s $snapshotname $disk $destPath/$destName
>       我看到cs4.0.2中卷的快照功能用了这个命令。我自己测试时先给虚拟机建立了一个快照,再在虚拟机中写文件,用上面的命令导出虚拟机增量盘,使用导出的盘新建了一个虚拟机,发现写的文件还在。我感觉-s参数没有起作用,不知道是什么原因,想向大家请教,谢谢了



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linuxbqj@gmail.com