5.1.4 Adding Virtual CD Readers (Command
Line Method)
1
Make sure that the virtual machine is running and the operating system has nished
booting.
2
Insert the CD into the physical CD reader or copy the ISO image to the host.
3
In a terminal on the host, enter the appropriate command
• To set up an ISO image le, enter:
xm block-attach vm_id file:/mycd.iso hdc:cdrom r
where vm_id is the virtual machine ID, mycd.iso is the path to the ISO image
le, and hdc is the drive designation presented to the virtual machine.
If the virtual machine is paravirtual, replace the device designation with a vdb
x device designation, such as
xm block-attach vm_id file:/mycd.iso xvdb:cdrom r
• To set up a physical CD reader, enter:
xm block-attach vm_id phy:/dev/cdrom hdc:cdrom r
where vm_id is the virtual machine ID, dev/cdrom is the path to the physical
CD reader, hdc is the physical drive designation to be presented to the virtual
machine, and cdrom is the name you specify for the device.
If the virtual machine is paravirtual, replace the hdc drive designation with a vdb
x drive designation, such as
xm block-attach vm_id phy:/dev/cdrom xvdb:cdrom r
4
If running full virtualization mode, rebooting the virtual machine is obligatory.
Virtualization: Conguration Options and Settings 37
Komentáře k této Příručce