VirtualBox

Opened 7 years ago

Last modified 3 years ago

#17480 new defect

Linux boot slows to a crawl when serial port is enabled for serial getty (console).

Reported by: chuckwolber Owned by:
Component: uart Version: VirtualBox 5.2.6
Keywords: slow boot serial port console Cc:
Guest type: Linux Host type: Mac OS X

Description

This issue first appeared in VirtualBox 5.2.6. This issue does *NOT* exist in VirtualBox 5.1.32 or earlier.

We are using a custom 64 bit Linux OS that uses a serial getty on ttyS0. Prior to VirtualBox 5.2.6, the boot took less than ten seconds. The boot now takes about 20 minutes under VirtualBox 5.2.6.

The UART settings in question are as follows:

UART 1: I/O base: 0x03f8, IRQ: 4, attached to pipe (server) '/tmp/ttyS0'
UART 2: I/O base: 0x02f8, IRQ: 3, attached to pipe (server) '/tmp/ttyS1' 

The boot returns to normal when using VirtualBox 5.2.6 if UART 1 is turned off. Or, we can leave both UARTs on and revert back to VirtualBox 5.1.32.

I have attached log files from VirtualBox 5.2.6. One log file is with UART 1 turned on (slow boot), and the other is with UART 1 turned off (fast boot).

Attachments (3)

vbox5.2.6-slow-boot.txt.gz (15.8 KB ) - added by chuckwolber 7 years ago.
Slow boot log.
vbox5.2.6-fast-boot.txt.gz (17.1 KB ) - added by chuckwolber 7 years ago.
Fast boot log.
Screen Shot 2018-01-18 at 5.54.34 PM.png (143.2 KB ) - added by chuckwolber 7 years ago.
Boot console screen shot at the moment things slow down to a crawl.

Download all attachments as: .zip

Change History (14)

by chuckwolber, 7 years ago

Attachment: vbox5.2.6-slow-boot.txt.gz added

Slow boot log.

by chuckwolber, 7 years ago

Attachment: vbox5.2.6-fast-boot.txt.gz added

Fast boot log.

by chuckwolber, 7 years ago

Boot console screen shot at the moment things slow down to a crawl.

comment:1 by aeichner, 7 years ago

Component: otheruart

comment:2 by aeichner, 7 years ago

To what kind of application is the named pipe connected, some standard tool available we can use for testing or something else?

comment:3 by aeichner, 7 years ago

Seems the slowdown is caused when there is no application connected to the other end, everything is back to normal as soon as it connects.

in reply to:  3 comment:4 by chuckwolber, 7 years ago

Replying to aeichner:

Seems the slowdown is caused when there is no application connected to the other end, everything is back to normal as soon as it connects.

To add to this - things seems to work fine when VirtualBox Additions are installed. Unfortunately that is not an option in this case, as this is a very minimal bootstrap OS.

comment:5 by chuckwolber, 7 years ago

Testing has shown that this problem does not occur when using VirtualBox 5.2.0.

comment:6 by chuckwolber, 7 years ago

Update: This problem still exists in VirtualBox 5.2.20 (r125813).

comment:7 by danham, 6 years ago

Has there been any progress on this or workarounds found?

I am experiencing the same issue. As reported above, when there is no application connected the console output slows to a crawl. When connected (with socat or minicom) everything goes back to normal. However, Virtualbox Additions are installed in the guest.

Host info:

$ VBoxManage --version
6.0.6r130049

$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.14.4
BuildVersion:   18E226

Guest info:

$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

$ VBoxControl version
Oracle VM VirtualBox Guest Additions Command Line Management Interface Version 6.0.6
(C) 2008-2019 Oracle Corporation
All rights reserved.

6.0.6r130049
Last edited 6 years ago by danham (previous) (diff)

comment:8 by chuckwolber, 6 years ago

Update: This problem still exists on VirtualBox 6.0.12

comment:9 by chuckwolber, 5 years ago

Update: This problem still exists on VirtualBox 6.0.18 (r136238)

Last edited 5 years ago by chuckwolber (previous) (diff)

comment:10 by chuckwolber, 5 years ago

Update: This problem still exists on VirtualBox 6.1.12 (r139181)

comment:11 by chuckwolber, 3 years ago

Update: This problem still exists on VirtualBox 6.1.28 (r147628)

Note: See TracTickets for help on using tickets.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette