Page 1 of 1
Attaching CD/DVD Error When Disk is Burnt 'Like a USB Flash Drive'
Posted: 11. Dec 2018, 15:29
by AlexanderW25
Hi all,
I am currently running VirtualBox 8.2.22 and I have a batch file that attaches a CD/DVD to a virtual machine. When the CD/DVD to be attached to the VM is burnt through Windows and 'With A CD/DVD Player' is selected as how the disk will be used I can attach and read the disk fine on the VM. However, when the disk is burnt and 'Like a USB Flash Drive' is selected as how the disk will be used it attaches to the VM but I cannot read the contents and get the error message "The Disk Structure Is Corrupted and Unreadable".
Does anyone know why this is? Both types of disks are readable from the host.
Thanks!
Re: Attaching CD/DVD Error When Disk is Burnt 'Like a USB Flash Drive'
Posted: 11. Dec 2018, 16:38
by socratis
AlexanderW25 wrote:VirtualBox 8.2.22
You're way ahead of your time! Us commoners have only 5.2.22!
(I know it's a typo, just couldn't resist
)
AlexanderW25 wrote:and I have a batch file that attaches a CD/DVD to a virtual machine
Any chance of us seeing the batch file?
AlexanderW25 wrote:is burnt through Windows and 'With A CD/DVD Player' is selected as how the disk will be used
Can you explain that part a little bit better? Where do you select that option?
AlexanderW25 wrote:when the disk is burnt and 'Like a USB Flash Drive' is selected
Same question actually...
AlexanderW25 wrote:Both types of disks are readable from the host.
What kind of images are these? Any chance that you can produce a couple of them, one of each kind? The smaller the better it would be to share and download.
Re: Attaching CD/DVD Error When Disk is Burnt 'Like a USB Flash Drive'
Posted: 11. Dec 2018, 17:45
by Martin
It's probably an UDF (DVD-RW/-RAM) image, not an ISO9660 CD-ROM image.
Re: Attaching CD/DVD Error When Disk is Burnt 'Like a USB Flash Drive'
Posted: 11. Dec 2018, 18:07
by AlexanderW25
This is the line from the batch that attaches the disk to the VM:
Code: Select all
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach <VM-NAME> --storagectl IDE --port 1 --device 0 --type dvddrive --medium host:<UUID of Host DVD Drive>
When we burn a disk using Windows there is the option of how the disk will be used. Screenshot below. When I choose 'With A CD/DVD Player' the disk is readable in the host and VM but when I choose 'Like a USB Flash Drive' the disk is only readable in the host and not readable in the VM.

- How Will The Disk Be Used
- BurnADisk.png (82.37 KiB) Viewed 1515 times
The image type on the disk burnt 'Like a USB Flash Drive' appears to be UDF and uses Live File System while 'With A CD/DVD Player' uses Mastered Disc Format.
Thanks
Re: Attaching CD/DVD Error When Disk is Burnt 'Like a USB Flash Drive'
Posted: 11. Dec 2018, 19:12
by mpack
"Like a USB flash drive" will mean multisession, which I believe is not supported by VirtualBox. You must burn and complete a single ISO 9660 image, though it can use filesystem extensions such as Joliet.
Incidentally, the simulated CD drive in a VirtualBox VM is not a CD burner, your screenshot seems to be showing CD write options.
Re: Attaching CD/DVD Error When Disk is Burnt 'Like a USB Flash Drive'
Posted: 11. Dec 2018, 21:37
by socratis
I'm not sure if you could mount the "Like a USB flash drive" creation of yours as a standard disk, and not as a DVD. Don't have a Win host readily available to test it...
Re: Attaching CD/DVD Error When Disk is Burnt 'Like a USB Flash Drive'
Posted: 12. Dec 2018, 10:39
by mpack
I remember the quoted dialog from XP days, though IMHO nobody in their right mind used Windows built in CD burning feature. You used the likes of ImgBurn instead. Either way I doubt any of it will work in a VirtualBox VM, even in passthrough mode. The multisession option certainly won't work.