Alpine
Install Alpine Linux as a virtual guest in a Xen domU.
Installation
Create a logical volume as disk for installation:
lvm lvcreate --size 32g vg0 --name lv-alpine
Download an installation image:
wget --output-document=/opt/xen/alpine-virt-3.24.1-x86_64.iso https://dl-cdn.alpinelinux.org/alpine/v3.24/releases/x86_64/alpine-virt-3.24.1-x86_64.iso
Make Xen configuration file:
cat > /etc/xen/alphine.cfg << EOF
type = 'hvm'
name = 'alphine'
memory = 8192
vcpus = 2
disk = [ 'format=raw,vdev=xvdb,devtype=cdrom,target=/opt/xen/alpine-virt-3.24.1-x86_64.iso', 'format=raw,vdev=xvda,target=/dev/vg0/lv-alpine' ]
vif = [ 'bridge=xenbr0,mac=00:16:3e:13:ff:42' ]
nographic = 1
serial = [ 'pty' ]
EOF
Create the domU:
xl create -c /etc/xen/alpine.cfg
Install the system:
setup-alpine
Once the installation is complete, stop the domain:
poweroff
Administration
Install package:
apk add tmux
Update package database:
apk update
Tags: