VirtualBox

Opened 13 years ago

Last modified 9 years ago

#7736 reopened defect

SATA disks not found after reboot into linux (ICH9 only) — at Version 16

Reported by: Mike Musterd Owned by:
Component: other Version: VirtualBox 3.2.10
Keywords: Cc:
Guest type: Linux Host type: Windows

Description (last modified by michaln)

Situation:

  • I have a IDE hdd with a linux installation on it, as well as grub.
  • I have a IDE cdrom with an image of windows XP on it.
  • I have a SATA hdd with windows XP on it, or nothing

I want to boot the linux OS, which will determine if the windows XP partition is available and has booted correctly. If this is the case, a grub-reboot is issued to boot into windows XP once, otherwise the image is restored onto the HDD. If I reboot from windows XP, the linux OS should do the above again.

On an actual machine, the procedure works without a hitch.

However after a reboot from windows XP to linux (Start | Shut Down... | Restart) the linux suddenly can't find the SATA disks. dmesg has the following lines:

[    6.166426] ata1.00: qc timeout (cmd 0xec)
[    6.166426] ata1.00: failed to IDENTIFY (I/O error, err_mask=0x4)
[    6.516437] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   16.517619] ata1.00: qc timeout (cmd 0xec)
[   16.517619] ata1.00: failed to IDENTIFY (I/O error, err_mask=0x4)
[   16.517619] ata1: limiting SATA link speed to 1.5 Gbps
[   16.866406] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   46.866424] ata1.00: qc timeout (cmd 0xec)
[   46.866424] ata1.00: failed to IDENTIFY (I/O error, err_mask=0x4)
[   47.216399] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   47.566424] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   52.566425] ata2.00: qc timeout (cmd 0xec)
[   52.566425] ata2.00: failed to IDENTIFY (I/O error, err_mask=0x4)
[   52.916425] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   62.916398] ata2.00: qc timeout (cmd 0xec)
[   62.916398] ata2.00: failed to IDENTIFY (I/O error, err_mask=0x4)
[   62.916398] ata2: limiting SATA link speed to 1.5 Gbps
[   63.266424] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   93.266437] ata2.00: qc timeout (cmd 0xec)
[   93.266437] ata2.00: failed to IDENTIFY (I/O error, err_mask=0x4)
[   93.616439] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)

Attached is the full vbox.log and the full dmesg as I have it.

Change History (18)

by Mike Musterd, 13 years ago

Attachment: vbox.log added

vbox log

by Mike Musterd, 13 years ago

Attachment: dmesg.log added

dmesg log

comment:1 by Frank Mehnert, 13 years ago

Description: modified (diff)

comment:2 by Frank Mehnert, 13 years ago

Still relevant with VBox 4.0.6?

comment:3 by Frank Mehnert, 13 years ago

Resolution: fixed
Status: newclosed

No response, closing.

comment:4 by Stefan de Konink, 12 years ago

Resolution: fixed
Status: closedreopened

This still happens in 4.1.6.

I am currently observing it using a 32bit kernel under a 64bit host system. Tried the variants such as smp kernel, no apic etc.

comment:5 by Stefan de Konink, 12 years ago

Maybe good to mention, the system doesn't even (cold) boot up.

comment:6 by Frank Mehnert, 12 years ago

Which host and which guest is that? Do you think this is a regression (did it work with older VirtualBox releases)?

comment:7 by Stefan de Konink, 12 years ago

Host is amd64. Guest is a Linux 3.1.0 system. I first attemped the install with 4.1.4 which als resulted in this crash.

The strangest thing is that, it think it might be related to the Linux kernel itself. Because an older kernel is in fact booting.

comment:8 by Stefan de Konink, 12 years ago

Guest is a 32bit system.

comment:9 by Stefan de Konink, 12 years ago

Ok this is an interesting situation.

I have just found out that booting an SMP kernel with nosmp basically triggers this. My guess is that any non-smp kernel breaks.

comment:10 by Stefan de Konink, 12 years ago

Klaus told me on IRC that an image would really help. I have put the OVA file online:

http://stefan.konink.de/contrib/vbox/SATA%20Failure%20with%20nosmp.ova

It is really easy to see, just watch grub.

comment:11 by michaln, 12 years ago

Don't use the ICH9 chipset. It is currently not compatible with the nosmp option. More specifically, if a guest doesn't use the I/O APIC, it's not going to work with ICH9.

comment:12 by Stefan de Konink, 12 years ago

I am pretty sure I have tried to switch to the other chipset and see the same thing. Are you sure about this?

comment:13 by Stefan de Konink, 12 years ago

Never mind, I just checked it. Switching Chipset works.

Could you please add a feature requests that explicitly notes the host system should user I/O APIC (and thus SMP) for Linux hosts to run this?

comment:14 by michaln, 12 years ago

Not really... It's a bug in our ICH9 implementation. And the workaround is extremely simple - don't use the ICH9 emulation unless you know for a fact that you need it. There's a reason why it's marked as such in the GUI.

comment:15 by Frank Mehnert, 12 years ago

Summary: SATA disks not found after reboot into linuxSATA disks not found after reboot into linux (ICH9 only)

comment:16 by michaln, 9 years ago

Description: modified (diff)

This same problem also affects OS/2 guests in a different and perhaps even less obvious manner (see #13562 for details).

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use