Addin a Physical Optical Drive to a Windows VM

Bytales

Member
Oct 8, 2018
34
1
6
40
So i managed to succesfully pass directly two NVME SSDs to a windows VM by adding

virtio1: /dev/disk/by-id/nvme-Samsung_SSD_960_EVO_250GB_S3ESNX0J226774E,size=244198584K
virtio2: /dev/disk/by-id/nvme-Samsung_SSD_950_PRO_512GB_S2GMNCAGB36660K,size=500107608K

to the VM.conf file

Trying to add the Physical CdRom by id doesnt work. VM doesnt start.

With the command
ls -l /dev/disk/by-id

i get to see my two DVD drives
ata-HL-DT-ST_BD-RE_BH16NS40_K8MD2LB1545 -> ../../sr0
ata-TSSTcorp_BDDVDW_SN-506BB_R90H6GTCB0024V -> ../../sr1

adding
virtio3 /dev/disk/by-id/ata-HL-DT-ST_BD-RE_BH16NS40_K8MD2LB1545

Listing Storage with
lshw -class disk -class storage
i can see their logial names:

the first CD-ROM has the following text listed
-scsi:0
physical id: 1
logical name: scsi1
capabilities: emulated
*-cdrom
description: DVD-RAM writer
product: BD-RE BH16NS40
vendor: HL-DT-ST
physical id: 0.0.0
bus info: scsi@1:0.0.0
logical name: /dev/cdrom
logical name: /dev/cdrw
logical name: /dev/dvd
logical name: /dev/dvdrw
logical name: /dev/sr0

version: 1.00
capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
configuration: ansiversion=5 status=nodisc

Second CDROM
-scsi:1
physical id: 2
logical name: scsi2
capabilities: emulated
*-cdrom
description: DVD-RAM writer
product: BDDVDW SN-506BB
vendor: TSSTcorp
physical id: 0.0.0
bus info: scsi@2:0.0.0
logical name: /dev/sr1
version: SB00
capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
configuration: ansiversion=5 status=nodisc


Adding the Logical name in the VM doesnt work as well.
virtio3: /dev/sr1
Doesnt also work.

How can i add my DVDroms to the VM ?
Can i add them at all without a media inserted ?

DO i need to passtrough directly their SATA ports ?
 
Trying to add the Physical CdRom by id doesnt work. VM doesnt start.
what is the exact error?

did you try to add them as 'scsi' instead of virtio?
 
The Vm simply doesnt start. I get a red line, stating the VM config file could not be loaded, virtio, i tried it.
 
The Vm simply doesnt start. I get a red line, stating the VM config file could not be loaded, virtio, i tried it.
please post the exact error message from the task log
 
Hy, didnt had time yesterday to give it another go, but i did found today this tutorial here

http://c-nergy.be/blog/?p=1437

It describes steps that must be done in the console, then somehow attaching the Optical drive within the operating System itself.
This is totally different Thing that what i imagined. Anyone knows about this ?

The tutorial followed instruction from a proxmox wiki page that doesnt exist now.

With this method, ProxMox presents through the iSCSI protocol the optical drive to the virtual machine.
What are the Advantages using this method, compared to passing the drive directly to the virtual machine ?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!