Problem installing Ubuntu with vm_byhve

Matt Churchyard matt.churchyard at userve.net
Tue Oct 9 13:59:50 UTC 2018


On 08/10/2018 20:28, Xavier Humbert wrote:
> On 08/10/2018 11:28, Matt Churchyard wrote:
>> # vm create -t ubuntu ubuntu-guest
> 
> Oops, forgot to select the template !
> 
> Works much better :-)
> 
> Thanks
> 

>Well it now boots and install, but when I reboot, I drop into grub.
>Managed it with this mantra :
>grub> set root=(hd0,gpt2)
>grub> set prefix=(hd0,gpt2)/boot/grub
>grub>insmod normal
>grub>normal

>How can I fix autoboot ?

Looks like it wants to boot of the second partition but vm-bhyve looks on partition 1 by default.

Try adding the following config -

grub_run_partition="2" 
- or -
grub_run_partition="gpt2" (not sure if just "2" will work or whether it needs the full "gpt2")

>The actual ubuntu.conf
>loader="grub"
>cpu=1
>memory=512M
>network0_type="virtio-net"
>network0_switch="public"
>disk0_type="virtio-blk"
>disk0_name="disk0.img"
>uuid="a68bdef0-cbc6-11e8-a293-d05099c11279"
>network0_mac="58:9c:fc:04:25:7a"

>Thanks

--
Xavier HUMBERT <xavier at xavierhumbert.net> _______________________________________________
freebsd-virtualization at freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe at freebsd.org"


More information about the freebsd-virtualization mailing list