您尚未登录。

#1 2015-09-19 13:22:11

xtricman
エクス·トリクマン
注册时间: 2012-12-26
帖子: 1,267

qemu启动虚拟机怎么指定磁盘格式?

qemu-system-i386 -hda a.img

WARNING: Image format was not specified for 'a.img' and probing guessed raw.
         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
         Specify the 'raw' format explicitly to remove the restrictions.

怎么指定磁盘格式啊?我qemu-system-i386 --help没有找到相关选项啊?


反社会,精神极其不稳定,随时可能炸碎身边所有人

离线

#2 2015-09-19 13:25:30

xtricman
エクス·トリクマン
注册时间: 2012-12-26
帖子: 1,267

Re: qemu启动虚拟机怎么指定磁盘格式?

话说BBCode里面的\[code\]是怎么个高亮法?怎么连the都会高亮的?这个是某种语言的关键字吗?


反社会,精神极其不稳定,随时可能炸碎身边所有人

离线

#3 2015-09-19 14:02:02

atmouse
会员
注册时间: 2011-08-24
帖子: 701

Re: qemu启动虚拟机怎么指定磁盘格式?

--drive file= media= format=

最近编辑记录 atmouse (2015-09-19 14:02:25)

离线

#4 2015-09-19 15:17:29

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,460
个人网站

Re: qemu启动虚拟机怎么指定磁盘格式?

xtricman 说:

话说BBCode里面的\[code\]是怎么个高亮法?怎么连the都会高亮的?这个是某种语言的关键字吗?

是的,这世界上有个神奇的脚本语言名曰 AppleScript :-)

离线

#5 2015-09-19 19:07:39

xtricman
エクス·トリクマン
注册时间: 2012-12-26
帖子: 1,267

Re: qemu启动虚拟机怎么指定磁盘格式?

atmouse 说:

--drive file= media= format=

你自己试过吗?我刚试了一下好像不行


反社会,精神极其不稳定,随时可能炸碎身边所有人

离线

#6 2015-12-30 10:18:18

j3ffyang
会员
注册时间: 2015-12-29
帖子: 23

Re: qemu启动虚拟机怎么指定磁盘格式?

通常建议使用 qcow2 格式

qemu-img create -f qcow2 file.img 10g

多谢

离线

页脚