qemu-discuss
[Top][All Lists]
Advanced

[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 00:50:53 +0800

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.


Regards.

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"
GRUB_TERMINAL=console

* 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.

Thanks.


On Dec 2, 2016, 18:40 +0800, Narcis Garcia <address@hidden>, wrote:
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:
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"
GRUB_GFXPAYLOAD_LINUX="text"
GRUB_TERMINAL=console


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=192.168.101.0/24,hostfwd=tcp::8022-:22 -curses

turns out I can SSH into it on port 8022.

I then modified the grub of VM to be:
GRUB_CMDLINE_LINUX="text"
GRUB_TERMINAL="console"

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=192.168.101.0/24,hostfwd=tcp::8022-:22 -curses
again,

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

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.

Regards.





On Dec 2, 2016, 17:24 +0800, Narcis Garcia <address@hidden>,
wrote:
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 connecting
to guest's GUI and not host's CLI.


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

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:
http://imgur.com/a/jhMe5

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

Regards.




reply via email to

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