Basic VM Management.
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.
Creating a Virtual Machine
Section titled “Creating a Virtual Machine”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.
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.
Adding and Removing Devices
Section titled “Adding and Removing Devices”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.
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), loadvirtio_p9fsand runmount -t p9fs <tag> /mnt; on Linux, runmount -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.
Managing the Virtual Machine
Section titled “Managing the Virtual Machine”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.
- →
- Creating Jails How to create Jails in FreeCORE.
- →
- Plugins, Jails and Applications Describes how to choose a workload engine and prepare existing plugins before moving a system off 15.0.
- →
- Installing and Managing Applications Describes how to install, manage, update and delete applications in FreeCORE 15.1 and later.
- →
- Managing Jails Describes how to manage Jails in FreeCORE.
- →
- Virtual Machines Screen Describes the fields in the Virtual Machines screen in FreeCORE.
- →
- Convert & Import Describes how to convert jails into applications, import Linux workloads and export applications for Linux hosts in FreeCORE 15.1 and later.
- →
- Reverse Proxy for Applications Describes how a reverse proxy such as Traefik discovers applications through the read-only container API in FreeCORE 15.2 and later.
- →
- VM Firmware Describes UEFI-only VM firmware in FreeCORE 15.1 and later and how to prepare older GRUB or UEFI-CSM guests before moving off 15.0.
- →
- Installing Software Describes how to install software using Jails in FreeCORE.
- →
- Plugins Screens Describes how to install and maintain 3rd party applications on FreeCORE.
Previous
Virtual MachinesNext
VM Firmware