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

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

dom0's ballooned

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


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

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


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)