Xen Host - Installation

 

 


hypervisor, xen aware kernel and xen tools:

    apt-get install xen-linux-system

Xen HVM support on Squeeze the qemu device model package:

    apt-get install xen-qemu-dm-4.0

dpkg-divert --divert /etc/grub.d/08_linux_xen --rename /etc/grub.d/20_linux_xen

Prioritise Booting Xen Over Native

dpkg-divert - override a package's version of a file

--rename

Actually  move  the  file  aside (or back).

--divert <divert-to>

divert-to  is the location where the versions of file

Configure Networking

iface br0 inet static
       bridge_ports none
       address 192.168.1.1
       broadcast 192.168.1.255
       netmask 255.255.255.0
       gateway 192.168.10.1

dom0's ballooned
================

# By default dom0's size is ballooned
# (in order to accomodate new guests which are started. )

       
/etc/default/grub
GRUB_CMDLINE_XEN="dom0_mem=1024M"

/etc/xen/xend-config.sxp to configure the toolstack

(dom0-min-mem 1024)               <--- xm mem-set
(enable-dom0-ballooning no)

 /etc/default/xendomains

XENDOMAINS_RESTORE=false
XENDOMAINS_SAVE=""             <--- dom0 shutdown 時保存 running domains 的位置

By default, when Xen dom0 shuts down or reboots, it tries to save (i.e. hibernate) the state of the domUs.

mount 會見到

fusectl on /sys/fs/fuse/connections type fusectl (rw)
xenfs on /proc/xen type xenfs (rw)

 

 

Creative Commons license icon Creative Commons license icon