Solved vm-bhyve with alpine

I'm trying to create an alpine bhyve vm. I use the template and it won't boot, can't find the alpine vmlinuz-vanilla. Doing some searching I cam across this thread on the forums https://forums.freebsd.org/threads/guests-never-boot-to-install.83457/ where SirDice suggests looking at working templates from the bhyve wiki at https://github.com/churchers/vm-bhyve/wiki/Supported-Guest-Examples

So, I tried subbing the word 'vanilla' in the template with 'virt' but it still didn't work. Doing some more searching came up with a youtube example where they used 'lts' instead of vanilla. I did that, and it seemed to successfully install. However, when I rebooted, I got an error that I need to load the kernel first. I tried once more, and this time, before it said reboot, I took a look and it doesn't seem to be creating a /boot partition. If anyone has a successful alpine install under bhyve, would they be willing to share the config file?

This isn't an important question, I've just been playing with a few vm-bhyve installs to see how well they go or don't go.
 
Use the UEFI config for install alpine (virt or vanilla). The basic configuration is:


Bash:
loader="uefi"
cpu="4"
memory="2G"
network0_type="virtio-net"
network0_switch="public"
disk0_type="virtio-blk"
disk0_name="disk0.img"
 
Thanks, I may not get to try this till tomorrow, but thanks very much.

EDIT:
As the install only takes a few minutes, I gave it a try and YES. Thanks to your help, it worked perfectly, installed, and uses console and ssh. I'm very grateful. I felt I did a reasonable amount of web searching and couldn't find a solution.
Thanks to you, I'm marking this thread solved.
 
Back
Top