Date: Sun, 8 Dec 2024 10:41:05 -0800 From: Mark Peek <mp@freebsd.org> To: Zaphod Beeblebrox <zbeeble@gmail.com> Cc: Bakul Shah <bakul@iitbombay.org>, freebsd-virtualization@freebsd.org, Chris Moerz <freebsd@ny-central.org> Subject: Re: Struggle with bhyve and Kali. Message-ID: <CAGGgMJeqEbEyv_j6X87q4FaD7rteBsDRTY-=v0Ves4DQPRvPLw@mail.gmail.com> In-Reply-To: <d5ad1efb-2b07-740e-fa5c-fd3477045c1e@ny-central.org> References: <CACpH0McihAPV5Mh2PBuu5Yh7x16q6OA%2BLDvYsUnGSD8KpT65PA@mail.gmail.com> <6B19A54E-78B2-4BDA-94FA-F7558F26DA87@iitbombay.org> <CACpH0MeQDVQ_vmOfpqscz1DKFPocGJQi1g%2BE%2ByhAyWhO0crfdg@mail.gmail.com> <d5ad1efb-2b07-740e-fa5c-fd3477045c1e@ny-central.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Sun, Dec 8, 2024 at 1:51 AM Chris Moerz <freebsd@ny-central.org> wrote: > > > On Sat, 7 Dec 2024, Zaphod Beeblebrox wrote: > > > That doesn't seem to help for kali. I found the binary, and I think it > boots... but it goes from the 1080p > > that I select for it down to some 4x3 resolution that is tiny. Then I > think X is up, but I don't get a > > login or any other response to input other than a mouse cursor. > > > > Really, this should be documented (the uefi boot variables thing). I > suppose I'll keep messing with it --- > > maybe booting with the full resolution and the correct file will work > --- which will likely require me to > > mount the efi partition on the host and mess around. > > I believe this actually is documented - at least in the Handbook: > > https://docs.freebsd.org/en/books/handbook/virtualization/#virtualization-bhyve-uefi > > I remember we added that note in the blue box particularly because of the > behavior you're describing. > > If you have any recommandation or suggestion how to make it clearer, I'm > certainly open to hear it! > > If using vm-bhyve and uefi, make sure these are set in the vm-bhyve config file prior to installing: loader="uefi" uefi_vars="yes" In other words: # vm create kali Now edit kali/kali.conf to add the above and other tweaks to the settings # vm install kali kali-linux-2024.3-installer-amd64.iso Install kali and it reboots. Login and shut it down # vm start kali kali should boot fine now You should now see a kali/uefi-vars.fd file in the virtual machine directory. Mark [-- Attachment #2 --] <div dir="ltr"><div dir="ltr">On Sun, Dec 8, 2024 at 1:51 AM Chris Moerz <<a href="mailto:freebsd@ny-central.org">freebsd@ny-central.org</a>> wrote:</div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br> <br> On Sat, 7 Dec 2024, Zaphod Beeblebrox wrote:<br> <br> > That doesn't seem to help for kali. I found the binary, and I think it boots... but it goes from the 1080p<br> > that I select for it down to some 4x3 resolution that is tiny. Then I think X is up, but I don't get a<br> > login or any other response to input other than a mouse cursor.<br> ><br> > Really, this should be documented (the uefi boot variables thing). I suppose I'll keep messing with it ---<br> > maybe booting with the full resolution and the correct file will work --- which will likely require me to<br> > mount the efi partition on the host and mess around.<br> <br> I believe this actually is documented - at least in the Handbook:<br> <a href="https://docs.freebsd.org/en/books/handbook/virtualization/#virtualization-bhyve-uefi" rel="noreferrer" target="_blank">https://docs.freebsd.org/en/books/handbook/virtualization/#virtualization-bhyve-uefi</a><br> <br> I remember we added that note in the blue box particularly because of the<br> behavior you're describing.<br> <br> If you have any recommandation or suggestion how to make it clearer, I'm<br> certainly open to hear it!<br><br></blockquote><div><br></div><div>If using vm-bhyve and uefi, make sure these are set in the vm-bhyve config file prior to installing:</div><div><font face="monospace">loader="uefi"</font></div><div><font face="monospace">uefi_vars="yes"<br></font></div><div><font face="monospace"><br></font></div><div>In other words:</div><div># vm create kali</div><div>Now edit kali/kali.conf to add the above and other tweaks to the settings</div><div># vm install kali kali-linux-2024.3-installer-amd64.iso</div><div>Install kali and it reboots. Login and shut it down</div><div># vm start kali</div><div>kali should boot fine now</div><div><br></div><div>You should now see a kali/uefi-vars.fd file in the virtual machine directory.</div><div><br></div><div>Mark</div><div><br></div></div></div>help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGGgMJeqEbEyv_j6X87q4FaD7rteBsDRTY-=v0Ves4DQPRvPLw>
