Skip to content
Alonso Cárdenas edited this page Oct 29, 2025 · 1 revision

Creating a virtual machine

Requeriments

  • A FreeBSD host
  • A bhyvemgr ready to run
  • A minimal or optimal network configuration used by bhyvemgr. Take a look at network configuration guide

Adding a new virtual machine

There are two ways to add a new virtual machine to bhyvemgr: Click on Add button or right click over a Virtual machines category like BSD, Linux, Windows or Other.

image image

Choose one of them to create your first virtual machine.

image

When all fields are filled, click on Create Virtual Machine button. It will add your new virtual machine accord to options selected and filled. In this case, the virtual machine will use a CD/DVD image like a installation or livecd media.

image

The virtual machine will be created with some Global settings default values, but you can change them before of start it. The same way, the virtual machine will include minimal devices needed to run it. If you want, you can add new ones or modify them.

image

When it is done, you can start the virtual machine click on Start button.

image

By default, vnc support is enabled to connect a vnc client to the virtual machine. Take a look at fbuf device from Device settings.

image

bhyvemgr can use remote-viewer for vnc connection. It works even when fbuf device includes a vnc password session.

image

Also, you can connect from console to the new virtual machine althrought of nmdm device. By default an com1 interface is attached to lpc device.

image
# cu -l /dev/nmdm-freebsd16.1B

Finish the installation and you will have a virtual machine ready to use

image

Notes

If you have issues running a virtual machine, you can obtain useful information from bhyvemgr log file. Bhyvemgr save a log file to ~/.config/bhyvemgr/bhyvemgr.log

Clone this wiki locally