14

I have CDs for Age of Empire III and I would like to play it in a Windows 10 VM. Is this possible? I know how to insert virtual CDs (i.e., ISO files) into a VirtualBox VM (via the "Storage" settings), but physical CDs are a different story. The best solution I can think of is to add where I've mounted the CDs on my Linux system to the system via shared folders.

  • Have you tried ripping the CD to get an ISO file? – lgeorget Mar 28 '17 at 11:59
  • 8
    It depends on the legislation that apply to your country/state/... In general, copying a physical asset is legal as long as you keep the copy for yourself. Moreover in your particular situation, you do it for the sake of interoperability. – lgeorget Mar 28 '17 at 12:02
  • 1
    It's possible to use the physical CD drive as the virtual machine's CD drive. However this may or may not work the way you want, depending on how the game is reading the CD. – Satō Katsura Mar 28 '17 at 12:08
  • 2
    Ripping doesn't necessarily work with certain games' copy protection; I don't know about AoE III, but AoE II needs the physical disk, it doesn't work with an image (unless you use a cracked version or the Steam re-release). – Stephen Kitt Mar 28 '17 at 12:35
  • 3
    @BrentonHorne, dd if=/dev/cdrom of=AoE3.iso – Mark Mar 28 '17 at 23:54
33

Yes you can, but you need to have DVD passthrough active.

Go to VirtualBox's Machine > Settings > Storage > Enable Passthrough for the DVD drive.

To allow an external DVD drive to be recognized by a VirtualBox Virtual Machine (VM) it must be configured in such a way that "passthrough" is enabled. Enabling Passthrough allows the underlying operating system to pass the required commands through to the device that is connected to the Virtual Machine as opposed to the host operating system instance.

  • 1
    Best solution by far. VirtualBox makes it kinda subtle how ya do this, but now you've saved me from the dramas of ripping. – BH2017 Mar 28 '17 at 12:49
  • What are the disadvantages of enabling pass-through? And @BrentonHorne I would suggest ripping anyway; your CD might eventually deteriorate at some point. – Mehrdad Mar 28 '17 at 19:42
  • Today it is called "Live CD/DVD" not "passthrough" You have to add an empty CD and it will give you that Live option. Then click the shiny CD icon just above and to the right of the Live checkbox and select the host device. – Lee Meador Apr 12 at 23:02
5

You should be able to use optical drive directly from VM. If it's Virtualbox then just in devices you have option to mount physical drive. Just the same as you can install os in VM without iso image.

  • Um this answer I'm afraid isn't helpful at the moment unless you show me what you're talking about (preferably using screenshots) or be very specific as to where I can find the physical drives. i.imgur.com/q1542cW.png is all I see in the storage section of the VM options (which I'm guessing you're referring to by "In devices"). I even showed the right-click menu for ya. Sorry for my confusion, I really want an answer here but I can't see what you describe, otherwise I wouldn't have asked this question. – BH2017 Mar 28 '17 at 12:14
  • 4.bp.blogspot.com/-4ZFhvY-8xxM/UaZDA0eVY4I/AAAAAAAADZk/… under this CD/DVD Devices shoudl be option to mount optical drive. this CD/DVD Devices you should find :, which you should find in menu bar cdn.sysprobs.com/wp-content/uploads/2011/05/… – darvark Mar 28 '17 at 12:19
  • Yep I know how to add optical drives but all that mentions are ISOs and other files not physical CDs. All I get when I open the add optical drives option is imgur.com/bEaWftK.png – BH2017 Mar 28 '17 at 12:26
4

The is no option with the GUI to do it but on the command line, you can create a pseudo disk image (vmdk) that refers to a physical disk.

If you attach that disk to your VM, you should be able to directly access it, e.g.:

VBoxManage internalcommands createrawvmdk -filename /home/user/vbdisks/cd.vmdk
      -rawdisk /dev/sdc

VBoxManage storageattach VMname --storagectl "IDE Controller"
      --port 0 --device 1 --type dvd --medium /home/user/vbdisks/cd.vmdk

See https://www.virtualbox.org/manual/ch09.html#rawdisk

Beware not accessing any r/w disk with more than one OS, but with a read-only media like a CD or DVD, there should be no issue.

As SessionR answered, there is a much simpler alternative option for CD/DVD, just check the live CD/DVD checkbox and the physical drive will be accessible:

enter image description here

  • Does that work for CD drives too? The link you posted gives explanations only for hard disks. – lgeorget Mar 28 '17 at 12:14
  • 1
    There is no reason for this not to work with a CD, just use the device pointing to your CD. – jlliagre Mar 28 '17 at 12:16
  • Passthrough mode is simpler though (live CD/DVD checkbox) – jlliagre Mar 28 '17 at 12:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.