My issue is that I cannot get VirtualBox to display the host DVD drive as an available storage device unless there is a disc in the drive and the volume on that disc is mounted. My ultimate goal is to be able to burn discs in the guest OS (WinXP) using Nero.
I cannot enable passthrough because I never get the option to use the host drive unless there is already a disc in the drive and that disc has been mounted.
I have tried running both as a regular user and as root but neither one works.
VolFS is running and it mounts discs to '/vol/dev/dsk/c1t0d0/<disc name>' where <disc name> is the title of the volume on the disc. The path '/vol/dev/dsk/aliases/cdrom0' (later in the post) is just a a link to '/vol/dev/dsk/c1t0d0/'.
I have also tried just selecting "Empty" as the stroage medium but the passthrough option is unchecked and greyed out. When I boot into the Guest OS the DVD drive shows up but neither WindowsXP nor Nero detect that it is a CD/DVD burner.
I thought that I might be able to force VirtualBox to do what I wanted by using the VBoxManage command and its arguments but that didn't work either. Here's what I have tried so far tried:
I Named the storage controller 'Windows':
#VBoxManage storagectl Windows --add ide --controller PIIX4
Here are the storageattach commands that I have tried:
(The VDI is also named 'Windows', sorry if it causes confusion):
1) Case 1: Medium = Empty.
2) Case 2: Medium = file path, no disk or blank disc in drive.#VBoxManage storageattach Windows --storagectl Windows --port 1 --device 1 --type dvddrive -- medium empty --passthrough on
This gives me an optical drive in the guest OS but it is empty and doesn't recognize a blank disc if I insert it. Also if I look at the XML log file for the VDI it shows that passthrough is off.
3) Case 3: Medium = file path pointing to mounted disc with files#VBoxManage storageattach Windows --storagectl Windows --port 1 --device 1 --type dvddrive -- medium /vol/dev/aliases/cdrom0 --passthrough on
This gives me the following error when I start the VDI :
ERROR: Could not open the medium '/vol/dev/dsk/aliases/cdrom0'.
VMDK: error reading the magic number in '/vol/dev/dsk/aliases/cdrom0' (VERR_INVALID_PARAMETER)
Details: code NS_ERROR_FAILURE (0x80004005), component Medium, interface IMedium, callee nsIsupports
Context: "Open DVDImage(Bstr(pszMedium), empty UUID, dvdMedium.asOutParam()) at line 489 of file VBoxManageStorageController.cpp
error: Invalid UUID or filename.
I looked at VBox's behavior on other host OSes (OS X, Ubuntu 9, WindowsXP) and each of them will allow me to select the host DVD drive in the storage settings without having to mount the volume on the disc first; it will even work if the drive is empty. This seems to be a Solaris specific issue.#VBoxManage storageattach Windows --storagectl Windows --port 1 --device 1 --type dvddrive -- medium /vol/dev/aliases/cdrom0 --passthrough on
This gives me an optical drive in the guest OS and I can access the files on the disc but Windows & Nero don't recognize the drive as a burner so I cannot burn discs.
Are there any steps you can suggest I try in order to get Solaris to let VirtualBox use the host DVD drive without a mounted disc? Again my ultimate goal is to use Nero to burn discs from within Windows XP.
Thank you in advance, I hope someone can help.
-Ryan