This article describes how to add more than one CD/DVD drive to a Virtual Machine (VM).
To add more than one CD/DVD drive to a VM, complete the following procedure:
Run the following command to find the UUID of the VM for which you need to add a new virtual CD-ROM drive.
xe vm-list name-label=<name of the virtual machine>
Check the availability of user device numbers for your VM.
Note: VMs running on XenServer support up to eight virtual disk devices. The device number ranges from 0 to 7. Run the following command and check the “userdevice” values:
xe vm-disk-list uuid=<uuid of VM>
Run the following command and find a free VBD number:
xe vm-param-list uuid=<VM UUID> | grep allowed-VBD-devices
Run the following command to add a new CD-ROM drive:
xe vm-cd-add uuid=<VM UUID> device=<unused/free user device number from point 3>
For newer version :
xe vm-cd-add vm=<VM UUID> device=<unused/free user device number from point 3> cd-name=<Name of the iso>
Open XenCenter and check if the new CD drive is available.
Insert ISO into DVD drive of VM.
To remove the device if necessary, run the following command:
xe vm-cd-remove uuid=… cd-name=<ISO Name mounted in device to remove>
For example, xe vm-cd-remove uuid=… cd-name=xs-tools.iso.
Note: You might be prompted to insert the cd-name parameter. cd-name is the exact name of an ISO in one of the ISO repositories.