VirtualBox

Opened 5 years ago

Closed 4 years ago

#18211 closed defect (invalid)

Adding physical DVD drive in FreeBSD causes segfault

Reported by: dbarowy Owned by:
Component: DVD Version: VirtualBox 5.2.22
Keywords: segfault dvd Cc:
Guest type: Linux Host type: other

Description

I have the following two FreeBSD ports installed:

virtualbox-ose-kmod-5.2.22     VirtualBox kernel module for FreeBSD
virtualbox-ose-nox11-5.2.22_1  General-purpose full virtualizer for x86 hardware

I am able to start up and use VirtualBox VMs, mostly without any issues, except when I add a physical drive. If I do the following:

  1. attach an empty DVD drive:
VBoxManage storageattach MyVM --storagectl "SATA Controller" --port 1 --device 0 --type dvddrive --medium emptydrive
  1. then start the VM:
VBoxHeadless --startvm MyVM
  1. then, after the machine boots, connect the VM to the physical DVD drive:
VBoxManage storageattach MyVM --storagectl "SATA Controller" --port 1 --device 0 --type dvddrive --medium host:/dev/cd0

I see the following in my console:

VBoxManage: error: The object functionality is limited
VBoxManage: error: Details: code E_ACCESSDENIED (0x80070005), component MachineWrap, interface IMachine, callee nsISupports
VBoxManage: error: Context: "MountMedium(Bstr(pszCtl).raw(), port, device, pMedium2Mount, fForceUnmount)" at line 763 of file VBoxManageStorageController.cpp

And in the console where I have VBoxHeadless running, I see

Segmentation fault

This is confirmed by /var/log/messages on the host, which says:

Dec 20 09:17:00 fbsdhost kernel: pid 77625 (VBoxHeadless), uid 1001: exited on signal 11

The error seems to suggest that there's something goofy with permissions, but whatever it is is not apparent to me (also, a segfault just seems like poor form if this is a valid error). As per FreeBSD instructions, permissions on devices are:

$ ll /dev/cd0 
crw-rw----  1 root  operator  0x56 Dec 12 15:16 /dev/cd0
$ ll /dev/xpt0 
crw-rw----  1 root  operator  0x49 Dec 12 15:16 /dev/xpt0
$ ll /dev/pass*
crw-rw----  1 root  operator  0x50 Dec 12 15:16 /dev/pass0
crw-rw----  1 root  operator  0x51 Dec 12 15:16 /dev/pass1
crw-rw----  1 root  operator  0x52 Dec 12 15:16 /dev/pass2
crw-rw----  1 root  operator  0x53 Dec 12 15:16 /dev/pass3
crw-rw----  1 root  operator  0x54 Dec 12 15:16 /dev/pass4

and my user is in the operator and vboxusers groups.

$ groups
meuser wheel operator vboxusers

I've attached the VBox.log for this machine.

Attachments (1)

VBox.log (72.3 KB ) - added by dbarowy 5 years ago.
VBox.log

Download all attachments as: .zip

Change History (2)

by dbarowy, 5 years ago

Attachment: VBox.log added

VBox.log

comment:1 by aeichner, 4 years ago

Resolution: invalid
Status: newclosed

FreeBSD is not an officially supported host, please report this to the FreeBSD port maintainers.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use