Skip to content

Instantly share code, notes, and snippets.

@faizal2007
Last active October 24, 2023 03:32
Show Gist options
  • Save faizal2007/66313ea2ac689706cd4b064cc791d180 to your computer and use it in GitHub Desktop.
Save faizal2007/66313ea2ac689706cd4b064cc791d180 to your computer and use it in GitHub Desktop.
Xen cfg file for creating centos using iso
# Sample centos xen config file
vcpus = '2'
memory = '2046'
#
# Disk device(s).
#
# Comment 'file:/home/freakie/CentOS-7-x86_64-Minimal-1611.iso,hdc:cdrom,r' after installation complete
disk = [
'phy:/dev/Server/centos-disk,xvda,w',
# 'file:/mnt/images/CentOS-Stream-8-x86_64-latest-boot.iso,hdc:cdrom,r'
]
#
# Physical volumes
#
boot='dc'
#
# Hostname
#
name = 'centos'
#
# Networking
#
vif = [ 'ip=192.168.1.25 ,mac=02:90:CD:5F:30:6C,bridge=xenbr0' ]
#
# Behaviour
#
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
firmware_override = "/usr/lib/xen-4.11/boot/hvmloader"
builder = 'hvm'
vfb = [ "type=vnc, vncpasswd='', vnclisten=0.0.0.0" ]
usbdevice = 'tablet'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment