bhyve how to start ubuntu vm in bhyve auutomatically?

I have setup an ubuntu vm using an ISO but each time I have to boot I have to set mannually in grub:

Code:
grub> linux (hd0,gpt2)/vmlinuz-5.15.0-69-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv
grub> initrd (hd0,gpt2)/initrd.img-5.15.0-69-generic
grub> boot
Is there any configuration option to ensure it is starting automatically when starting the ubuntu vm?
 
I have setup an ubuntu vm using an ISO but each time I have to boot I have to set mannually in grub:

Code:
grub> linux (hd0,gpt2)/vmlinuz-5.15.0-69-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv
grub> initrd (hd0,gpt2)/initrd.img-5.15.0-69-generic
grub> boot
Is there any configuration option to ensure it is starting automatically when starting the ubuntu vm?
find the conf file for this vm and add the following (copy/paste) from the grub.cfg

Example:

grub_run0="linux /vmlinuz-linux root=UUID=10259aff-3b15-4b2f-bbfc-f7a6f0f0509c rw"
grub_run1="initrd /initramfs-linux.img"
 
Back
Top