[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-discuss] How to show the system login prompt? (via ssh)

From: Shiyao Ma
Subject: Re: [Qemu-discuss] How to show the system login prompt? (via ssh)
Date: Sat, 3 Dec 2016 09:47:07 +0800

On Dec 3, 2016, 02:19 +0800, Narcis Garcia <address@hidden>, wrote:
Do exist some MDA-like adapter for Qemu for non graphic guest and save

That's out of my knowledge. ;).

The server actually is an VM running inside VMWARE FUSION, with open-vm-tools enabled.  Dunno if it's related.

And that server has qemu/kvm running, to create and run VMs. 


El 02/12/16 a les 17:50, Shiyao Ma ha escrit:
Thanks for your help. You pointed me to the right direction.

I finally succeeded.

Just for the record, in case someone meets the same problem.

Please add the "-vga virtio" to the invocation of qemu.

Otherwise, no matter how you set the grub, finally the system will use a
frame buffer.


On Dec 2, 2016, 21:25 +0800, Narcis Garcia <address@hidden>, wrote:
I see now a Debian 8 guest where I have:
GRUB_CMDLINE_LINUX="nomodeset text"

* Don't forget to update-grub after.

El 02/12/16 a les 12:31, Shiyao Ma ha escrit:
Yes, it's now the business of the guest OS.

What guest distro are you using?

I'd like to give it a try.


On Dec 2, 2016, 18:40 +0800, Narcis Garcia <address@hidden>,
It seems to be the guest OS that is jumping to GUI. As far as I know,
Qemu has nothing to do at this point but the guest OS.

I use these parameters for GRUB when I want CLI only:

El 02/12/16 a les 11:21, Shiyao Ma ha escrit:
I now start the VM with the following command,
sudo kvm -m 256 eva.qcow -net nic,model=virtio -net
user,net=,hostfwd=tcp::8022-:22 -curses

turns out I can SSH into it on port 8022.

I then modified the grub of VM to be:

I also did a :
sudo systemctl set-default multi-user.target

Shutdown the VM and then run the command:
sudo kvm -m 256 eva.qcow -net nic,model=virtio -net
user,net=,hostfwd=tcp::8022-:22 -curses

Now I can see the grub menu showing up.
And then, some text showing up, looks like the kernel is doing the

And then, suddenly, at the time the normal "login: password" prompt
should show up, the terminal shows:
"1024 x 768 Graphic mode"

I thought doing a "sudo systemctl set-default multi-user.target" should
be enough. Dunno what I am missing.

I am running a fresh installation of debian8.6.


On Dec 2, 2016, 17:24 +0800, Narcis Garcia <address@hidden>,
May be the guest OS that is going to graphic mode, and because of this
you aren't seeing the GUI in CLI? If so, you can use that VM
to guest's GUI and not host's CLI.

El 02/12/16 a les 10:04, Shiyao Ma ha escrit:

I SSH to a server, which has no X environment installed.
On the server, there is qemu/kvm running VMs.

I can launch the VM with the following command:
sudo qemu-system-x86_64 -hda eva.qcow -enable-kvm -curses

but the terminal screen sticks at showing:
"1024 x 768 Graphic mode".

Picture here:

My question is, how can I see the normal login prompt, e.g.,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]