Deploying Edge Microvisor Toolkit on Virtual Machines as Guest OS#
Below you will find all methods of deployment on Virtual Machines (VMs) supported by Edge Microvisor Toolkit.
The methods presented below assume the use of “dev” versions of Edge Microvisor Toolkit,
published as RAW and VHD images. If you want to start virtual machines using
“non-dev” images, built with
edge-image-json
or edge-image-rt.json
, you need to unseal disk encryption key with TPM, or
rebuild them
with the "EMTEncryptionEnabled": false
parameter in the corresponding JSON config file.
Hyper-V#
When using Hyper-V, you can install the ISO to a virtual hard drive that you create. See the steps below:
From Hyper-V select Action-> New-> Virtual Machine.
Provide a name for your VM and press Next.
Select Generation 1 (VHD) or Generation 2 (VHDX), then press Next.
Set the desired amount of memory to allocate, then press Next.
Select a virtual network switch, then press Next.
Select Create a virtual hard disk and one of two options:
Select a location for your VHD(X) and set your desired disk size, then press Next.
Select Install an operating system from a bootable image file and browse to your microvisor ISO.
Press Finish.
[Gen2/VHDX Only] Fix Boot Options
Right click your virtual machine from Hyper-V Manager. Select Settings…
Select Security and disable Secure Boot.
Select Firmware and adjust the boot order so DVD is the first and Hard Drive is second.
Select Apply to apply all changes.
Right click your VM and select Connect…. Select Start.
Follow the installer prompts to install your image.
When installation completes, select Restart to reboot the machine. The installation ISO will be automatically ejected.
When prompted, sign in to your Edge Microvisor Toolkit using the username and password provisioned through the installer.
NOTE: When using an existing VHD, the default username/password is root/root.
Oracle Virtual Box#
Start Oracle VM VirtualBox Manager.
Create a new VM and chose a name for the virtual machine.
Select the ISO image of Edge Microvisor Toolkit.
Under Operating System, select Linux, sub-type Ubuntu (64-bit).
Configure the number of CPUs and the amount of memory to allocate to the virtual machine.
Enable EFI.
Create the virtual disk image. If you use a pre-existing disk image (VHD or RAW), convert it to VDI first.
Converting Image File to VDI#
You can convert a VHD or RAW image to the VDI format, which is natively supported by
VirtualBox. Simply navigate to the installation folder of VirtualBox, e.g.
C:\Program Files\Oracle\VirtualBox
and run the commands below in a terminal to convert:
a VHD disk image:
VBoxManage clonehd --format VDI <input-vhd-image.vhd> <output-vdi-image.vdi>
a RAW disk image:
VBoxManage convertfromraw <input-vhd-image.img> <output-vdi-image.vdi> --format VDI
KVM#
On Linux you can install and use Edge Microvisor Toolkit directly with KVM using the
graphical virt-manager
and virsh
. Install the OS using the ISO image, or by
importing an existing disk image in a supported format.
On Ubuntu, install virt-manager
or virsh
:
sudo apt update
sudo apt install virt-manager
sudo apt install libvirt-clients
sudo apt install libvirt-daemon-system
sudo usermod -a -G libvirt $(whoami)
Start virt-manager
and create a New Virtual Machine. Choose the preferred installation
method:
Local install media (ISO image)
Click Browse to open the Locate ISO media volume window.
Click Browse local and navigate to the folder with the ISO image. Select the image file and click Open.
You may be prompted with the “The emulator may not have search permissions for the specified path. Do you want to correct this now?” Click Yes.
Deselect Automatically detect from the installation /source and choose the Fedora OS type manually and click Forward.
Configure the number of CPUs and the amount of memory to allocate to the virtual machine.
Check Enable storage for this virtual machine and choose Create a disk image for the virtual machine. Then, specify the size of the disk image.
Create a name for the virtual machine, configure network as desired, check the Customize configuration before install option and click Finish.
In Overview tab, go to Hypervisor Details and change Firmware to
UEFI x86_64: /usr/share/OVMF/OVMF_CODE_4M.fd
.Click Begin Installation. The virtual machine will boot and run the installation of Edge Microvisor Toolkit.
Select the desired installer when prompted and proceed.
Choose an Installation Type.
Select the Virtual Disk for installation and click Next if you want to use the default partitioning method. Otherwise, select Custom Partition to set it up manually.
Skip disk encryption (optional).
Use the default Hostname and select Next to set up the user account.
Select Yes to Start Installation.
Upon successful installation, you need to press ENTER to restart.
Import existing disk image (RAW, QCOW2)
Click Browse to open the Locate or create storage volume window.
Click Browse local and navigate to the folder with the disk image. Select the image file and click Open.
Choose the Fedora OS type manually and click Forward.
Configure CPU and memory settings.
Specify the name for the virtual machine and check the Customize configuration before install option and click Finish.
In Overview tab, go to Hypervisor Details and change Firmware to
UEFI x86_64: /usr/share/OVMF/OVMF_CODE_4M.fd
.Click Begin Installation to boot and run Edge Microvisor Toolkit.
You are now ready to use Edge Microvisor Toolkit!
Support for Disk Image Formats#
Image |
Support |
---|---|
RAW (.img, .raw) |
✅ Best performance, directly supported |
QCOW2 (.qcow2) |
✅ KVM’s native format, supports snapshots and compression |
VHD (.vhd, .vpc) |
⚠️ Limited. Direct use is unreliable, conversion is recommended. |
VDI (.vdi) |
❌ No |
Converting Image File to QCOW2#
You can convert a RAW or VHD image to the QCOW2 format, which is natively supported by
KVM. Start a terminal and use qemu-img
to convert:
a RAW disk image:
qemu-img convert -f raw -O qcow2 <input-image.img> <output-image.qcow2>
a VHD disk image:
qemu-img convert -f vpc -O qcow2 <input-image.vhd> <output-image.qcow2>
NOTE: You can also run
qemu-img
without the-f
parameter to let it detect the input format:qemu-img convert -O qcow2 <input-image.vhd> <output-image.qcow2>
QEMU and UEFI#
You can launch Edge Microvisor Toolkit in a virtual machine using qemu-img
and the
(OVMF firmware), which provides
UEFI support. See the examples below to learn how to install Edge Microvisor Toolkit from
the ISO image, or launch the toolkit from existing RAW/ VHD disk images.
Use an appropriate acceleration type based on your platform, such as accel=kvm
for Linux
or accel=hvf
for macOS on Intel-based Macs. Specify the path to the virtual machine
firmware (OVMF). The path may vary depending on your OS and the version of Qemu.
Create Virtual Machine using ISO#
Create a virtual disk image, specifying a disk size appropriate for your usage and available storage:
qemu-img create -f qcow2 emt_rootfs.img 10G
Start the virtual machine and install Edge Microvisor Toolkit.
qemu-system-x86_64 \ -nodefaults -M accel=kvm -cpu host \ -device virtio-rng-pci \ -machine q35 -smp 2 -m 2048M \ -vga std \ -nic user \ -drive if=pflash,format=raw,readonly=on,file=/usr/share/ovmf/OVMF.fd \ -drive id=disk,file=/path/to/emt_rootfs.img,if=none,format=qcow2 \ -device virtio-blk-pci,drive=disk,bootindex=1 \ -drive id=cdrom,file=/path/to/EdgeMicrovisorToolkit-3.0.iso,if=none,media=cdrom \ -device ide-cd,drive=cdrom,bootindex=2
Create Virtual Machine using RAW or VHD#
RAW
qemu-system-x86_64 \ -nodefaults -M accel=kvm -cpu host \ -device virtio-rng-pci \ -machine q35 -smp 2 -m 2048M \ -vga std \ -nic user \ -drive if=pflash,format=raw,readonly=on,file=/usr/share/ovmf/OVMF.fd \ -drive id=disk1,file=/path/to/EdgeMicrovisorToolkit-3.0.raw,if=none,format=raw,cache=none \ -device virtio-blk-pci,drive=disk1,bootindex=1
VHD
qemu-system-x86_64 \ -nodefaults -M accel=kvm -cpu host \ -device virtio-rng-pci \ -machine q35 -smp 2 -m 2048M \ -vga std \ -nic user \ -drive if=pflash,format=raw,readonly=on,file=/usr/share/ovmf/OVMF.fd \ -drive id=disk1,file=/path/to/EdgeMicrovisorToolkit-3.0.vhd,if=none,format=vpc,cache=none \ -device virtio-blk-pci,drive=disk1,bootindex=1