bhyve bhyve graphics install and vncviewer?

I don't get it. Setting up linux or windows with vm install xxx yyy.iso ("graphics=yes" and graphics_wait="yes" etc.), I should be able to connect via vncviewer 0.0.0.0:5900?
I never get a connection. When will the port be created, when do I have to connect etc.?
How and when can the X11 server in the guest be started (automatically)?
What is supposed to be shown in vm info?
 
In my experience, not every vncviewer works with bhyve. The one from tigervnc does.

Apart from that, your problem description isn't precise enough. How exactly does your vm configuration look like? Does vm list actually show it running, and with a VNC socket? Do you get any error messages? etc....
 
I have

graphics="yes"
graphics_port="5900"
graphics_res="1600x900"
graphics_wait="yes"
xhci_mouse="yes"

in the config.
But there is no "vnc" in the "vm info" and no port in "vm list" (running, but no port)
The vm-bhyve.log shows no fbuf in the bhyve command.
 
Someone could have pointed that out quite quickly if you had shared the whole config ....

But then: Why do you want these graphics? They're normally only meant as a "workaround" if you have a guest OS that only offers a console on the local screen (VGA ....).

If your goal is to run GUI (X11) applications in this vm, just use your local X server, e.g. simply by using X11-forwarding with SSH.
 
I have a quick howto that works for Windows. https://srobb.net/vm-bhyve.html
But yeah there are various limitations that don't seem to be mentioned in the usual places--I've only used it with vm-bhyve so I'm no expert. For example, RedHat and clones usually need 2048 megs of memory. That grub/uefi thing and graphics was something I found out when it wasn't working and I couldn't figure out why. The vm-bhyve wiki has some examples of working configs though they don't say if it just works, or works with graphics in most cases.
The wiki's main page is https://github.com/churchers/vm-bhyve/wiki and the examples are at https://github.com/churchers/vm-bhyve/wiki/Supported-Guest-Examples
 
I just wanted to have a quick look at "pop-os" (a linux which only allows graphical install).
2nd reason is a Windows guest.
I already have a linux vm with no problems using ssh.
So far I didn't come across any hint that graphics only works with uefi.
It also means it is impossible to run Windows 7 32bit.
 
It also means it is impossible to run Windows 7 32bit.
No. Why do you think so? If it doesn't have boot-code for uefi (I didn't check), you can always use "uefi-csm" for "classic" BIOS boot.

BTW, with Windows, you will need this graphics support for setup, because Windows doesn't come with any other way to have a "console". Still, for actually using the VM, it's much better to enable RDP and log in with e.g. net/freerdp.
 
I just did a quick install of pop_os using the centos7 template, and it worked pretty well.
I did change the memory from the default 512M to 2048M
Code:
vm create -t centos7 pop_os
 
laufdi sorry, can't tell you anything about THAT specific output.... I had some (64bit) Windows-7 running in bhyve, but that's quite some time ago (I don't want to run EOL software). All I can say is that I'd be very surprised if 32bit Win7 would NOT run in bhyve, I just see no reason why .... ?‍♂️
 
Firewall enabled on the host? Make sure you actually allow connections to the VNC ports.
 
Thanks, the problem is solved insofar as I need uefi, but I still can't start win7-32bit with uefi-csm ...
 
I have a quick howto that works for Windows. https://srobb.net/vm-bhyve.html
But yeah there are various limitations that don't seem to be mentioned in the usual places--I've only used it with vm-bhyve so I'm no expert. For example, RedHat and clones usually need 2048 megs of memory. That grub/uefi thing and graphics was something I found out when it wasn't working and I couldn't figure out why. The vm-bhyve wiki has some examples of working configs though they don't say if it just works, or works with graphics in most cases.
The wiki's main page is https://github.com/churchers/vm-bhyve/wiki and the examples are at https://github.com/churchers/vm-bhyve/wiki/Supported-Guest-Examples
Scott, I'm having big problems just trying to get a Windows 11 VM to boot. Can you help?


I really need the help. I've truss'd the process. I think I've narrowed it down to a pci passthru on 0:8:0

Thank you!!!
 
The only suggestions I have are:
Is your computer able to run Windows 11? For example, my main workstation can't run it, missing one of the later requirements, maybe TPM. (Toilet Paper Man?).

Second was one I picked up from a vermaden post, or maybe one of his articles. My Windows (10) bhyve config ends with
Code:
hyve_options="-A"

EDIT. The above is incorrect, I mistyped. vermaden fixed it in the post below, but for posterity, the actual line should be, as he writes
Code:
bhyve_options="-A"
I remember when I first installed it, it was fine, but then stopped working, I don't remember the error. But startpaging it (another search engine, supposedly less invasive than google, though it uses google's search) brought me that options -A, again, I think it was from Vermaden. I then found that I also needed it on RedHat VMs.
That's the only thing I've run into, I'm by no means a bhyve expert.
Other things to check--do you have a Windows 10 VM that works? Do you have any other bhyve VMs that work? (The idea is to eliminate everything but the Windows 11 part of it). Any way to try a different Win11 ISO?

Sorry, but it's really not something I know too much about using.
 
Scott, I'm having big problems just trying to get a Windows 11 VM to boot. Can you help?


I really need the help. I've truss'd the process. I think I've narrowed it down to a pci passthru on 0:8:0

Thank you!!!
Here is my working W11 config...

Code:
loader="uefi"
graphics="yes"
xhci_mouse="yes"

cpu=6
cpu_sockets=1
cpu_cores=6
cpu_threads=1

memory=16G

# graphics_res
# This allows you to specify a resolution for the graphical console.
# Pleas note only the below options are supported
# 
# Default: 800x600
# Valid Options: 1920x1200,1920x1080,1600x1200,1600x900,1280x1024,1280x720,1024x768,800x600,640x480
#
graphics_res="1600x900"



# put up to 8 disks on a single ahci controller.
# without this, adding a disk pushes the following network devices onto higher slot numbers,
# which causes windows to see them as a new interface
ahci_device_limit="8"

# ideally this should be changed to virtio-net and drivers installed in the guest
# e1000 works out-of-the-box
network0_type="virtio-net"
network0_switch="public"

disk0_type="nvme"
disk0_name="disk0.raw"

# windows expects the host to expose localtime by default, not UTC
utctime="no"
uuid="xxxxxx..."
network0_mac="XXXXXX..."

I am not passing thru a TPM, so You will have to do the "Lab" registry edits during startup to disable the TPM, checks.

Link to article > Bypass TPM checks

Works fine for me.
 
Back
Top