[Bug 1829625] [NEW] disco64 vagrant box slow boot due to missing ttyS0 (uartmode1 not set to a log file in virtualbox)

Launchpad Bug Tracker 1829625 at bugs.launchpad.net
Sat Mar 21 02:44:50 UTC 2020


You have been subscribed to a public bug:

due to this issue the boot time of ubuntu 19.04 (disco) requires about
2minutes on my systems instead of about 5-7 seconds.

environment:
* ubuntu 18.04
* vagrant v2.0.2
* virtualbox 6.0.8

steps to reproduce:
1) initialize vagrant: `vagrant init ubuntu/disco64`
2) start vagrant image: `vagrant up`

get the virtual machine name or uuid, and read the 'uartmode1' setup:
`VBoxManage showvminfo <uuid|vmname> --machinereadable |grep ^uart`
will result in:
----
uart1="0x03f8,4"
uartmode1="disconnected"
uarttype1="16550A"
uart2="off"
uart3="off"
uart4="off"
----

with 'uartmode1' disconnected, meaning 'ttyS0' not attached to the vm
ubuntu 19.04 will take a long time to boot.

with previous ubuntu versions this works fine, e.g. cosmic64 or
bionic64.

----
uart1="0x03f8,4"
uartmode1="file,/somedir/vagrant-test-cosmic64/ubuntu-cosmic-18.10-cloudimg-console.log"
uarttype1="16550A"
uart2="off"
uart3="off"
uart4="off"
----

if the ttyS0 should no longer be attached by default then the grub parameter 'GRUB_CMDLINE_LINUX_DEFAULT' in '/etc/default/grub.d/50-cloudimg-settings.cfg' needs to be adjusted from:
GRUB_CMDLINE_LINUX_DEFAULT="console=tty1 console=ttyS0"
to 
GRUB_CMDLINE_LINUX_DEFAULT="console=tty1"


the impact is best visible when the vm is started with a gui, either from virtualbox gui or with vagrant in 'Vagrantfile':
----
   config.vm.provider "virtualbox" do |vb|
     # Display the VirtualBox GUI when booting the machine
     vb.gui = true  
   end
----

** Affects: cloud-images
     Importance: Undecided
         Status: New

** Affects: livecd-rootfs (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: disco64 id-5cf13913704f6332da576e60 log ttys0 uartmode1 vagrant virtualbox
-- 
disco64 vagrant box slow boot due to missing ttyS0 (uartmode1 not set to a log file in virtualbox)
https://bugs.launchpad.net/bugs/1829625
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to livecd-rootfs in Ubuntu.



More information about the foundations-bugs mailing list