A QEMU VM, both the host and guest OS being Ubuntu 20.04. QEMU 6.1.0 is compiled without any special parameters. The guest was installed from a downloaded iso image of Ubuntu server.
If I start the VM using
qemu-system-x86_64 -hda ubuntu.qcow -m 4000
, QEMU starts a VNC server and I can view in VNC Viewer that the guest Ubuntu OS is running properly.
But if I start the VM using
qemu-system-x86_64 -hda ubuntu.qcow -m 4000 -nographic
, QEMU prints out the following and freezes.
SeaBIOS (version rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org)
iPXE (http://ipxe.org) 00:03.0 CA00 PCI2.10 PnP PMM+BFF8F290+BFEEF290 CA00
Booting from Hard Disk...
I can see from top
that CPU is 100% busy with qemu-system-x86
at first and turns back to idle after a while. I guess the guest OS has finished booting successfully, but I can see nothing on the screen. What I want is that the guest can take over the console of the host and output to it. I did not find -console parameter, so I guess -nographic
would do the job. Did I choose a wrong parameter? If so, how can I see the display of booting procedure and the login prompt of the guest Ubuntu? Thanks.