Skip to content
FreeCORE

From 15.1, FreeCORE requires UEFI. Existing GRUB and UEFI-CSM VMs cannot run or be edited there; review VM Firmware before upgrading. The shared wizard below is illustrated with the FreeCORE 15.2 interface.

Note

FreeCORE 15.0 maintains jails, plugins, and bhyve virtual machines. From 15.1, FreeCORE adds Applications and Bastille and retires the plugin store. See Plugins, Jails and Applications and VM Firmware for compatibility guidance.

A Virtual Machine (VM) is an environment on a host computer that can be used as if it were a separate physical computer. VMs can be used to run multiple operating systems simultaneously on a single computer. Operating systems running inside a VM see emulated virtual hardware rather than the actual hardware of the host computer. This provides more isolation than Jails, but a VM consumes more system resources.

What system resources do VMs require?

A portion of system RAM and a new zvol is assigned to each VM. While a VM is running, these resources are not available to the host computer or other VMs.

FreeCORE VMs use the bhyve virtual machine software. This type of virtualization requires an Intel processor with Extended Page Tables (EPT) or an AMD processor with Rapid Virtualization Indexing (RVI) or Nested Page Tables (NPT). VMs cannot be created unless the host system supports these features.

To verify that an Intel processor has the required features, open the Shell and run grep VT-x /var/run/dmesg.boot. If the EPT and UG features are shown, this processor can be used with bhyve.

To verify that an AMD processor has the required features, open the Shell and run grep POPCNT /var/run/dmesg.boot. If the output shows the POPCNT feature, this processor can be used with bhyve. Note that AMD K10 “Kuma” processors include POPCNT but do not support NRIS, which is required for use with bhyve. Production of these processors ceased in 2012-2013.

Before creating the virtual machine, you need an installer .iso or image file for the operating system you intend to install and a storage pool available for both the virtual disk and operating system install file.

To create a new VM, go to Virtual Machines and click Add. Configure each category of the VM according to your specifications, starting with the Operating System.

VMAddOperatingSystem
FIG 1 VM Add: OS

For information on the Wizard screens and settings see Virtual Machines

Additional notes:

  • On 15.0, the Grub boot method is not supported by Windows guests. From 15.1, only UEFI is supported.
  • Compare the recommended specifications for your guest operating system with the available host system resources when allocating values in Virtual CPUs, Cores, Threads, and Memory Size.
  • Avoid allocating too much memory to a VM. Activating a VM that has all available memory allocated to it can slow the host system or prevent other VMs from starting.
  • AHCI is the recommended disk type for Windows VMs.
  • From 15.1, NVMe is a third disk mode: it emulates an NVM Express controller, which every current operating system installer has a driver for. A Disk sector size set on the disk under Devices applies to NVMe as it does to the other modes.
  • VirtIO as network interface requires that the chosen guest operating system support VirtIO paravirtualized network drivers.
VirtIO compatibility with Windows 10 21H1

VirtIO drivers are unstable with Windows 10 21H1 during the installation process and can result in VM install failure. Avoid using VirtIO drivers with Windows 10 21H2 Virtual Machines.

After creating the VM, you can add and remove virtual devices by expanding the VM entry in Virtual Machines and clicking the Devices Devices option.

VMDevices
FIG 2 VM Devices

Device notes:

  • The virtual machine attempts to boot from devices according to the the Device Order setting, starting with 1000, then ascending.
  • The CD-ROM device option allows booting a VM from a CD-ROM image like an installation CD. The CD image must be available in the system storage.
  • From 15.1, the Shared Directory (virtio-9p) device mounts a directory of this system inside the guest under a tag you choose. The Source Directory must be an existing directory in a pool under /mnt/. The Mount Tag uses up to 32 letters, digits, underscores, periods or hyphens, begins with a letter or digit, and is unique within the VM. On a FreeBSD guest with p9fs(4), load virtio_p9fs and run mount -t p9fs <tag> /mnt; on Linux, run mount -t 9p -o trans=virtio <tag> /mnt. Select Read-only when the guest must not write to it.
  • NVMe disks and shared directories are available to bhyve guests only, not to emulated (non-amd64) guests.

After creating the VM and configuring any devices for it, manage the VM by expanding its entry in Virtual Machines.

Options for VNC or Serial connections are available after activating the VM. If the VNC connection screen appears garbled, try adjusting the VNC device resolution.

Using the State toggle or clicking Stop Button follows a standard shut down procedure to do a clean shut down the running VM. Clicking Power Off Button immediately halts and deactivates the VM, similar to unplugging a computer.

Note

If the VM you created has no guest OS installed, the VM State toggle and Stop Button button might not function as expected. These buttons try to send an ACPI power-down command to the VM operating system, but since no OS is installed, the commands time out. Use the Power Off button instead.