Xen - xen-tools

xen-tools (scripts)

用來建立及管理 Xen guest domains

apt-get install xen-tools

設定檔:

/etc/xen-tools/xen-tools.conf

# New instances will be stored in subdirectories named after their
# hostnames.

dir = /home/xen

#  Disk and Sizing options.
size   = 4Gb
memory = 128Mb
swap   = 128Mb
fs     = ext3     
dist   = `xt-guess-suite-and-mirror --suite` # Default distribution to install.
image  = sparse   # Specify sparse vs. full disk images.

# interactively setup a new root password for images.

passwd = 1

install-method = debootstrap
cache = yes
# arch = [i386|amd64]
arch = i386

# install-method = [ debootstrap | rinse | rpmstrap | copy | tar ]

# install-source = /path/to/copy
# install-source = /some/path/img.tar
# install-method = copy:
# copy-cmd = /bin/cp -a $src/* $dest
#
# install-method = debootstrap:
# debootstrap-cmd = /usr/sbin/debootstrap
#
# install-method = tar:
# tar-cmd  = /bin/tar --numeric-owner -xvf $src

# Uncomment this if you wish the images to use DHCP
#
# dhcp = 1

# Deafault Dom0's /etc/resolv.conf 會 copy 入 Guest
 nameserver = 8.8.8.8

 
 bridge = xendmz

 
 
ext3_options     = noatime,nodiratime,errors=remount-ro
btrfs_options    = defaults
 
 
 
 

# created images to boot once they've been created.
# boot = 1

# disk_device = xvda #default
# disk_device = sda

# output    = /etc/xen
# extension = .cfg

# nohosts - don't touch the dom0's /etc/hosts file
# copyhosts - copy the dom0's /etc/hosts to the guest

 
#
# Default kernel and ramdisk to use for the virtual servers
#
kernel = /boot/vmlinuz-`uname -r`
initrd = /boot/initrd.img-`uname -r`

Creative Commons license icon Creative Commons license icon