summaryrefslogtreecommitdiff
path: root/setup-xen-dom0.in
blob: a4dc965a620ed3299719b1c679402717d012ea7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

# simple script to setup basic xen dom0

# kernel modules
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
done

# install packages
apk add --quiet xen

# setup and start services
for svc in xenstored xenconsoled xenqemu; do
	rc-update -q add $svc default
done

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