05.08.2013 Views

[PDF] Parallels Server 5 Bare Metal

[PDF] Parallels Server 5 Bare Metal

[PDF] Parallels Server 5 Bare Metal

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Deleting a Device<br />

Managing Virtual Machines and Containers<br />

You can delete a virtual device that you do not need any more in your virtual machine using the -device-del<br />

option of the pctl set command. The options responsible for removing particular<br />

devices are listed in the following table:<br />

Option Name Description<br />

hdd Deletes the specified hard disk drive from the virtual machine.<br />

Note: SATA disks can be removed from running and<br />

stopped virtual machines while IDE and SCSI disks—from<br />

stopped virtual machines only.<br />

cdrom Deletes the specified CD/DVD-ROM drive from the virtual machine.<br />

net Deletes the specified network adapter from the virtual machine.<br />

fdd Deletes the floppy disk drive from the virtual machine.<br />

serial Deletes the specified serial port from the virtual machine.<br />

parallel Deletes the specified parallel port from the virtual machine.<br />

sound Deletes the sound device from the virtual machine.<br />

usb Deletes the USB controller from the virtual machine.<br />

As a rule deleting a virtual device involves performing two operations:<br />

1 Finding out the name of the device to be deleted.<br />

2 Deleting the device from the virtual machine.<br />

Finding Out the Device Name<br />

To remove a virtual device, you need to specify its name when running the pctl set command. If<br />

you do not know the device name, you can use the pctl list command to learn it. For example,<br />

to obtain the list of virtual devices in the MyVM virtual machine, run this command:<br />

# pctl list --info MyVM<br />

...<br />

Hardware:<br />

cpu 2 VT-x accl=high mode=32<br />

memory 256Mb<br />

video 46Mb<br />

fdd0 (+) real='/dev/fd0' state=disconnected<br />

hdd0 (+) ide:0 image='/var/parallels/MyVM.pvm/harddisk.hdd' 27Mb<br />

hdd1 (+) scsi:0 image='/var/parallels/MyVM.pvm/harddisk1.hdd' 32768Mb<br />

cdrom0 (+) ide:1 real='Default CD/DVD-ROM'<br />

parallel0 (+) real='/dev/lp0'<br />

usb (+)<br />

net0 (+) type=bridged iface='eth1' mac=001C4201CED0<br />

...<br />

101

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!