Building Virtual Machines on DaDesktop via Virt Manager
Introduction
When designing a course, it is often beneficial to virtualise server environments within DaDesktop. Similarly, you may wish to set up one or two client machines in the same manner, either using a uniform OS or a combination of Windows and Linux.
Creating Nested VMs can be achieved using Virt Manager or VirtualBox. If using Linux, you can optionally utilize Vagrant alongside VirtualBox; for Windows 10 DaDesktop environments, VirtualBox is the standard option.

Following extensive testing, we recommend Virt Manager as our preferred tool. This is because VirtualBox exhibits several bugs in this context; consequently, we do not currently recommend using VirtualBox for nested virtualisation in this way.
The VirtManager application leverages the libvirt library to deliver virtual machine management services. It features a desktop interface that simplifies the creation, deletion, and management of multiple virtual machines. While it is primarily designed for KVM VMs, it also supports other hypervisors, including Xen and LXC.
Virt Manager integrates seamlessly with Vagrant, requiring only a simple installation:
apt install vagrant-libvirt
Please note that there are fewer Vagrant boxes available for libvirt/kvm compared to VirtualBox. However, these can be easily converted to work with libvirt, as demonstrated in the following resource:
https://medium.com/@gamunu/use-vagrant-with-libvirt-unsupported-boxes-12e719d71e8e
The user interface offers a comprehensive overview of all VMs, displaying their status, CPU usage, live performance graphs for running instances, and resource utilization statistics.
If you are new to Virt Manager, note that it shares many similarities with VirtualBox, but with several key differences outlined below.
Here is a solid guide on using virt-manager on Ubuntu Linux - https://www.debugpoint.com/virt-manager/
Why choose Virt Manager over VirtualBox?
Advantages
- Performance is significantly improved. Virt Manager utilises VirtIO drivers for storage, networking, and graphics, resulting in superior performance. Virtio drivers are paravirtualized device drivers for KVM, available for both Linux and Windows guest virtual machines running on KVM hosts. The virtio package supports block (storage) devices, network interface controllers, and graphics. Being open-source, VirtIO drivers are easy to install if not pre-installed on your Linux distribution.
- Greater configurability options are available.
- Excellent compatibility with Vagrant.
- Unlike VirtualBox, which has partially proprietary components, Virt Manager is fully open-source.
- Virt Manager does not require module recompilation after a new kernel upgrade, a common issue with VirtualBox.
- VirtualBox is prone to breaking following kernel upgrades, whereas Virt Manager maintains stability.
Disadvantages
- VirtualBox may have a slightly gentler learning curve.
- Setting up 'Host networking' rather than NAT is straightforward in VirtualBox. However, NAT is sufficient for most networking scenarios and works easily on both systems.
- VirtualBox is cross-platform, while Virt Manager is exclusively available on Linux.
Overall, we find that for running servers within a DaDesktop machine, Virt Manager is the superior choice.
Installation
Since libvirt is constantly evolving, it is best to use the latest non-LTS version of Ubuntu or Debian.
Below are brief installation notes for kvm and virt-manager. However, please refer to an up-to-date guide for your specific DaDesktop OS. One such guide is available here: https://www.debugpoint.com/virt-manager/
sudo apt install virt-manager
sudo adduser student libvirt sudo systemctl restart libvirtd
Reboot the DaDesktop machine, then launch Virt Manager from the Applications menu.
Configuration
- How do I import or convert virtual machines? While creating new VMs tailored to your operating system and specifications is straightforward, complex setups often require importing an existing VM configuration for a specific server or appliance. These are frequently supplied as VMDK images, which can be added directly to Virt Manager, though this capability may vary with the current version. VirtualBox server images cannot be imported directly but can be easily exported to other virtualisation formats, such as Open Virtualisation Format (.OVF), which Virt Manager imports without issue. Alternatively, you can use VMware Converter if available, or Virt-V2V: https://www.redhat.com/en/blog/importing-vms-kvm-virt-v2v. Qemu-convert is also an excellent open-source tool for converting between different virtual machine formats.
To migrate from VirtualBox to Virt Manager KVM format, follow these instructions: https://ostechnix.com/how-to-migrate-virtualbox-vms-into-kvm-vms-in-linux/ -
Best way to import large files into a standalone environment. Recently, a feature was added to easily upload files from your host machine to within your DaDesktop machine.
Alternatively, consider using cloud storage tools like Google Drive or Microsoft 365. You can access these by logging in directly within the DaDesktop machine.
- When importing virtual machines from other formats, you may need to adjust graphics and/or disk types. One of Virt Manager’s standout features is its robust support for VirtIO drivers. These open-source, fully virtualised drivers offer significantly better performance than standard disk, network, or graphic drivers and are compatible with 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 most modern open-source server operating systems and can be easily installed on Windows. While VirtIO is generally the best choice, other driver types may be necessary in specific cases. For networking, NAT is sufficient for most scenarios unless a more complex setup requires Bridged Host networking, which can be trickier to configure.
https://wiki.archlinux.org/title/Virt-manager serves as an excellent introductory guide.
Running Windows requires additional steps, including slipstreaming VirtIO drivers to ensure the Windows 10 ISO boots correctly.
When selecting a hard disk format, .raw files offer the best speed unless snapshots are required; in that case, use the qcow2 format, acknowledging a slight performance trade-off. - Although Wayland functions well in most scenarios as a display manager, we currently advise using X11. That said, it is worth testing Wayland in your specific setup, as distribution support for Wayland continues to improve.
- We advise against using KSM, as although it works in nested environments and with Virt Manager, it provides negligible practical benefits.
- Tech Support is available for assistance with converting disk images for Virt Manager compatibility, as well as for setting up Virt Manager for DaDesktop courses.
-
Where are disk image files stored within the filesystem? Virt Manager stores image files in the following location by default, though this is configurable to accommodate other preferred locations:
/var/lib/libvirt/images