setup-xen-dom0.in 462 Bytes
Newer Older
1 2 3 4 5
#!/bin/sh

# simple script to setup basic xen dom0

# kernel modules
6 7 8 9
for mod in xen_netback xen_blkback xenfs xen_pciback xen_wdt tun; do
	if modprobe $mod; then
		grep -q -w $mod /etc/modules || echo $mod >> /etc/modules
	fi
10 11 12
done

# install packages
13
apk add --quiet xen
14 15

# setup and start services
16
for svc in xenstored xenconsoled xenqemu; do
17 18 19 20 21
	rc-update -q add $svc default
done

rc-service xenstored start
rc-service xenconsoled start
22
rc-service xenqemu start