OPNsense Forum

English Forums => General Discussion => Topic started by: chunky on April 23, 2018, 01:13:49 am

Title: Whats wrong with Bhyve ??
Post by: chunky on April 23, 2018, 01:13:49 am
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 :

Code: [Select]
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
Code: [Select]
bhyve error: no suitable video mode found. Booting in blind mode
and stuck there

Please help
Title: Re: Whats wrong with Bhyve ??
Post by: chunky on April 29, 2018, 03:57:19 pm
nobody there ?

I really need to make this work guys, could anyone help me ?
Title: Re: Whats wrong with Bhyve ??
Post by: mimugmail on April 29, 2018, 05:07:27 pm
Sorry .. this is a OPNsense forum
Title: Re: Whats wrong with Bhyve ??
Post by: lattera on May 01, 2018, 04:09:29 pm
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.
Title: Re: Whats wrong with Bhyve ??
Post by: chunky on May 02, 2018, 09:25:36 pm
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.
Title: Re: Whats wrong with Bhyve ??
Post by: franco on May 03, 2018, 09:10:13 am
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