笔记本win7先通过vbox安装好centos6.5

然后打开cmd命令行在c:\Program Files\Oracle\VirtualBox下执行

vboxmanage clonehd --format raw "E:\VirtualBox VMs\cent6.5\cent6.5.vdi" "E:\VirtualBox VMs\cent6.5\cent6.5.img"

这时候将会生成E:\VirtualBox VMs\cent6.5\cent6.5.img,请提前预留好空间,因为img的大小取决于你的centos硬盘的大小,可不是vdi这种thin模式。

 

笔记本win7中打开vbox,启动centos6.5,然后将E:\VirtualBox VMs\cent6.5\cent6.5.img传到centos6.5虚机中(winscp,xftp,samba,http都行)

然后执行qemu-img convert -f raw centos.img -O qcow2 centos.qcow2

最终得到的centos.qows2即为所得。

此方法已经在centos6.5,ubuntu14.04上进行了实验,完全OK~~

请放心使用~

相关文章:

  • 2021-07-14
  • 2021-04-10
  • 2021-08-24
  • 2022-12-23
  • 2022-02-14
  • 2022-02-05
  • 2021-09-09
  • 2021-09-01
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
  • 2021-07-04
  • 2022-12-23
相关资源
相似解决方案