Skip to content

Instantly share code, notes, and snippets.

@sherbang
Created March 31, 2015 21:56
Show Gist options
  • Save sherbang/93c8a38a99919e122f51 to your computer and use it in GitHub Desktop.
Save sherbang/93c8a38a99919e122f51 to your computer and use it in GitHub Desktop.
VyOS on Xen example config
# This can be defined as just 'pygrub' in newer versions of Xen
bootloader = '/usr/lib/xen-4.1/bin/pygrub'
memory = 512
name = 'vyos'
vcpus = 1
# Xen console doesn't display anything after pygrub, but VNC console does
# VNC virtual display
vfb = [ 'type=vnc' ]
serial="pty"
# Disk device(s).
root = '/dev/sda ro'
# /dev/vg0/vyos is a whole disk image with partitions.
disk = [
'phy:/dev/vg0/vyos,sda,w'
]
# Networking
#xenbr0 is shared with host for LAN
#xenbr1 is for domU only for WAN.
# Set your own MAC addresess
vif = [ 'bridge=xenbr0, mac=0:0:0:0:0:0', 'bridge=xenbr1, mac=0:0:0:0:0:0']
# Behavior
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment