reference link :
http://cdn.debian.net/debian/dists/wheezy/main/installer-amd64/current/images/cdrom/xen/debian.cfg
HVM installation with iso image file
<before installation>
▶ make disk image
# dd if=/dev/zero of=/home/guest.img bs=1024k count=4000
※ 4GB in size. If you want a bigger image, just increase the count switch
▶ prepare the file
- get iso image from linux web site - i used debian
▶ cfg file
# =====================================================================
# Example HVM guest configuration
# =====================================================================
#
# This is a fairly minimal example of what is required for an
# HVM guest. For a more complete guide see xl.cfg(5)
# This configures an HVM rather than PV guest
builder = "hvm"
# Guest name
name = "my_guest.hvm"
# 128-bit UUID for the domain as a hexadecimal number.
# Use "uuidgen" to generate one if required.
# The default behavior is to generate a new UUID each time the guest is started.
#uuid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
# Enable Microsoft Hyper-V compatibile paravirtualisation /
# enlightenment interfaces. Turning this on can improve Windows guest
# performance and is therefore recommended
#viridian = 1
# Initial memory allocation (MB)
memory = 2000
# Maximum memory (MB)
# If this is greater than `memory' then the slack will start ballooned
# (this assumes guest kernel support for ballooning)
#maxmem = 512
# Number of VCPUS
vcpus = 8
# Network devices
# A list of 'vifspec' entries as described in
# docs/misc/xl-network-configuration.markdown
vif = [ 'type=ioemu, bridge=virbr0' ]
# Disk Devices
# A list of `diskspec' entries as described in
# docs/misc/xl-disk-configuration.txt
disk = [ 'file:/home/user/xenhvm/guest.img,xvda,rw', 'file:/home/user/debian-live-7.5.0.iso, xvdd:cdrom, r']
# Guest VGA console configuration, either SDL or VNC
#sdl = 1
vnc=1
vfb=["type=vnc, vncunused=1, vnclisten=0.0.0.0"]
on_poweroff = 'destroy'
on_reboot = 'destroy'
on_crash = 'destroy'
# xl create configfile
# xl vncviewer dom-id
<configuration for installed image>
# =====================================================================
# Example HVM guest configuration
# =====================================================================
#
# This is a fairly minimal example of what is required for an
# HVM guest. For a more complete guide see xl.cfg(5)
# This configures an HVM rather than PV guest
builder = "hvm"
# Guest name
name = "parallel_proj.hvm"
# 128-bit UUID for the domain as a hexadecimal number.
# Use "uuidgen" to generate one if required.
# The default behavior is to generate a new UUID each time the guest is started.
#uuid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
# Enable Microsoft Hyper-V compatibile paravirtualisation /
# enlightenment interfaces. Turning this on can improve Windows guest
# performance and is therefore recommended
#viridian = 1
# Initial memory allocation (MB)
memory = 2000
# Maximum memory (MB)
# If this is greater than `memory' then the slack will start ballooned
# (this assumes guest kernel support for ballooning)
#maxmem = 512
# Number of VCPUS
vcpus = 8
# Network devices
# A list of 'vifspec' entries as described in
# docs/misc/xl-network-configuration.markdown
vif = [ 'type=ioemu, bridge=virbr0' ]
# Disk Devices
# A list of `diskspec' entries as described in
# docs/misc/xl-disk-configuration.txt
bootloader="pygrub"
disk = [ 'file:/home/user/xenhvm/guest.img,xvda,rw']
# Guest VGA console configuration, either SDL or VNC
#sdl = 1
vnc=1
vfb=["type=vnc, vncunused=1, vnclisten=0.0.0.0"]
on_poweroff = 'destroy'
on_reboot = 'destroy'
on_crash = 'destroy'
'Computers > Xen' 카테고리의 다른 글
Xen 스케줄러 변경하기 - how to change Xen scheduler on Xen command line (0) | 2015.01.18 |
---|---|
RT-Xen 정리중 (0) | 2015.01.18 |
Pv domU GUI setting @ debian wheezy (0) | 2014.07.31 |
Paravirtualized VM on Xen 4.4.0 with Debian wheezy (0) | 2014.06.04 |
Xen 4.4 installation on Debian wheezy (0) | 2014.05.22 |