Setting Up Virtual Machines in DaDesktop via Virt Manager
Introduction
When developing course materials, it is often beneficial to create a virtualized server environment within DaDesktop. Additionally, you may choose to virtualize one or two client machines, whether using the same operating system or a mix of Windows and Linux.
Deploying 'Nested VMs' can be achieved using Virt Manager or VirtualBox. If using Linux, Vagrant is an optional companion tool, while Windows 10 users on the DaDesktop machine will typically rely on VirtualBox.

Based on extensive testing, we recommend using Virt Manager as our preferred solution. We have identified several bugs when using VirtualBox in this context; therefore, we currently advise against using VirtualBox for these specific tasks.
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 such as Xen and LXC.
Virt Manager also integrates seamlessly with Vagrant, simply :-
apt install vagrant-libvirt
It is worth noting that while fewer Vagrant boxes are natively available for libvirt/kvm compared to VirtualBox, they can be easily converted for use with libvirt 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, you will find it very similar to VirtualBox, though there are a few significant differences outlined below.
A reliable guide for using virt-manager on Ubuntu Linux can be found here - 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, resulting in significantly better performance. Virtio drivers are paravirtualized device drivers for KVM, available for Linux and Windows guest virtual machines on KVM hosts. The virtio package supports block (storage) devices, network interface controllers, and graphics. As these drivers are open source, they can be easily installed if not pre-installed on your Linux distribution.
- Greater configurability options
- Seamless integration with Vagrant
- Some components of VirtualBox are not fully open source
- Virt Manager eliminates the need for module recompilation after kernel upgrades, a common requirement for VirtualBox.
- VirtualBox is occasionally prone to breaking following kernel upgrades.
Disadvantages
- VirtualBox generally offers a slightly shorter learning curve
- Configuring 'Host networking' (as opposed to NAT) is slightly simpler in VirtualBox, although NAT functions adequately for most networking scenarios on both systems.
- While VirtualBox is available on many platforms, Virt Manager is exclusive to Linux
Overall, we find that Virt Manager is the preferred solution for running servers within a DaDesktop machine.
Installation
Since libvirt is continuously evolving, it is best to use the latest non-LTS version of Ubuntu or Debian.
Installing kvm and virt-manager involves a few steps. These are concise installation notes; however, we recommend following an up-to-date guide specific to your preferred DaDesktop OS. One such guide is available at 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 custom VMs for specific OS and hardware requirements is straightforward, complex setups often benefit from importing existing VM configurations of specific servers or appliances. These are frequently provided as VMDK images, which can theoretically be added directly to Virt Manager, though current version support for this is not entirely clear. VirtualBox server images cannot be imported directly into Virt Manager but can be easily exported to other virtualization 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 method for importing large files into standalone environments. Recently, functionality was added to easily upload files from your host machine to your DaDesktop machine.
Alternatively, consider using cloud storage tools like Google Drive or Microsoft 365. These services can be accessed by logging in within the DaDesktop machine.
- When importing virtual machines from other formats, you will often need to adjust graphics and/or disk types. One of the standout features of Virt Manager is its robust support for VirtIO drivers. These open-source, fully virtualized drivers offer significantly better performance than standard disk, network, or graphic drivers and are available for nearly all operating systems, including excellent support for guest Windows 10 machines. If your Guest OS supports them, VirtIO drivers are typically the preferred choice for both compatibility and performance when using Virt Manager (KVM). https://wiki.archlinux.org/title/Libvirt
- Optimal settings for virtual machines using Virt Manager. VirtIO drivers are included in almost all modern open-source server operating systems and can be easily installed on Windows. Generally, virtio drivers are the best option, but other types may be necessary in specific cases. For networking, NAT is sufficient for most scenarios unless a more complex setup requiring Bridged Host networking is needed, though the latter can be trickier to configure.
https://wiki.archlinux.org/title/Virt-manager serves as an excellent starting guide.
Running Windows requires additional steps, including slipstreaming VirtIO drivers to ensure the Windows 10 ISO boots correctly.
When selecting hard disk formats, .raw files offer the best speed unless snapshots are required; in that case, use the qcow2 format, which is slightly slower. - Although Wayland functions well in most cases as a display manager, we currently advise using X11. However, it may be worth experimenting with Wayland in your specific setup, as distribution support for it continues to improve.
- We do not recommend using ksm; while it works in nested environments and Virt Manager, it offers little practical difference.
- Tech Support is available if needed for converting disk images for Virt Manager or for setting up Virt Manager for DaDesktop courses.
-
Where are disk image files located in the filesystem? Virt Manager stores image files in the following location by default, though this is configurable and alternative locations can be used if preferred.
/var/lib/libvirt/images