Hi,
I wanted to give FreeBSD a shot, but also to have Debian 13.0.0 as a virtual machine using
I am well aware, that I am not the first having this problem, as some other posts in this forum clearly indicate.
After trying the following suggested solution to configure GRUB to find the correct kernel image and load it, I am stuck at grub unable to find any usable filesystem.
Trying to read any filesystem always results in "unknown filesystem", such that
My current config includes
System: FreeBSD: 14 (latest stable)
Guest OS: Debian 13.0.0
packages installed:
The configuration i am using for the Debian VM is as follows:
I have a strong suspicion, that something is off with the disk. Booting again with the installer iso and executing a shell, I can clearly see the boot directory. While i have not tried to modify the boot environment from the rescue shell itself, I wonder if there is straight way to install Debian/Linux and make booting it via Grub or better UEFI.
UEFI
Put here just for reference, in case UEFI is recommended for installation.
Setting the configuration to use `loader="uefi"` results in displaying the selection screen of the installer ( "install" "graphical install" ...), but after that the screen blanks.
I am working in text mode only and i am not using any x11 or other graphical environment.
Resources
Following resources were of no help either, unfortunately:
- https://github.com/churchers/vm-bhyve/blob/master/sample-templates/config.sample
- https://docs.freebsd.org/en/books/handbook/virtualization/#virtualization-host-bhyve
- https://github.com/churchers/vm-bhyve/wiki/Configuring-Grub-Guests
- https://blahg.josefsipek.net/?p=595
- https://forums.freebsd.org/threads/how-to-boot-debian-in-efi-mode-using-bhyve.81520/
- https://npulse.net/en/blog/125-bhyve-uefi-drops-into-efi-shell-linux-wont-boot-easy-workaround
- https://github.com/churchers/vm-bhyve
- https://www.duskopijetlovic.com/freebsd/bhyve/virtualization/2022/02/06/freebsd-vm-bhyve.html
- https://www.cyberciti.biz/faq/how-to-install-linux-vm-on-freebsd-using-bhyve-and-zfs/
- https://www.davidschlachter.com/misc/freebsd-bhyve-uefi-shell
- https://gist.github.com/ianthetechie/4e1e0b4cb48981629e5ad0e2cdd4e5ec
- https://i-bsd.com/freebsd-vm-bhyve-linux/
I wanted to give FreeBSD a shot, but also to have Debian 13.0.0 as a virtual machine using
bhyve
, especially the wrapper support scripts vm-bhyve
to simplify the setup. Following the steps of the tutorial of `vm-bhyve` (and the other resources linked below), I ended up with a Grub based installation of Debian. The installation completes, but drops to the grub shell indicating that the linux kernel image cannot be found.I am well aware, that I am not the first having this problem, as some other posts in this forum clearly indicate.
After trying the following suggested solution to configure GRUB to find the correct kernel image and load it, I am stuck at grub unable to find any usable filesystem.
Code:
(hd0) (hd0,msdos5) (hd0,msdos1) (host)
Trying to read any filesystem always results in "unknown filesystem", such that
set root=/...
is not possible.My current config includes
System: FreeBSD: 14 (latest stable)
Guest OS: Debian 13.0.0
packages installed:
bhyve
, vm-bhyve
, grub2-bhyve
, bhyve-firmware
The configuration i am using for the Debian VM is as follows:
Code:
cpu=4
memory=8G
network0_type="virtio-blk"
network0_switch="public"
disk0_type="virtio-blk"
disk0_name="disk0.img"
# I assume this refers to (hd0,1)
grub_run_partition="1"
grub_run_dir="/boot/grub"
# I think thats not necessary in textmode
# as bhyve would default to that
graphics="no"
uuid="..."
network0_mac="..."
I have a strong suspicion, that something is off with the disk. Booting again with the installer iso and executing a shell, I can clearly see the boot directory. While i have not tried to modify the boot environment from the rescue shell itself, I wonder if there is straight way to install Debian/Linux and make booting it via Grub or better UEFI.
UEFI
Put here just for reference, in case UEFI is recommended for installation.
Setting the configuration to use `loader="uefi"` results in displaying the selection screen of the installer ( "install" "graphical install" ...), but after that the screen blanks.
I am working in text mode only and i am not using any x11 or other graphical environment.
Resources
Following resources were of no help either, unfortunately:
- https://github.com/churchers/vm-bhyve/blob/master/sample-templates/config.sample
- https://docs.freebsd.org/en/books/handbook/virtualization/#virtualization-host-bhyve
- https://github.com/churchers/vm-bhyve/wiki/Configuring-Grub-Guests
- https://blahg.josefsipek.net/?p=595
- https://forums.freebsd.org/threads/how-to-boot-debian-in-efi-mode-using-bhyve.81520/
- https://npulse.net/en/blog/125-bhyve-uefi-drops-into-efi-shell-linux-wont-boot-easy-workaround
- https://github.com/churchers/vm-bhyve
- https://www.duskopijetlovic.com/freebsd/bhyve/virtualization/2022/02/06/freebsd-vm-bhyve.html
- https://www.cyberciti.biz/faq/how-to-install-linux-vm-on-freebsd-using-bhyve-and-zfs/
- https://www.davidschlachter.com/misc/freebsd-bhyve-uefi-shell
- https://gist.github.com/ianthetechie/4e1e0b4cb48981629e5ad0e2cdd4e5ec
- https://i-bsd.com/freebsd-vm-bhyve-linux/