5.1.4 Adding Virtual CD Readers (Command
Line Method)
1
Make sure that the virtual machine is running and the operating system has fin-
ished 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 file, 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 file, 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.
The CD or ISO image file should appear in the virtual machine’s operating system.
Virtualization: Configuration Options and Settings
37
Summary of Contents for SUSE Linux Enterprise Server
Page 1: ...SUSE Linux Enterprise Server www novell com 10 SP2 July 15 2008 Virtualization with Xen...
Page 12: ......
Page 32: ......
Page 66: ......