【发布时间】:2021-08-24 02:33:09
【问题描述】:
我正在尝试设置 QEMU/KVM 并遇到以下问题:
$ qemu-img create ubuntu.img 64G //Create image with raw format, not qcow2
$ qemu-system-x86_64 -hda ubuntu.img -cdrom ~/Downloads/ubuntu-20.04.2.0-desktop-amd64.iso -cpu host -enable-kvm
WARNING: Image format was not specified for 'ubuntu.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.
VNC server running on 127.0.0.1:5900
所以我尝试将其指定为格式
$ qemu-system-x86_64 -hda ubuntu.img -cdrom ~/Downloads/ubuntu-20.04.2.0-desktop-amd64.iso -cpu host -enable-kvm -object format=raw
qemu-system-x86_64: -object format=raw: Parameter 'qom-type' is missing
在QEMU manual page 搜索qom-type 没有得到任何结果。
如何为这种情况指定正确的qom-type?
【问题讨论】:
标签: linux virtual-machine qemu kvm