Site Tools


Hotfix release available: 2025-05-14b "Librarian". upgrade now! [56.2] (what's this?)
Hotfix release available: 2025-05-14a "Librarian". upgrade now! [56.1] (what's this?)
New release available: 2025-05-14 "Librarian". upgrade now! [56] (what's this?)
Hotfix release available: 2024-02-06b "Kaos". upgrade now! [55.2] (what's this?)
Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04b "Jack Jackrum". upgrade now! [54.2] (what's this?)
Hotfix release available: 2023-04-04a "Jack Jackrum". upgrade now! [54.1] (what's this?)
New release available: 2023-04-04 "Jack Jackrum". upgrade now! [54] (what's this?)
Hotfix release available: 2022-07-31b "Igor". upgrade now! [53.1] (what's this?)
Hotfix release available: 2022-07-31a "Igor". upgrade now! [53] (what's this?)
New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)
New release candidate 2 available: rc2022-06-26 "Igor". upgrade now! [52.1] (what's this?)
New release candidate available: 2022-06-26 "Igor". upgrade now! [52] (what's this?)
Hotfix release available: 2020-07-29a "Hogfather". upgrade now! [51.4] (what's this?)
New release available: 2020-07-29 "Hogfather". upgrade now! [51.3] (what's this?)
New release candidate 3 available: 2020-06-09 "Hogfather". upgrade now! [51.2] (what's this?)
New release candidate 2 available: 2020-06-01 "Hogfather". upgrade now! [51.1] (what's this?)
New release candidate available: 2020-06-01 "Hogfather". upgrade now! [51] (what's this?)
Hotfix release available: 2018-04-22c "Greebo". upgrade now! [50.3] (what's this?)
Hotfix release available: 2018-04-22b "Greebo". upgrade now! [50.2] (what's this?)
Hotfix release available: 2018-04-22a "Greebo". upgrade now! [50.1] (what's this?)
New release available: 2018-04-22 "Greebo". upgrade now! [50] (what's this?)
Hotfix release available: 2017-02-19g "Frusterick Manners". upgrade now! [49.7] (what's this?)
Hotfix release available: 2017-02-19f "Frusterick Manners". upgrade now! [49.6] (what's this?)
installing_xen_on_a_debian_wheezy_host

This is an old revision of the document!


Installing Xen on a Debian Wheezy Host

All information in the guide was taken from the following link: XenProject PV Guest tutorial

Enable Virtualization Support in BIOS

The virtualization option appears differently in different BIOS builds but generally it is referred to as “Enable Virtualisation Technology” or “Enable Intel VT” for Intel chipsets, however in some cases it can be listed as “Vanderpool Technology”. Oftentimes this option can be found under the “Advanced Chipset Features” menu in the BIOS. Similar also for AMD.

Install Debian

Download the netinst image from the following link: http://cdimage.debian.org/debian-cd/current/amd64/iso-cd/

Partition the disk as follows:

   sda1 - /boot 250MB
   sda2 - / 15GB
   sda3 - swap
   sda4 - reserved for LVM

Be sure to install sudo, vim, and tcpdump. Add the user to sudo group.

   apt-get install sudo, vim, tcpdump
   usermod -a -G sudo <user>

Configure LVM for Guest Storage

   apt-get install lvm2
   pvcreate /dev/sda4
   vgcreate vg0 /dev/sda4

Set up Linux bridge for guest networking

   apt-get install bridge-utils

Edit /etc/network/interfaces to look as follows IOT create a bridge:

    auto lo
    iface lo inet loopback

    auto eth0
    iface eth0 inet manual
    
    auto xenbr0
    iface xenbr0 inet dhcp
        bridge_ports eth0

This is the same as doing:

   brctl addbr xenbr0
   brctl addif xenbr0 eth0
   dhclient xenbr0

Install the Xen Hypervisor

Install the hypervisor and xen-tools (xm).
Once Complete, configure grub to boot the hypervisor before the debian OS.

   apt-get install xen-linux-system xen-tools
   dpkg-divert --divert /etc/grub.d/08_linux_xen --rename /etc/grub.d/20_linux_xen
   update-grub

Create and Manage Guests

Update the xen config file /etc/xen-tools/xen-tools.conf prior to creating vm's on the cmd line. Also, be sure to uncomment line 146: # (network-script network-bridge) of /etc/xen/xend-confix.sxp.

After updating xen-tools.conf with the config posted below, create and connect to a new guest using xen-create-image.

  xen-create-image --hostname=tutorial-pv-guest \
  --vcpus=2 \
  --pygrub \

  xm create -c /etc/xen/tutorial-pv-guest.cfg
  #xm create /etc/xen/tutorial-pv-guest.cfg && xm console tutorial-pv-guest
  xm shutdown tutorial-pv-guest
xen-tools.conf
test
installing_xen_on_a_debian_wheezy_host.1420233936.txt.gz · Last modified: 2017/03/05 13:15 (external edit)