ubuntu 16.04 server serial install

ubuntu 16.04 server serial install

ximport 16.04


  • host computer with a serial port (a USB to serial adapter should do)
  • target computer with a serial port
  • Configured for booting over USB
  • An internet connection
  • null modem cable
  • USB flash drive

USB flash drive setup

Target setup

  • Do the setup as usual, but
  • In the partitioning step, be sure not to choose the USB flash drive as destination
  • When installing grub, choose no, then manually select your destination drive
  • When “Installation complete” is shown, don’t reboot, choose “go back” and execute a shell
mount -o bind /sys /target/sys/
mount -o bind /proc /target/proc
mount -o bind /dev /target/dev
chroot /target/ /bin/bash

edit the /etc/default/grub file

# Disable GRUB_HIDDEN_TIMEOUT because it triggers a depcrecation warning
# should be fixed upstream

# Disable splash and quiet

# Enable the serial console for the kernel

# Make sure grub don't wait for a user input after a failed boot

# Let grub speek on the serial port
GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
  • Then
grub-install /dev/sdc
umount /target/sys
umount /target/proc
umount /target/dev
  • Finish the installation


Question, remark, bug? Don't hesitate to contact me or report a bug.