Date: Mon, 08 Jan 2018 15:45:14 -0500 From: rivers@linode.dignus.com (Thomas David Rivers) To: rivers@dignus.com, freebsd-emulation@freebsd.org Subject: VirtualBox 5.2.4 & native CD access on FreeBSD 11.1 Message-ID: <20180108204514.35FB681D5@linode.dignus.com>
next in thread | raw e-mail | index | archive | help
Having some problems with VirtualBox on FreeBSD 11.1. I've entered these as tickets on virtualbox.org: https://www.virtualbox.org/ticket/17424 https://www.virtualbox.org/ticket/17434 But - I can't seem to access the CD-rom natively... VBoxSVC appears to die. Just wondering if I might have something not set-up correctly on FreeBSD 11.1. I was following the notes from the HandBook (https://www.freebsd.org/doc/handbook/virtualization-host-virtualbox.html) Chapter 21.6. Note that 'hald' isn't installed by default in FreeBSD 11.1; I grabbed it from the 11.1 packages. So - I have 'hald_enable="YES" in /etc/rc.conf, and hald is running: root@fs1:~ # ps -gax | grep hald 796 - Ss 0:00.41 /usr/local/sbin/hald 801 - I 0:00.06 hald-runner 816 - S 0:00.34 hald-addon-storage: /dev/cd0 (hald-addon-storage) 988 4 S+ 0:00.00 grep hald and I've changed /etc/devfs.conf to provide the proper permissions: # # For VirtualBox HAL access to devices # perm cd* 0660 perm xpt0 0660 perm pass* 0660 and - the permissions on /dev/cd*, /dev/xpt0 and /dev/pass* are: root@fs1:/dev # ls -l cd* xpt* pass* crw-rw---- 1 root operator 0x54 Jan 8 19:42 cd0 crw-rw---- 1 root operator 0x50 Jan 8 19:42 pass0 crw-rw---- 1 root operator 0x51 Jan 8 19:42 pass1 crw-rw---- 1 root operator 0x52 Jan 8 19:42 pass2 crw-rw---- 1 root operator 0x53 Jan 8 19:42 pass3 crw-rw---- 1 root operator 0x47 Jan 8 19:42 xpt0 Also - the virtualbox user (boxes) is in the group "operator". When I try to create a new machine in VirtualBox (the latest 5.2.4 package), I then need to read the CD to install the OS. When I click on the native device (a MITSUMI drive, properly reported); the virtual machine just goes to "Aborted" state. Looking in the logs, particularly the VBoxSVC log, I see: Log created: 2018-01-09T00:38:59.353089000Z Executable: /usr/local/lib/virtualbox/VBoxSVC Arg[0]: /usr/local/lib/virtualbox/VBoxSVC Arg[1]: --auto-shutdown AddRef: illegal refcnt=3221225469 state=2 and also the VBox.log file reports: 00:00:03.403010 PIT: mode=2 count=0x10000 (65536) - 18.20 Hz (ch=0) 00:00:03.403464 VMMDev: Guest Log: BIOS: Boot : bseqnr=1, bootseq=0321 00:00:03.403967 VMMDev: Guest Log: BIOS: Boot from Floppy 0 failed 00:00:03.404059 VMMDev: Guest Log: BIOS: Boot : bseqnr=2, bootseq=0032 00:00:03.404867 VMMDev: Guest Log: BIOS: Boot from Hard Disk 0 failed 00:00:03.404937 VMMDev: Guest Log: BIOS: Boot : bseqnr=3, bootseq=0003 00:00:03.405672 VMMDev: Guest Log: BIOS: CDROM boot failure code : 0003 00:00:03.405738 VMMDev: Guest Log: BIOS: Boot from CD-ROM failed 00:00:03.406181 VMMDev: Guest Log: Could not read from the boot medium! System halted. (unfortunately, it doesn't bother to report why it couldn't read from the CD-ROM.) There is a VBoxSVC.core file created, and gdb of that doesn't reveal too much beyond an un-caught SIGTRAP: # gdb -core VBoxSVC.core GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd". Core was generated by `/usr/local/lib/virtualbox/VBoxSVC --auto-shutdown'. Program terminated with signal 5, Trace/breakpoint trap. #0 0x00000008064188ab in ?? () (gdb) where #0 0x00000008064188ab in ?? () #1 0x0000000806627ac0 in ?? () #2 0x0000000806a41dc0 in ?? () #3 0x0000000805cda280 in ?? () #4 0x00000000000001f4 in ?? () #5 0x00007fffdfaf3c50 in ?? () #6 0x00000008064161cd in ?? () #7 0x00007fffdfaf3c30 in ?? () #8 0x00000000000001f4 in ?? () #9 0x00007fffdfaf3c50 in ?? () #10 0x0000000000000000 in ?? () So - does someone have good luck accessing the host CD drive in VirtualBox under FreeBSD 11.1? I'm guessing it has to be some config problem somewhere, so if someone has some pointers of where to look; it would be appreciated! - Thanks! - - Dave Rivers - -- Work: (919) 676-0847 Get your mainframe programming tools at http://www.dignus.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180108204514.35FB681D5>