Bug 184530 - Booting FreeBSD 10.0-BETA4 / 11-CURRENT fails under Parallels on OSX with empty virtual DVDROM
Summary: Booting FreeBSD 10.0-BETA4 / 11-CURRENT fails under Parallels on OSX with emp...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-06 06:00 UTC by karl
Modified: 2018-05-20 23:53 UTC (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description karl 2013-12-06 06:00:00 UTC
Both FreeBSD 10.0-BETA4 and 11-CURRENT both fail at boot time if you have an empty virtual DVDROM attached to the system (this doesn't even have to be marked as 'Connected' in Parallels - just present in the virtual machine hardware list).

The DVDROM probes as:

cd0 at ahcich1 bus 0 scbus3 target 0 lun 0
cd0: < Virtual DVD-ROM R103 > Removable CD-ROM SCSI-0 device
cd0: Serial Number - xxxxxxx
cd0: 150.000MB/s transfers (SATA 1.x, UDMA1, ATAPI 12bytes, PIO 8192bytes)
cd0: cd present [1 x 0 byte records]
random: unblocking device.
Netvsc initializing... SMP: AP CPU #1 Launched!
SMP: AP CPU #2 Launched!
SMP: AP CPU #3 Launched!
WARNING: WITNESS option enabled, expect reduced performance.

With no 'media' in the virtual drive - that's as far as you'll get booting - after a long time out you'll then get the following logged:

ahcich1: Timeout on slot 0 port 0
ahcich1: is 00000000 cs 00000000 ss 00000000 rs 00000003 tfd 2051 serr 00000000 cmd 1000c013

That just repeats.

If you *have* virtual media in the DVDROM drive the system sometimes throws one of the timeouts similar to the above - but will boot.

With media in the drive - the kernel output at boot shows:

  cd0: cd present [1306092 x 2048 byte records]

Without media that bit shows as:

  cd0: cd present [1 x 0 byte records]  <---- Probably not good!

Fix: 

Don't boot the virtual machine with a virtual DVDROM attached **and no media** in the drive.

If you have no 'media' in the drive **remove the drive** from the Parallels virtual machine configuration - unchecking the 'Connected' box is not enough to fix the issue - you have to remove it from the virtual machine hardware list with the '-' button.

I realise this is probably going to be a low priority 'bug' - but at least it's now documented incase someone else runs into the issue (I couldn't find any mention of this on the lists / search engines)
How-To-Repeat: Create a virtual machine under Parallels 9 on OSX with a virtual DVDROM (a default 'new machine' will do this) - and boot a 10.0-BETA4 or 11-CURRENT kernel.
Comment 1 Dave Evans 2014-07-19 11:24:45 UTC
I found that it would boot if the CDROM was assigned to a virtual IDE drive. I could not get it to boot from a virtual SATA drive.

I came across this bug after upgrading Parallels to version 9.  It used to work on Parallels 7
Comment 2 lyndon 2014-09-30 02:03:56 UTC
I can confirm moving the CD-ROM device to IDE (1:0 in my case) works.

I will also note that the timeout happens not just at boot time.  I was running multi-user mode and noticed the virtual CD-ROM was being accessed every 10 seconds or so (probably dbus), even though it wasn't mounted.  I ejected the virtual disk image to stop the annoying blinking icon in Parallels, and the timeouts started logging to /var/log/messages.  At the time I didn't know what was provoking the messages, but it wasn't degrading the system, so I ignored them.

This is FreeBSD amd64 10.0-RELEASE-p9 (GENERIC) kernel and user space.
Parallels Desktop build 9.0.24251 (Revision 1052177; Thursday, August 28, 2014).
Comment 3 Bob Bishop 2014-11-11 11:39:26 UTC
On Parallels 10 (28614) this problem stalls installation of 9.x or 10.x i386 at the ahcich probe. Workaround is to configure both HDDs and DVD/CD as IDE. Will update when I get a response to my ticket with Parallels.
Comment 4 Bob Bishop 2014-11-18 20:36:27 UTC
Further to above, my support ticket with Parallels has been escalated to Development so a fix may result. Will update if/when any progress.
Comment 5 Ed Maste freebsd_committer 2015-09-25 17:59:05 UTC
> Further to above, my support ticket with Parallels has been escalated to
> Development so a fix may result. Will update if/when any progress.

Have you heard anything further on this issue?
Comment 6 Michael Gmelin freebsd_committer 2015-09-30 19:27:33 UTC
@Karl: Thank you so much for opening this bug, I've been using Parallels in IDE only mode with lots of time-out problems when having more than one drive attached ever since I upgraded to 10. This totally made my day.
Comment 7 Eitan Adler freebsd_committer freebsd_triage 2018-05-20 23:53:30 UTC
For bugs matching the following conditions:
- Status == In Progress
- Assignee == "bugs@FreeBSD.org"
- Last Modified Year <= 2017

Do
- Set Status to "Open"