Download Chapter 3. The Xen Hypervisor

Transcript
# start in full screen (default=0 no)
#full-screen=1
#------------------------USB------------------------------------# USB support
#(devices may be specified through the monitor window)
#usb=1
# normal/relative mouse
#usbdevice='mouse'
# tablet/absolute mouse
#usbdevice='tablet'
#------------------------MISC-----------------------------------# serial port re-direct to pty device,
# allows xm console or minicom to connect
#serial='pty'
# sound card support (sb16, es1370, all; default none)
#soundhw='sb16'
# set real time clock to local time (default=0 UTC)
localtime=1
Listing 7.8. A Sample HVM Guest Configuration File (Populated from a Physical CD-ROM Drive)
[The start of the file is omitted, it is the same as Listing 7.7]
disk = ['phy:/dev/XenGuests/hvm2,hda,w', 'phy:/dev/cdrom,hdc:cdrom,r']
# first device is LVM partition to use as hard disk,
# second device is a physical CD-ROM drive
[The end of the file is omitted, it is the same as Listing 7.7]
Automated Population with virt-install
On Fedora/RHEL systems, HVM guests may be easily populated using the included virt-install utility. virt-install asks
a series of questions and automatically prepares the guest configuration file according to user input. Listing 7.9 explores how
to invoke and use the virt-install utility.
Listing 7.9. Populating an HVM Guest Using virt-install
Code View:
[root@dom0]# virt-install
Would you like a fully virtualized guest (yes or no)? This will allow you to run unmodified operating systems. yes
What is the name of your virtual machine? hvmexample3
How much RAM should be allocated (in megabytes)? 128
What would you like to use as the disk (path)? hvmexample3.img
How large would you like the disk to be (in gigabytes)? 5
Would you like to enable graphics support? (yes or no) yes