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
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.
Update: it looks like
VBoxHeadless is shutting down due to a segmentation fault. The cause is still unclear to me. From
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]