All Projects → ynkjm → ubuntu-serial-install

ynkjm / ubuntu-serial-install

Licence: other
Ubuntu installation for servers without video card

Projects that are alternatives of or similar to ubuntu-serial-install

UEFI MULTI
UEFI_MULTI - Make Multi-Boot USB-Drive
Stars: ✭ 33 (-71.55%)
Mutual labels:  uefi-boot
SnowFlake
Technology is free, SnowFlakeOS
Stars: ✭ 38 (-67.24%)
Mutual labels:  uefi-boot
simonpi
A quick & dirty script to emulate Raspberry PI family devices on your laptop.
Stars: ✭ 61 (-47.41%)
Mutual labels:  uefi-boot
uefi-elf-bootloader
UEFI ELF Bootloader example
Stars: ✭ 40 (-65.52%)
Mutual labels:  uefi-boot
arch-secure-boot
UEFI Secure Boot for Arch Linux + btrfs snapshot recovery
Stars: ✭ 60 (-48.28%)
Mutual labels:  uefi-boot
OpenWrt-UEFI-Support
Add UEFI-Boot Support to Openwrt v19.07 & v18.06 (Unofficial Support)
Stars: ✭ 13 (-88.79%)
Mutual labels:  uefi-boot
MultiOS-USB
Boot operating systems directly from ISO files
Stars: ✭ 106 (-8.62%)
Mutual labels:  uefi-boot
arch-efiboot
Boot EFISTUB linux kernels on UEFI systems not supporting kernel command line
Stars: ✭ 35 (-69.83%)
Mutual labels:  uefi-boot
ansible-os-autoinstall
Unattended OS installation configuration system
Stars: ✭ 54 (-53.45%)
Mutual labels:  uefi-boot

How to install Ubuntu using serial console

This instruction show you how to install Ubuntu with serial console without VGA. We have tested the following instructions under UEFI boot and legacy boot mode.

USB boot-disk setup

  1. Download an ubuntu server amd64 iso file

  2. Create a USB boot disk using unetbootin

  3. Modify the following files. If you still use legacy bios boot mode, modify isolinux/isolinux.cfg, isolinux/txt.cfg, syslinux.cfg. If you use UEFI boot mode, modify boot/grub/grub.cfg only.

    • isolinux/isolinux.cfg
    # D-I config version 2.0
    include menu.cfg
    default menu.c32
    prompt 0
    timeout 0
    
    • isolinux/txt.cfg
    default install
    label install
      menu label ^Install Ubuntu Server
      kernel /install/vmlinuz
      append vga=normal initrd=/install/initrd.gz -- console=tty0 console=ttyS0,115200n8 nosplash debug -
    
    • syslinux.cfg
    CONSOLE 0
    SERIAL 0 115200 0
    
    default menu.c32
    prompt 0
    menu title UNetbootin
    timeout 100
    
    label unetbootindefault
    kernel /ubnkern
    append vga=normal initrd=/ubninit nomodeset askmethod console=tty0 console=ttyS0,115200n8
    
    • boot/grub/grub.cfg

    Add serial console options and remove quiet option in the menuentry of "Insatall Ubuntu Server"

    menuentry "Install Ubuntu Server" {
        set gfxpayload=keep
        linux   /install/vmlinuz  file=/cdrom/preseed/ubuntu-server.seed vga=normal console=tty0 console=ttyS0,115200n8 ---
        initrd  /install/initrd.gz
        }
    

Hardware configuration

  1. Enter BIOS.

  2. Setup serial port setting to allow console redirection.

    • Enter "Advanced Setup Configurations" Tab

      • Enter "Super IO Configuration" option

         Serial Port 0 Configuration /Serial Port 1 Configuration
         Serial Port: Enabled
        
      • Enter "Serial Port Console Redirection" option

         Terminal Type: VT100+
         Bits Per second: 115200
         Data Bits: 8 Bits
         Parity: None
         Stop Bits: 1
         Flow Control: None
         VT-UTF8 Combo Key Support: Enabled
         Recorder Mode: Disabled
         Resolution 100x31: Enabled
         Legacy OS Redirection Resolution: 80x25
         Putty KeyPad: VT100
         Redirection After BIOS Post: Always Enable
        
  3. Select boot partition

    • Enter "Boot" Tab

    Set UEFI USB disk boot or USB disk as first boot priority at Boot Option

  4. Save current BIOS configuration and reboot

Client setup

  1. Attach serial console from client
% screen /dev/ttyS0 115200

Ubuntu Installation

  1. Proceed normal Ubuntu installation.

  2. At the phase of GRUB installation, select your correct boot disk for boot loader. An Ubuntu 14.04 installation boot disk may be "/dev/sda" in case that you use USB boot.

    /dev/sdb
    
  3. Install SSH daemon and avahi-daemon to configure the system after this installation.

  4. (Optional) When you see the dialog at "Finish the installation", check "" and select "start shell" to check host IP address in a DHCP environment with the following command.

    $ ip addr show
    

First boot after the installation

  1. Enter editing mode of grub boot option with key e, when you see grub boot menu on serial console.

  2. Add console options after ro in linux boot options

    linux ..... ro console=tty0 console=ttyS0,115200n8
    
  3. Boot linux with current grub configuration by Ctrl-x

Post setup

  1. Grub configuration

    • Edit /etc/default/grub as follows:
    GRUB_CMDLINE_LINUX_DEFAULT=""
    GRUB_TERMINAL='serial console'
    GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8"
    GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
    
    • Update grub configuration
    # update-grub
    

Tested Ubuntu and Hardware

Ubuntu version

  • Ubuntu 14.04 LTS
  • Ubuntu 15.10
  • Ubuntu 16.04 LTS
  • Ubuntu 16.04.1 LTS

Tested hardware

  • Lanner FW-7551
  • Lanner FW-8896
  • Lanner NCA-4010
  • Riava Rangeley server

Reference

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].