scripts/make-root/hypervisor.sh

40 lines
724 B
Bash
Raw Permalink Normal View History

#!/bin/sh
# Exit on any errors
set -e
DIR="$(dirname "$0")"
. "$DIR"/func.sh
depcheck
2024-12-23 18:59:44 +00:00
kextparam="console=ttyS0 console=tty1" kflav="lts" size=4G setup
addpkg \
openssh-server \
libvirt \
libvirt-qemu \
libvirt-client \
qemu \
qemu-audio-spice \
qemu-chardev-spice \
qemu-hw-display-qxl \
qemu-hw-display-virtio-vga \
qemu-hw-usb-host \
qemu-hw-usb-redirect \
qemu-img \
qemu-system-x86_64 \
qemu-ui-spice-core \
swtpm
2024-12-23 18:59:44 +00:00
wrapped nnd-s6 depend add default bundle.core bundle.net bundle.libvirt bundle.tty bundle.custom
wrapped nnd-s6 depend add bundle.custom sshd
addtty ttyS0
2024-12-23 18:59:44 +00:00
addsshkey "$DIR"/keys/personal.pub
mkdir -p "$tmpdir"/etc/s6/env/mdevd
echo "2000000" > "$tmpdir"/etc/s6/env/mdevd/KBUFSZ
pack