-
-
Save wizardishungry/cd0545d19533560f238a6c355aebdbcf to your computer and use it in GitHub Desktop.
Installing Alpine Linux in OpenBSD's VMM Hypervisor and setup k3s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Assuming you're a regular user that has doas allowances for vmctl | |
mkdir -p ~/vmm | |
cd ~/vmm | |
# Grab the the one of the virt iso's of Alpine Linux | |
curl http://dl-cdn.alpinelinux.org/alpine/v3.11/releases/x86_64/alpine-virt-3.11.6-x86_64.iso -o alpine-virt-3.11.6-x86_64.iso | |
# Make a new virtual disk image, change the size as needed. Make one for each node. | |
doas vmctl create -s 2G alpine-virt1.img | |
doas vmctl create -s 2G alpine-virt2.img | |
# Boot Alpine from the ISO. Make sure you have this exact disk order because as of 29 May 2017 | |
# VMM's SeaBIOS will only try to boot from the first one it seems! | |
# Also, this assumes: | |
# - you want 1024M of memory, tune as desired | |
# - you configured a virtual switch called "local" in your /etc/vm.conf | |
# (see: http://www.h-i-r.net/2017/04/openbsd-vmm-hypervisor-part-2.html) | |
doas vmctl start -c -d alpine-virt-3.11.6-x86_64.iso -d alpine-virt1.img -n local -m 1024M alpine1 | |
# You shoud get a serial console connection immediately. Hit enter or whatever to boot Alpine. | |
# Once in Alpine, run: | |
setup-alpine | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For linux guests, add "clocksource=tsc" to the kernel cmdline, but I
suspect it's the default...