Skip to content

Instantly share code, notes, and snippets.

@voutilad
Created May 29, 2017 15:16
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save voutilad/a5080909e88e8dcffd1960312b5f9510 to your computer and use it in GitHub Desktop.
Save voutilad/a5080909e88e8dcffd1960312b5f9510 to your computer and use it in GitHub Desktop.
Installing Alpine Linux in OpenBSD's VMM Hypervisor
# 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 https://nl.alpinelinux.org/alpine/v3.6/releases/x86_64/alpine-virt-3.6.0-x86_64.iso -o alpine-virt-3.6.0-x86_64.iso
# Make a new virtual disk image, change the size as needed
vmctl create alpine-virt.img -s 6G
# 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 alpine -d alpine-virt-3.6.0-x86_64.iso -d alpine-virt.img -n local -m 1024M -c
# You shoud get a serial console connection immediately. Hit enter or whatever to boot Alpine.
# Once in Alpine, run:
setup-alpine
@divansantana
Copy link

Looks like recent patch in 7.2 fixed this. Thank you!

@divansantana
Copy link

Looks like recent patch in 7.2 fixed this. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment