Re: Bhyve CD-ROM
- Reply: Sysadmin Lists via freebsd-virtualization : "Re: Bhyve CD-ROM"
- In reply to: Sysadmin Lists via freebsd-virtualization : "RE: Bhyve CD-ROM"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 30 Nov 2021 21:41:05 UTC
FWIW, I had no trouble installing Debian 5.10.something in a VM.
I am using 13.0-STABLE but this should also work on 13.0-RELEASE.
When booting from a disk, I just remove the cdrom line from bhyve
command line (as shown below).
# cat debian/run
bhyve -c 2 \
-s 0,hostbridge \
-s 5,nvme,debian.img \
-s 8,virtio-9p,sharename=/vm-share/debian \
-s 10,virtio-net,tap6,mac=58:9c:fc:XX:XX:XX \
-s 20,xhci,tablet \
-s 31,lpc \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
-l com1,/dev/nmdm6B \
-m 4G -H \
-s 11,fbuf,tcp=0.0.0.0:5909,wait \
debian
exit
-s 4,ahci-cd,debian.iso \
In the VM:
$ uname -a
Linux debian 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux
The share was mounted with
# mount -t 9p -o trans=virtio,cache=mmap,version=9p2000.L,rw sharename /mnt
# partx /dev/nvme0n1
NR START END SECTORS SIZE NAME UUID
1 2048 391167 389120 190M ESP ...
2 391168 132227071 131835904 62.9G root ...
3 132227072 134215679 1988608 971M swap ...
I did a manually install as I wanted to play with xfs but otherwise
it was just standard install, no other hacks.
> On Nov 30, 2021, at 12:51 PM, Sysadmin Lists via freebsd-virtualization <freebsd-virtualization@freebsd.org> wrote:
>
> It boots fine without the ISO. The commands you listed were part of the installation guide I followed.
> If the expectation is that the device number sets the boot order, any idea why it doesn't work for me?
>
>> ----------------------------------------
>> From: Corvin Köhne <C.Koehne@beckhoff.com>
>> Sent: Tue Nov 30 07:25:50 CET 2021
>> To: Sysadmin Lists <sysadmin.lists@mailfence.com>, Mario Marietto <marietto2008@gmail.com>
>> Cc: Freebsd Virtualization <freebsd-virtualization@freebsd.org>
>> Subject: RE: Bhyve CD-ROM
>>
>>
>> Does your system boot without the ISO file?
>> In order to boot Debian you have to move your bootloader: https://blahg.josefsipek.net/?p=595
>>
>> This is not a Debian bug, but rather bhyve’s EFI support being incomplete. The easiest way around this is to copy the Debian binary into the standard location immediately after installation. In other words:
>>
>> # cd /boot/efi/EFI
>> # mkdir BOOT
>> # cp debian/grubx64.efi BOOT/bootx64.efi
>
>
> --
> Sent with https://mailfence.com
> Secure and private email
>