VirtualBox

Ticket #1039 (closed defect: fixed)

Opened 6 years ago

Last modified 4 years ago

Long guest shut down times when serial port enabled.

Reported by: _Bernd Owned by:
Priority: minor Component: uart
Version: VirtualBox 1.5.4 Keywords:
Cc: Guest type: other
Host type: other

Description

I upgraded VirtualBox and the guest additions from version 1.5.2 to 1.5.4. My host is Linux Ubuntu 7.10, AMD64.

Shutting down a guest (it does not matter, if Linux or Windows guest) takes over 60 seconds now, if a guest serial port is enabled. This did not take so long with VirtualBox 1.5.2. Disabling the serial port results in normal shut down times (less than 10 seconds).

Attached are the log files.

Attachments

SerialDisabled.log Download (37.2 KB) - added by _Bernd 6 years ago.
SerialEnabled.log Download (37.8 KB) - added by _Bernd 6 years ago.
VBox.log.serial Download (35.5 KB) - added by airadier 6 years ago.
VBOx log with serial port enabled
VBox.log.noserial Download (36.3 KB) - added by airadier 6 years ago.
VBOx log with serial port disabled
VBox.log Download (41.7 KB) - added by NoOp 6 years ago.
vbox log

Change History

Changed 6 years ago by _Bernd

Changed 6 years ago by _Bernd

comment:1 Changed 6 years ago by frank

Could you retry with 1.5.6?

Changed 6 years ago by airadier

VBOx log with serial port enabled

Changed 6 years ago by airadier

VBOx log with serial port disabled

comment:2 follow-up: ↓ 12 Changed 6 years ago by airadier

Same happens for me since 1.5.4, in Ubuntu Gutsy 32bits.

In addition, sometimes after shutting down the machine and waiting this long time (about 1 minute), when I start Virtual Box again, the machine status is shown as "Aborted" instead of "Powered Off". In 1.5.6 I get this error on shutdown:

Ioctl failed for serial host device '/dev/ttyS0' (VERR_INVALID_POINTER). The device will not work properly.

Error ID: DrvHostSerialFail Severity: Warning

I'm attaching the with and without serial port connected logs: Vbox.log.serial and Vbox.log.noserial

comment:3 Changed 6 years ago by vonzilla

Hello.

Have the same problem (mentioned by airadier) in Mandriva 2008.0, VirtualBox 1.5.6_OSE, guest windows xp.

The ports themselves work properly but after turning off the guest VB tells "Ioctl failed ..." and the guest shutdown lasts for a minute or two. After that the machine status becomes "aborted" instead of "powered off".

comment:4 Changed 6 years ago by frank

Please check if this still applies to version 1.6.2.

Changed 6 years ago by NoOp

vbox log

comment:5 Changed 6 years ago by NoOp

It does. Ubuntu 8.04 (hardy) host, Win2KP guest.

comment:6 Changed 6 years ago by NoOp

Here's something rather interesting. I completely uninstalled the 1.6.2 Vbox Guest Addition & rebooted the VM. When Win2KP came up I received the "Ioctl failed for serial host device '/dev/ttyS0' (VERR_INVALID_POINTER). The device will not work properly" - the msg that you normally get at shut down. Checked the Harware Device Manager & the COM port is still showing just fine. But looking a little further I find under 'System Devices' that 'VirtualBox Device' has the yellow warning and click on it shows a msg "Your registry might be corrupted (Code 19). Reinstall the VB Guest Additions and let the VM reboot - no "Ioctl failed" msg on the reboot or when the machine booted back up.

I go back & look at the Device Manager again and the 'VirtualBox Device' is now OK (Com1 is also). So I do another reboot; no "Ioctl failed" msg. So this time I shut down the machine; no "Ioctl failed" msg! I then looked at the vbox.log and find no "Ioctl failed" msg their either. So maybe the trick is that you have to reinstall the VB Guest Addition after you've added the Com port.

comment:7 Changed 6 years ago by NoOp

I should add that there are two other related bug reports:

 http://www.virtualbox.org/ticket/1317 and  http://www.virtualbox.de/ticket/1281

Perhaps these can be consolidated?

comment:8 Changed 6 years ago by NoOp

I spoke too soon. It's back...

Ioctl failed for serial host device '/dev/ttyS0' (VERR_INVALID_POINTER). The device will not work properly.

Error ID: DrvHostSerialFail? Severity: Warning

comment:9 Changed 6 years ago by heinzE

I have the same with virtualbox-ose 1.6.2-2.8 (x86_64) with OpenSuse11. The message comes up when I want to close the machine (saving the current state). After the message it takes a while and the machine goes to broken state. If I restart the machine, a full boot happens. I also get the message when I shutdown Windows XP in the VM (with acpi or normal shutdown).

I activated the serial port after the first installation of xp. I used the trick to reinstall the Guest Additions after that but the problem still happens. To see the serial port in XP I had to do a hardware search.

During normal operation, it is possible to use the device (smartcard reader) at COM1 in a normal way.

comment:10 Changed 6 years ago by frank

There was a fix in 1.6.4 fixing the long VM shutdown time if the serial port is enabled. Did it fix your problem as well?

comment:11 Changed 6 years ago by frank

  • Component changed from other to uart

comment:12 in reply to: ↑ 2 Changed 6 years ago by mau

Hello. I have the same problem mentioned by airadier on a Debian Etch kernel 2.6.18-6-686, Virtualbox 2.0.2, guest WinXP service pack 2.

After shutting down the machine, when I start Virtual Box again, the machine status is shown as "Aborted" instead of "Powered Off". Sometimes status hangs to "closing", that needs a host system restart, or an explicit kill to "VBoxXPCOMIPCD" and "VBoxSVC" processes, after that, when I start Virtual Box again, status results "aborted". I don't view anything strange into logfile (no Ioctl errors), and I haven't long shutdown times except when status hangs to "closing".

comment:13 Changed 5 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Please reopen if this problem persists with the latest release 2.2.0.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use