Xen 4.0.1 on Debian Squeeze dom0 and domU

From Wiki

Revision as of 00:22, 17 December 2011 by Admin (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Most of the details on this page are from Debians much improved wiki page at http://wiki.debian.org/Xen

Contents

Installation of Xen on Debian Squeeze

aptitude -P install xen-linux-system
//At this point I prematurely rebooted and went
//xm list
//WARNING!  Can't find hypervisor information in sysfs!
//Error: Unable to connect to xend: No such file or directory. Is xend running?
//don't reboot. Follow the below:

mv /etc/grub.d/10_linux /etc/grub.d/21_linux

Additional Tweaks to make dom0 more stable

Limit RAM available to dom0

vi /etc/default/grub
#add the following
# Disable OS prober to prevent virtual machines on logical volumes from appearing in the boot menu.
GRUB_DISABLE_OS_PROBER=true
#limit dom0 to 512MB RAM
GRUB_CMDLINE_XEN="dom0_mem=512M"

update-grub

Disable auto save and restore of domUs on host reboot

Apparently in Debians wiki, they say that saving the state of domU's on powerdown doesn't always work. Hence, disable the xen save and restore.

vi /etc/default/xendomains
XENDOMAINS_RESTORE=false
XENDOMAINS_SAVE=""

Bridge Networking and disabling Memory Ballooning

vi /etc/xen/xend-config.sxp
#(vif-script vif-bridge)
(network-script 'network-bridge antispoof=yes')
#(enable-dom0-ballooning yes)
(enable-dom0-ballooning no)

Reboot dom0 and bring up Xen

reboot
xm list
//outputs:
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0 15630    12     r-----     10.2


http://old-list-archives.xen.org/archives/html/xen-users/2010-04/msg00518.html http://prefetch.net/blog/index.php/2009/04/23/best-io-scheduler-to-use-with-virtualized-linux-hosts/

Personal tools