1. 创建一块空磁盘,大小为需要增加的磁盘大小(1G为例):qemu-img create -f raw additional.raw 1G
2. 将要增加的源磁盘转换成raw格式:qemu-img convert -f qcow2 example.img -O raw example.raw
3. 将空磁盘追加到源磁盘尾部:cat additional.raw >> example.raw
4. 将转换后的磁盘转换回qcow2格式:qemu-img convert -f raw example.raw -O qcow2 example-expanded.img
5. 将转换后的硬盘设置为虚拟机硬盘,并将//192.168.1.240/public/tools/support_技术支持/VPS安装环境/gparted-live-0.6.4-1.iso挂载到虚拟机光驱,并从光驱启动。
6. 用gparted工具调整ntfs分区大小 ,请参考:http://gparted.sourceforge.net/larry/resize/resizing.htm