===== Solaris 10 Serial Console =====
- Enable a serial port for the VM.
- Enable Port 1
- Port Number COM1
- Port Mode: Host Pipe
- Create Pipe
- Port/File Path: /tmp/vb-VM-NAME-console
- Perform a reconfiguration boot on the VM.
- Install //socat// on the host systemsudo apt-get install socat
- Change the //eeprom// console device for the VM:eeprom console=ttya
- Change the ///boot/grub/menu.lst// for the VM:
...
# To enable grub serial console to ttya uncomment the following lines
# and comment out the splashimage line below
# WARNING: don't enable grub serial console when BIOS console serial
# redirection is active!!!
serial --unit=0 --speed=9600
terminal serial
#
# Uncomment the following line to enable GRUB splashimage on console
#splashimage /boot/grub/splash.xpm.gz
#
# To chainload another OS
...
- Bring down the VM:init 5
- Once this is done, we can now tell VirtualBox to boot the VM headless and connect with socat
VBoxManage startvm node1 --type headless && socat -,raw,echo=0 /tmp/vb-node1-console