Skip to main content

Primary links

  • Home
  • AI
  • Kubernetes
  • Incus
  • Ansible
  • Terraform
  • OpenStack
  • Virtualization
  • Linux
  • SmartHome
  • HowTo

Misc

  • Linux
  • Hardware
  • Programming
  • Databases
  • Multimedia
  • Windows

Cloud

  • OpenStack
  • cloud-config
  • nextcloud

Virtualization

  • Virtualization
  • Incus
  • Docker
  • KVM
  • Kubernetes
  • LXC
  • LXD
  • QEMU
  • VMware
  • VirtualBox
  • multipass
  • podman
  • vagrant
  • XEN

Network

  • DNS
  • Firewall
  • Linux
  • OpenvSwitch
  • SSL
  • VLAN
  • VPN
  • iPXE
  • namespaces
  • nmcli
  • tcpdump

Storage

  • CEPH
  • DRBD
  • LVM
  • S3
  • ZFS
  • btrfs

Automation / CI/CD

  • Install
  • Ansible
  • GitLab
  • LLM
  • Preseed
  • Puppet
  • Terraform
  • Ubuntu autoinstall

Monitoring / Visualisation

  • Grafana
  • Icinga
  • Prometheus
  • Monitoring
  • ELK
  • mermaid

XEN: Install Hypervisor (Dom0) under Debian

Install
[embed_url: "https://raw.githubusercontent.com/panticz/installit/master/install.xen.sh"]

Enable XL toolstacks

sed -i 's|TOOLSTACK=|TOOLSTACK=xl|g' /etc/default/xen

configure perfomance
http://wiki.xen.org/wiki/Credit_Scheduler
xm sched-credit
xm sched-credit -d www -w 512

# OPTIONAL: sync time
apt-get install -y ntpdate

ntpdate ntp.ubuntu.com
hwclock --systohc

rm /etc/cron.daily/ntpdate
# updae bootstrap

http://www.panticz.de/update_debootstrap

# manually update xen-create-image
wget http://ftp.de.debian.org/debian/pool/main/x/xen-tools/xen-tools_4.3.1-1_all.deb -O /tmp/xen-tools_4.3.1-1_all.deb
dpkg -x /tmp/xen-tools_4.3.1-1_all.deb /tmp/
mv /usr/bin/xen-create-image /usr/bin/xen-create-image.org
cp /tmp/usr/bin/xen-create-image /usr/bin/xen-create-image
# OPTIONAL: enable ip forward in dom0
cp /etc/sysctl.conf /etc/sysctl.conf.org
sed -i 's|#net.ipv4.ip_forward=1|net.ipv4.ip_forward=1|g' /etc/sysctl.conf
# OPTIONAL: PCI delegation

http://www.panticz.de/xen_pci_delegation

# reboot

reboot

# Ubuntu Xen Dom0
apt-get install -y xen-hypervisor-4.2-amd64 xen-tools
# LINKS

http://wiki.debian.org/Xen
http://wiki.xensource.com/xenwiki/XenBestPractices
http://www.panticz.de/configure_network_bridge
http://www.panticz.de/update_debootstrap
http://www.chrisk.de/blog/2008/12/how-to-run-xen-in-ubuntu-intrepid-without-compiling-a-kernel-by-yourself/
http://wiki.debian.org/Xen
https://help.ubuntu.com/community/Xen

XEN

Links
http://wiki.univention.de/index.php?title=Installing-signed-GPLPV-drivers - Installing-signed-GPLPV-drivers
http://www.pug.org/index.php/Xen-Installation - Xen installation manual on PUG [German]
http://man.cx/xen-create-image - Manpage for xen-create-image
http://wiki.xensource.com/xenwiki/ - http://wiki.xensource.com/xenwiki/
http://wiki.debian.org/Xen
http://www.neobiker.de/wiki/index.php?title=Debian_XEN_Installation
http://xen-tools.org/software/xen-tools/
http://wiki.xensource.com/xenwiki/XenNetworking
http://www.xen-support.com/
http://packages.ubuntu.com/hardy/linux-image-2.6.24-23-xen - Ubuntu dom0 kernel
http://www.xenserver5.com/videos/Getting_Started_with_XenServer/Getting_Started_with_XenServer.htm - Citrix XenServer HowTo video
http://code.google.com/p/ganeti/ - ???
http://www.virtuatopia.com/index.php/Creating_and_Booting_a_Xen_Guest_domainU_using_an_NFS_Mounted_Root_Filesystem
http://www.xen.org/products/cloudxen.html - Windows driver
http://code.google.com/p/gentoo-xen-kernel/downloads/list - Xen dom0 kernel ebuilds using rebased Opensuse xen-patches
http://bderzhavets.wordpress.com/ - Xen Virtualization on Linux and Solaris Blog
http://code.google.com/p/spice4xen/ - SPICE support for Xen

Check CPU support for full virtualizon

egrep -c 'vmx|svm' /proc/cpuinfo

If the output are bigger then 0 your CPU supports full virtualizon so you can run Windows or other unmodified OS under XEN or KVM.

direct device access

disk=['phy:/dev/sdb2,hda,w','phy:/dev/cdrom,hdc:cdrom,r']

List memory usage by VM

for HOST in $(xm list  | cut -d" " -f1 | grep -v Name | grep -v Domain-0); do
    echo ${HOST}
    ssh ${HOST} LANG=en free -m | head -2
    echo
done

ntpdate

xen
Profiles GitHub StackOverflow LinkedIn Xing
Contact Imprint
© panticz 2026

Cookie-Einstellungen

Diese Website nutzt eingebettete Inhalte von Drittanbietern (z.B. YouTube, SoundCloud). Beim Laden dieser Inhalte werden Daten an die jeweiligen Anbieter übermittelt. Datenverarbeitungserklärung