Date: Tue, 30 Nov 2021 13:41:05 -0800 From: Bakul Shah <bakul@iitbombay.org> To: sysadmin.lists@mailfence.com Cc: =?utf-8?Q?Corvin_K=C3=B6hne?= <C.Koehne@beckhoff.com>, Mario Marietto <marietto2008@gmail.com>, Freebsd Virtualization <freebsd-virtualization@freebsd.org> Subject: Re: Bhyve CD-ROM Message-ID: <1BF2D752-2F3F-497B-8932-3A0BFAF1BD9B@iitbombay.org> In-Reply-To: <951253309.258922.1638305495927@ichabod.co-bxl> References: <1786593170.587714.1638135091567@ichabod.co-bxl> <CA%2B1FSiiarPVt55iZXQZ8-cidvp_iHBkomQFsg8gORVYrq2=xJQ@mail.gmail.com> <711266519.635448.1638165807735@ichabod.co-bxl> <3e5cfc26e781421ba0244d5c78c3a4d4@beckhoff.com> <878258613.80307.1638218553852@ichabod.co-bxl> <CA%2B1FSii6yL0HbpyMLNq3q4PybnJS0s6uaDO8f6jh25tAHP8=NQ@mail.gmail.com> <724392928.94209.1638225100654@ichabod.co-bxl> <1b7acfc7b88a46bfbbb9f4b6444f3c2d@beckhoff.com> <951253309.258922.1638305495927@ichabod.co-bxl>
next in thread | previous in thread | raw e-mail | index | archive | help
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
>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1BF2D752-2F3F-497B-8932-3A0BFAF1BD9B>
