ubuntu/focal64 very slow to boot and reboots once
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-images |
Fix Released
|
Undecided
|
John Chittum | ||
Focal |
Fix Released
|
Undecided
|
John Chittum | ||
Groovy |
Fix Released
|
Undecided
|
John Chittum | ||
livecd-rootfs (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
SRU
[IMPACT]
* Users are unable to boot a vagrant image, as the boot time without a serial console connection exceeds the vagrant timeout
* bug is focal as well as latest devel devel release.
* Upload fixes the bug by creating a serial console connection to a null file
[TEST CASE]
* tests require vagrant and virtualbox to be installed on the testing machine.
* livecd-rootfs build with ubuntu-cpc project
* download vagrant .box file and add (`vagrant box add <PATH TO BOX> --name focal-test-image`)
* create testing directory and cd
* create Vagrantfile to use focal-test-image as the image
```
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.
config.vm.box = "focal-test-image"
end
```
* run `vagrant up`
* observe that image successfully boots (should boot in < 60s)
* vagrant halt
* update vagrant file to have a new serial connection and send to a log (this shows that the default NULL connection can be overridden by a local user).
```
Vagrant.
NOW = Time.now.
FILENAME = "serial-
config.vm.box = "focal-test-image"
config.
vb.customize [ "modifyvm", :id, "--uart1", "0x3F8", "4" ]
vb.customize [ "modifyvm", :id, "--uartmode1", "file", File.join(Dir.pwd, FILENAME) ]
end
end
```
* run vagrant up and observe that a serial connection has been established, and a log is written. Log should be named `serial-
[Regression Potential]
* possibility of incorrect configuration, leading to either the serial console not engaging properly, or a file being written instead of sent to a NULL file.
* configuration stanza could be incorrect depending upon version(such as File::NULL not being available)
[ORIGINAL DESCRIPTION]
Using `ubuntu/focal64` version `20200423.0.0`, the boot process is extremely slow and the box always reboots once before completing a successful boot. With default settings, this causes a timeout in Vagrant waiting for SSH to be available. Setting a long enough timeout it does eventually boot successfully. For comparison, `ubuntu/bionic64` boots successfully in roughly 10 seconds on my machine.
This appears to be the big hang-up:
Apr 23 14:00:12 ubuntu-focal kernel: [ 0.219784] printk: console [tty1] enabled
Apr 23 14:00:12 ubuntu-focal kernel: [ 76.448371] printk: console [ttyS0] enabled
I have a hard time telling where exactly it reboots because my /var/log/syslog only ends up with the second boot. I can watch it in Virtualbox though and it suddenly reboots, then the second boot process runs to completion. The long delay shown above happens both times making the total time to a successful boot very long. Here is the head of my /var/log/syslog:
Apr 23 14:00:12 ubuntu-focal systemd[1]: Finished Remount Root and Kernel File Systems.
Apr 23 14:00:12 ubuntu-focal systemd[1]: Finished Uncomplicated firewall.
Apr 23 14:00:12 ubuntu-focal systemd[1]: Mounting FUSE Control File System...
Apr 23 14:00:12 ubuntu-focal systemd[1]: Mounting Kernel Configuration File System...
Apr 23 14:00:12 ubuntu-focal systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped.
Apr 23 14:00:12 ubuntu-focal systemd[1]: Starting Flush Journal to Persistent Storage...
Apr 23 14:00:12 ubuntu-focal systemd[1]: Condition check resulted in Platform Persistent Storage Archival being skipped.
Apr 23 14:00:12 ubuntu-focal systemd[1]: Starting Load/Save Random Seed...
Apr 23 14:00:12 ubuntu-focal systemd[1]: Starting Apply Kernel Variables...
Apr 23 14:00:12 ubuntu-focal systemd[1]: Starting Create System Users...
Apr 23 14:00:12 ubuntu-focal systemd-
Apr 23 14:00:12 ubuntu-focal systemd-
Apr 23 14:00:12 ubuntu-focal systemd[1]: Finished udev Coldplug all Devices.
Apr 23 14:00:12 ubuntu-focal systemd[1]: Mounted FUSE Control File System.
Apr 23 14:00:12 ubuntu-focal systemd[1]: Mounted Kernel Configuration File System.
Apr 23 14:00:12 ubuntu-focal systemd[1]: Finished Flush Journal to Persistent Storage.
Apr 23 14:00:12 ubuntu-focal systemd[1]: Finished Load/Save Random Seed.
Apr 23 14:00:12 ubuntu-focal systemd[1]: Finished Apply Kernel Variables.
Apr 23 14:00:12 ubuntu-focal systemd-
Apr 23 14:00:12 ubuntu-focal systemd-
Apr 23 14:00:12 ubuntu-focal systemd[1]: Starting udev Wait for Complete Device Initialization...
Apr 23 14:00:12 ubuntu-focal systemd[1]: Finished Create System Users.
Apr 23 14:00:12 ubuntu-focal systemd[1]: Starting Create Static Device Nodes in /dev...
Apr 23 14:00:12 ubuntu-focal systemd[1]: Finished Create Static Device Nodes in /dev.
Apr 23 14:00:12 ubuntu-focal systemd[1]: Starting udev Kernel Device Manager...
Apr 23 14:00:12 ubuntu-focal systemd[1]: Started udev Kernel Device Manager.
Apr 23 14:00:12 ubuntu-focal kernel: [ 0.000000] Linux version 5.4.0-26-generic (buildd@
Ubuntu 5.4.0-26.30-generic 5.4.30)
Apr 23 14:00:12 ubuntu-focal kernel: [ 0.000000] Command line: BOOT_IMAGE=
Subsequent boots are also slow but don't seem to have the extra reboot.
---
ProblemType: Bug
AlsaDevices:
total 0
crw-rw---- 1 root audio 116, 1 May 7 16:02 seq
crw-rw---- 1 root audio 116, 33 May 7 16:02 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: N/A
CasperMD5CheckR
DistroRelease: Ubuntu 20.04
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
Lsusb: Error: command ['lsusb'] failed with exit code 1:
Lsusb-t:
Lsusb-v: Error: command ['lsusb', '-v'] failed with exit code 1:
MachineType: innotek GmbH VirtualBox
Package: linux (not installed)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
LANG=C.UTF-8
SHELL=/bin/bash
ProcFB: 0 vboxvideodrmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware N/A
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
Tags: focal uec-images
Uname: Linux 5.4.0-29-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
_MarkForUpload: True
dmi.bios.date: 12/01/2006
dmi.bios.vendor: innotek GmbH
dmi.bios.version: VirtualBox
dmi.board.name: VirtualBox
dmi.board.vendor: Oracle Corporation
dmi.board.version: 1.2
dmi.chassis.type: 1
dmi.chassis.vendor: Oracle Corporation
dmi.modalias: dmi:bvninnotekG
dmi.product.family: Virtual Machine
dmi.product.name: VirtualBox
dmi.product.
dmi.sys.vendor: innotek GmbH
Related branches
- Robert C Jennings (community): Approve
- Ubuntu Core Development Team: Pending requested
-
Diff: 40 lines (+18/-3)2 files modifieddebian/changelog (+7/-0)
live-build/ubuntu-cpc/hooks.d/base/vagrant.binary (+11/-3)
- Steve Langasek: Needs Fixing
- Robert C Jennings (community): Approve
-
Diff: 38 lines (+17/-2)2 files modifieddebian/changelog (+7/-0)
live-build/ubuntu-cpc/hooks.d/base/vagrant.binary (+10/-2)
tags: | added: id-5ea301b83ffa4678e126f5af |
affects: | linux (Ubuntu) → livecd-rootfs (Ubuntu) |
Changed in cloud-images: | |
assignee: | nobody → John Chittum (jchittum) |
description: | updated |
description: | updated |
tags: |
added: verification-done-focal removed: verification-needed-focal |
To give concrete time comparison on my machine, `ubuntu/bionic64` (20200416.0.0) boots in about 30 seconds, where `ubuntu/focal64` (20200423.0.0) takes over 4 minutes. That is on boots of a machine that has already booted once so does not include the initial reboot problem.