4
0
I have a Windows 10 VM running headless in VirtualBox on FreeBSD 11.1. It runs without issues. I'd like to enable the VM to access physical CDs/DVDs so that I can insert real discs and open them in the VM.
When I do
VBoxManage storageattach MyVM --storagectl "SATA Controller" --port 1 --device 0 --type dvddrive --medium host:/dev/cd0
the VM no longer starts.
$ VBoxManage startvm MyVM
--type headless Waiting for VM "MyVM" to power on...
VBoxManage: error: The VM session was aborted
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component SessionMachine, interface ISession
I ensured that /etc/devfs.conf
contains
perm cd* 0660
perm xpt0 0660
perm pass* 0660
and my user is in the operator group. Furthermore, the VirtualBox log contains no obvious errors or warnings. The VM just aborts without any useful diagnostic information. Removing the CD device restores the VM to functionality.
Any ideas?
Update: it looks like VBoxHeadless
is shutting down due to a segmentation fault. The cause is still unclear to me. From /var/log/messages
:
May 5 12:05:31 the_computer kernel: vboxdrv: XXXXXXXXXXXXXXXX VMMR0.r0
May 5 12:05:31 the_computer kernel: vboxdrv: XXXXXXXXXXXXXXXX VBoxDDR0.r0
May 5 12:05:31 the_computer kernel: pid 61621 (VBoxHeadless), uid 1001: exited on signal 11
Update 2: The point where VBoxHeadless
aborts is where the VM initializes ATA devices. Without the CD device, I see the following in the log:
...
00:00:01.280311 VD#0: Cancelling all active requests
00:00:01.280468 PIIX3 ATA: LUN#0: no unit
...
but when I add it back in, I get
...
00:00:00.273730 VD#0: Cancelling all active requests
[end of file]
hald
is already running on my machine, with exactly the same/etc/devfs
you have. Good thinking, though! – Dan Barowy – 2018-05-16T00:28:11.853Unfortunately, this answer did not help (I suspect a VBox bug), but it seems complete enough that hopefully it helps someone else. – Dan Barowy – 2018-05-21T17:16:59.847
I've edited my answer to show info on how to make ISO files from your CDs as a workaround for this issue. Since it seems to be a bug in VirtualBox, I urge you to report it via their Bugtracker. If you do, please post a link to the bug in a comment here, and I'll edit it into my answer.
– 3D1T0R – 2018-05-21T20:10:57.800@DanBarowy: Did you submit a bug report? – 3D1T0R – 2018-05-24T05:15:59.187