On Wed, Nov 24, 2010 at 6:00 PM, Robert Citek <[email protected]> wrote:
> Got this to work with Ubuntu 10.04. There are roughly five steps:
In more specific detail. This assumes you have a VM running Ubuntu Lucid 10.04
1) add a serial port to the VM using the VBox GUI
Serial Ports > Port 1 tab
check Enable Serial Port
Port Number: Com1
Port Mode: Host Pipe
check Create Pipe
Path: /tmp/vbox-ubuntu-10.04
2) In /etc/default/grub, add or change this variable to have the
kernel output to the serial console
GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS0,115200n8"
3) In /etc/default/grub, add or change these variables to have grub
display to the serial console
GRUB_TERMINAL=serial
GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8
--parity=no --stop=1"
4) Enable serial login
$ cat <<eof > /etc/init/ttyS0.conf
# ttyS0 - getty
#
# This service maintains a getty on ttyS0 from the point the system is
# started until it is shut down again.
start on stopped rc RUNLEVEL=[12345]
stop on runlevel [!12345]
respawn
exec /sbin/getty -L 115200 ttyS0 vt102
eof
5) Configure minicom
$ apt-get install minicom
$ cat <<eof > ~/.minirc.ubuntu-10.04
pu port unix#/tmp/vbox-ubuntu-10.04
eof
6) start the VM using the VBox GUI and start minicom. Alternatively,
you could start the VM using vboxheadless. For example:
$ vboxmanage list vms | grep -i lucid
"Ubuntu Lucid Server" {caf77ca8-912b-4cde-b31b-5343432ae3bd}
$ vboxheadless --startvm caf77ca8-912b-4cde-b31b-5343432ae3bd &
$ minicom ubuntu-10.04
Regards,
- Robert
--
Central West End Linux Users Group (via Google Groups)
Main page: http://www.cwelug.org
To post: [email protected]
To subscribe: [email protected]
To unsubscribe: [email protected]
More options: http://groups.google.com/group/cwelug