我已经尝试过什么?
qemu-system-x86_64 -hda hdd.img -m 1G -net nic, macaddr=MACADDR -net bridge,br=BRIDGE -enable-kvm -nographic -daemonize
qemu-system-x86_64 -hda hdd.img -m 1G -net nic, macaddr=MACADDR -net bridge,br=BRIDGE -enable-kvm -display none -daemonize
qemu-system-x86_64 -hda hdd.img -m 1G -net nic, macaddr=MACADDR -net bridge,br=BRIDGE -enable-kvm -nographic -serial mon:stdio -append 'console=ttyS0'
Run Code Online (Sandbox Code Playgroud)
MACADDR 和 BRIDGE 在我的系统中定义。
我使用过-display none -daemonize,但失败并出现错误
qemu-system-x86_64: -nographic cannot be used with -daemonize
我也尝试过-nographic -serial mon:stdio -append 'console=ttyS0',但也失败并出现错误:
Failed to initialize module: /usr/lib/x86_64-linux-gnu/qemu/block-iscsi.so
Note: only modules from the same build can …Run Code Online (Sandbox Code Playgroud)