Provisioning Virtual Machines in DaDesktop via Virt Manager
Introduction
When developing course materials, it is frequently advantageous to virtualize server environments within DaDesktop. This often involves creating one or two client machine instances as well, either mirroring the server's operating system or creating a mixed Windows/Linux environment.
'Nested VMs' can be deployed using Virt Manager or VirtualBox. If utilizing Linux, Vagrant is an optional companion tool; for DaDesktop instances running Windows 10, VirtualBox is the standard approach.

Based on extensive testing, our recommended solution is Virt Manager. We currently advise against using VirtualBox in this context due to several identified bugs.
The VirtManager application leverages the libvirt library to deliver robust virtual machine management services. Its desktop interface simplifies the creation, deletion, and administration of multiple virtual machines. While primarily optimized for KVM VMs, it also supports other hypervisors such as Xen and LXC.
Virt Manager integrates seamlessly with Vagrant, requiring only the following setup :
apt install vagrant-libvirt
Please note that while fewer Vagrant boxes are natively available for libvirt/kvm compared to VirtualBox, these can be easily converted for compatibility, as demonstrated here :-
https://medium.com/@gamunu/use-vagrant-with-libvirt-unsupported-boxes-12e719d71e8e
The user interface offers a comprehensive overview of all VMs, including their status, CPU usage, live performance graphs for active instances, and resource utilization statistics.
If you are new to Virt Manager, note that while it shares similarities with VirtualBox, there are several key differences outlined below.
This is a comprehensive guide on using virt-manager on Ubuntu Linux - https://www.debugpoint.com/virt-manager/
Why choose Virt Manager over VirtualBox?
Advantages
- Superior performance - Virt Manager utilizes VirtIO drivers for storage, networking, and graphics, significantly enhancing performance. Virtio drivers are KVM's paravirtualized device drivers, available for Linux and Windows guest virtual machines on KVM hosts. The virtio package supports block (storage) devices, network interface controllers, and graphics. Since VirtIO drivers are open source, they are easily installed if not pre-installed on your Linux distribution.
- Greater configurability options
- Strong integration with Vagrant
- VirtualBox contains components that are not fully open source
- Virt Manager eliminates the need for module recompilation after kernel upgrades, a common requirement for VirtualBox.
- VirtualBox is known to occasionally break following kernel upgrades.
Disadvantages
- VirtualBox may offer a slightly gentler learning curve
- Configuring 'Host networking' versus NAT is straightforward in VirtualBox, although NAT functions adequately for most networking scenarios in both systems.
- VirtualBox is cross-platform, whereas Virt Manager is exclusive to Linux
Overall, we conclude that Virt Manager is the preferred choice for running servers within a DaDesktop machine.
Installation
Given the continuous improvements in libvirt, it is best to use the latest non-LTS Ubuntu or Debian version.
Install kvm and virt-manager. These are concise installation notes; however, please consult an up-to-date guide for your specific DaDesktop OS. One such guide is https://www.debugpoint.com/virt-manager/
sudo apt install virt-manager
sudo adduser student libvirt sudo systemctl restart libvirtd
Restart the DaDesktop machine, then launch Virt Manager from the Applications menu
Configuration
- Importing or converting virtual machines ? While creating VMs tailored to your operating system and specifications is straightforward, complex setups often benefit from importing existing VM configurations of specific servers or appliances. These are often provided as VMDK images, which can theoretically be added to Virt Manager, though clarity on direct compatibility with the current version varies. VirtualBox server images cannot be directly imported into Virt Manager but can be exported to formats like open Virtualisation Format (.OVF), which Virt Manager imports easily. Alternatively, you can use VmWare Convertor (if available) or Virt-V2V instead https://www.redhat.com/en/blog/importing-vms-kvm-virt-v2v. Qemu-convert is another excellent open-source tool for converting between different virtual machine formats.
To Convert from VirtualBox to Virt Manager KVM format follow these instructions https://ostechnix.com/how-to-migrate-virtualbox-vms-into-kvm-vms-in-linux/ -
Optimal methods for importing large files into standalone environments. Recently, a feature to easily upload files from your local machine to your DaDesktop machine has been introduced.
Alternatively, consider using Cloud storage tools such as Google Drive or Microsoft 365. You can access these by logging in directly within the DaDesktop machine.
- When importing virtual machines from other formats, graphics and/or disk types often need adjustment. A major strength of Virt Manager is its robust support for VirtIO drivers. These open-source, fully virtualized drivers deliver significantly better performance than original disk, network, or graphic drivers and are available for nearly all operating systems, including excellent support for Windows 10 guests. If your Guest OS supports them, VirtIO drivers are generally the preferred choice for compatibility and performance when using Virt Manager (KVM). https://wiki.archlinux.org/title/Libvirt
- Optimal settings for virtual machines in Virt Manager VirtIO drivers are included in almost all modern open-source server operating systems and can be easily installed in Windows. While virtio is generally the best driver choice, other types may be necessary in specific cases. NAT is sufficient for most networking needs unless a complex Bridged Host networking setup is required, which is typically more challenging to configure.
https://wiki.archlinux.org/title/Virt-manager serves as an excellent starter guide.
Running Windows requires additional steps, including slipstreaming VirtIO drivers to ensure the Windows 10 ISO boots correctly.
When selecting the hard disk format, .raw files offer the best speed unless snapshots are needed; in that case, use qcow2 format, which is slightly slower. - Although Wayland functions well in most scenarios as a display manager, we recommend continuing to use X11 for now. However, it may be worth experimenting with Wayland in your specific setup, as distribution support for Wayland is continuously improving.
- Avoid using ksm, as while it works in nested and Virt Manager environments, it provides minimal practical benefit.
- Tech Support is available for assistance with converting disk images for Virt Manager and for setting up Virt Manager for DaDesktop courses.
-
Filesystem location of disk image files: Virt Manager stores image files in the following location by default, though this is configurable and other paths can be used if preferred.
/var/lib/libvirt/images