XEN guest // Slackware Installer

Warning: bootstrapping is much more preferred!

Preparing the vdisk,

mkdir -p /data/guests/slackfull/
cd /data/guests/slackfull/

dd if=/dev/zero of=slackfull.disk bs=1024k count=0 seek=10240

Grabbing the installer initrd,

cd /data/kernels/
mkdir slackware64.142
cd slackware64.142
wget https://mirror.yandex.ru/slackware/slackware64-14.2/isolinux/initrd.img

Setting up the guest,

cat > slackfull <<-EOF
kernel = "/vmlinuz"
#kernel = "/data/guests/vmlinuz.4.4.14.domu"
#root = "/dev/xvda1 ro console=hvc0 init=/bin/bash"
#root = "/dev/xvda1 ro console=hvc0"
#extra = "load_ramdisk=1 prompt_ramdisk=0 rw"
ramdisk = "/data/kernels/slackware64.142/initrd.img"
name = "slackfull"
memory = "256"
vcpus = "1"
disk = ['tap:tapdisk:aio:/data/guests/slackfull/slackfull.disk,xvda,w']
vif = [ 'bridge=xenbr0, vifname=slackfull.0' ]

And if you have no choice but to run it as HVM, add/remove,

type = "hvm"
boot = "cd"
sdl = 1
disk = ...
vif = [ 'type=ioemu,model=e1000,bridge=xenbr0, vifname=slackfull.0' ]


Launching the guest and installer,

xl create slackfull -c

dhcpcd eth0
ping x.x.x.x

cfdisk /dev/xvda

Note. also see the section about setting up the xen serial console above, you might want to do that against /mnt/ on a secondary console during the installation.

Nethence | Pub | Lab | Pbraun | SNE Russia | xhtml