View previous topic :: View next topic |
Author |
Message |
FishB8 l33t
Joined: 17 Mar 2003 Posts: 820
|
Posted: Thu Oct 25, 2012 11:28 pm Post subject: Headless QEMU guest |
|
|
I'm trying to setup a guest OS to be headless and just use a serial console. It mostly works, but not the way I want.
I've got it set so that grub shows it's menu in the serial console, and the login prompt shows in the serial console after booting, but nothing in-between is going to the serial console. The kernel output, and openrc output doesn't ever show.
Futhermore, the kernel won't boot if I replace the "console=tty0 console=ttyS0" kernel option with just "console=ttyS0". Is there something more I need to do to get rid of tty0 and have it's output to show in ttyS0? Does openrc even have a way to redirect it's output to a serial console? _________________ "...as we enjoy great advantages from the inventions of others, we should be glad of an opportunity to serve others by any invention of ours, and this we should do freely and generously." -Benjamin Franklin |
|
Back to top |
|
|
MacGyver031 Tux's lil' helper
Joined: 11 Jul 2004 Posts: 141 Location: Ilavalai, Sri Lanka
|
Posted: Fri Oct 26, 2012 11:03 am Post subject: |
|
|
Just to be sure:
Serial port driver is compiled in the kernel or is available via initrd?
This works for me:
Code: | kernel /boot/Kernel-3.5.2-gentoo console=ttyS0,57600n8 |
_________________ Sincerely your
Joanand K.
MacBook Pro 5.1: 2.4GHz Core2 Duo, 4096MB, 500GB, NVidia 9400/9600 M GT
Gentoo, Kernel 3.4.9, XOrg, Fluxbox. |
|
Back to top |
|
|
FishB8 l33t
Joined: 17 Mar 2003 Posts: 820
|
Posted: Sun Nov 04, 2012 10:17 pm Post subject: |
|
|
Yes, serial driver is built-in. It works fine, apart from the fact I can't see the openrc output. (And therefore cannot do an interactive boot if needed)
The console portion on mine is:
Code: | console=tty0 console=ttyS0,115200 |
I've tried other baud rates, no difference. If I get rid of the preceding tty0, something gets messed up in the boot process. But again, I don't know what because I can't see the terminal output. _________________ "...as we enjoy great advantages from the inventions of others, we should be glad of an opportunity to serve others by any invention of ours, and this we should do freely and generously." -Benjamin Franklin |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|