Whats wrong with Bhyve ??

Started by chunky, April 23, 2018, 01:13:49 AM

Previous topic - Next topic
Hi there

I'm trying to run a linux distro (debian 9.4.0 amd64) under bhyve but I'm facing very serious issues with keyboard. Many keys appear to be shifted or non existant, for example, I can't use certain numerical key, the dot (.) etc. Moreover, hitting specifics key return a completly different one, that's a killer feature but not a very safe nor usable one...
It seem's also that grub2-bhyve is not installed, nor available as a pkg ?

For now, I run this command to launch bhyve :

bhyve -c 1 -m 1024M -H -A -w \
  -s 0:0,hostbridge \
  -s 4:0,virtio-blk,./ubuntu-server.img \
  -s 5:0,virtio-net,tap10 \
  -s 29,fbuf,tcp=0.0.0.0:5900,w=1280,h=720,wait \
  -s 30,xhci,tablet \
  -s 31,lpc -l com1,stdio \
  -l bootrom,../uefi-firmware/BHYVE_UEFI.fd \
  ubuntu


It appear also that bhyve doesn't retain the boot order after installing an OS, I always get dropped the uefi shell, forcing me to boot from the file grubx64.efi at each boot.

Is bhyve completely broken or I'am missing something ?

For the keyboard issues, I tried the null modem way (-s 31,lpc -l com1,/dev/nmdm0A) but endup with error msgs like
bhyve error: no suitable video mode found. Booting in blind mode

and stuck there

Please help

nobody there ?

I really need to make this work guys, could anyone help me ?


You might try the freebsd-virtualization mailing list on freebsd.org. Even though OPNsense is based on FreeBSD with HardenedBSD additions, the OPNsense Forums is the wrong place to ask about bhyve.

yes I understand, but I asked here because I have bhyve on another machine running a freebsd distro (nas4free) and I don't have theses issues, so I thought it was specific to opnsense. Plus the fact that bhyve is installed by default, I believed that it would work OOTB.
I'll remove opnsense and install pfsense instead, may be I'll have more luck there.

Hi there,

This is the only bhyve related code we ever wrote: https://github.com/opnsense/tools/blob/master/build/boot.sh

We have no GUI integration, no kernel module loaded by default. FreeBSD, NAS4Free and OPNsense are all perfectly fine open source. All it takes is a bit of courageous reading, comparing against your working baseline, finding differences in versions, setups, reading bug reports or source code.

It gets you further than acting less than reasonable as you have just now. But in any case best of luck on your journey.


Cheers,
Franco