Skip to content

Instantly share code, notes, and snippets.

@rubenerd
Created November 27, 2014 23:36
Show Gist options
  • Save rubenerd/4836f6fbe6dab78f2d63 to your computer and use it in GitHub Desktop.
Save rubenerd/4836f6fbe6dab78f2d63 to your computer and use it in GitHub Desktop.
Bootstrap Ubuntu Xen 4.4 Dom0
#!/bin/sh
## Bootstrap simple Xen Dom0 with:
## - Bridged networking, LAN DHCP
## - SSH tunneled VNC access for DomUs
## - Using Ubuntu instead of Debian for Xen 4.4
## Elevate and update
sudo -s
apt-get update
apt-get dist-upgrade
## Install hypervisor stuff
apt-get install qemu-system-x86
apt-get install tightvncserver
apt-get install xtightvncserver
apt-get install xen-hypervisor-4.4-amd64
## Configure networking
cat > /etc/network/interfaces <<BIRDISWORD
## Loopback network interface
auto lo
iface lo inet loopback
## Xen bridge interface
auto xenbr0
iface xenbr0 inet dhcp
bridge_ports eth0
## Primary network interface
auto eth0
iface eth0 inet dhcp
## EOF
BIRDISWORD
## Ubuntu Xen package configured to configure GRUB boot priority. Debian
## will need manual boot order update for Xen.
shutdown -r now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment