Establishing Virtual Machines in DaDesktop via Virt Manager
Introduction
When designing a course, it is frequently beneficial to virtualize a server within DaDesktop, and potentially one or two client machines as well. This can be achieved using the same operating system or a combination of Windows and Linux.
Implementing 'Nested VMs' is possible through Virt Manager or VirtualBox. If using Linux, Vagrant can optionally be utilized alongside VirtualBox, or VirtualBox can be used if Windows 10 is the DaDesktop operating system.

Following comprehensive testing, we recommend using Virt Manager as the preferred solution. This is due to several bugs associated with VirtualBox; consequently, we do not currently advise using VirtualBox in this context.
The VirtManager application leverages the libvirt library to deliver virtual machine management services. It offers a desktop interface that facilitates the creation, deletion, and administration of multiple virtual machines. While primarily designed for KVM VMs, it also supports other hypervisors such as Xen and LXC.
Virt Manager also integrates seamlessly with Vagrant, as demonstrated by the following command:
apt install vagrant-libvirt
Note that while fewer Vagrant boxes are available for libvirt/kvm compared to VirtualBox, these can be readily converted to work with libvirt, as shown in the following resource:
https://medium.com/@gamunu/use-vagrant-with-libvirt-unsupported-boxes-12e719d71e8e
The user interface provides a comprehensive overview of all VMs, including their status, CPU usage, real-time performance graphs for running instances, and resource utilization statistics.
For those unfamiliar with Virt Manager, it bears a resemblance to VirtualBox, albeit with several critical distinctions outlined below.
A useful guide for using virt-manager on Ubuntu Linux can be found here: https://www.debugpoint.com/virt-manager/
Why should I use Virt Manager instead of VirtualBox?
Advantages
- Performance is significantly superior because Virt Manager employs VirtIO drivers for storage, networking, and graphics. These KVM paravirtualized device drivers, available for both Linux and Windows guest virtual machines, offer enhanced performance. The virtio package supports block storage devices, network interface controllers, and graphics components. As these drivers are open source, they can be easily installed if not pre-installed in your Linux distribution.
- Greater configurability options are available.
- It integrates effectively with Vagrant.
- Certain components of VirtualBox are not fully open source.
- Virt Manager does not require module recompilation after kernel upgrades, a limitation common to VirtualBox.
- VirtualBox is occasionally prone to instability following new kernel upgrades.
Disadvantages
- VirtualBox may have a slightly gentler learning curve.
- Configuring 'Host networking' rather than NAT is somewhat more straightforward in VirtualBox, though NAT functions adequately for most networking scenarios in both systems.
- While VirtualBox is available across many platforms, Virt Manager is exclusive to Linux.
Overall, for running servers within a DaDesktop environment, we find Virt Manager to be the preferred tool.
Installation
Given the continuous improvements in libvirt, it is advisable to use the latest non-LTS Ubuntu or Debian version.
Below are brief installation notes for kvm and virt-manager. However, please consult an up-to-date guide suitable for your specific DaDesktop OS. One recommended resource is https://www.debugpoint.com/virt-manager/
sudo apt install virt-manager
sudo adduser student libvirt sudo systemctl restart libvirtd
Reboot the DaDesktop machine and launch Virt Manager from the Applications menu.
Configuration
- How can I import or convert virtual machines? While creating VMs tailored to your OS and specification requirements is straightforward, importing existing VM setups for more complex server or appliance configurations is often preferred. These are typically supplied as VMDK images. Although direct addition to Virt Manager may not be clearly supported in the current version, VirtualBox server images cannot be imported directly but can be easily exported to other virtualization formats like Open Virtualisation Format (.OVF), which Virt Manager can import. 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 convert from VirtualBox to Virt Manager KVM format, please follow these instructions: https://ostechnix.com/how-to-migrate-virtualbox-vms-into-kvm-vms-in-linux/ -
Optimal method for importing large files into standalone environments. A feature has recently been added to easily upload files from your host machine to within the DaDesktop environment.
Alternatively, consider utilizing cloud storage tools such as Google Drive or Microsoft 365. These can be accessed by logging in within the DaDesktop machine.
- When importing virtual machines from other formats, you often need to adjust graphics and/or disk types. A key strength of Virt Manager is its robust support for VirtIO drivers. These fully virtualized, open-source drivers deliver superior performance compared to legacy disk, network, or graphic drivers and are compatible with nearly all operating systems, including excellent support for Windows 10 guest machines. If your Guest OS supports them, they are generally the preferred choice for compatibility and performance when using Virt Manager (KVM). For more details, see: https://wiki.archlinux.org/title/Libvirt
- Optimal settings for virtual machines using Virt Manager. VirtIO drivers are included in most modern open-source server operating systems and can be easily installed on Windows. Generally, virtio drivers are optimal, though other types may be necessary in specific cases. NAT is usually sufficient for networking unless a more complex setup requires Bridged Host networking, which can be more challenging to configure. https://wiki.archlinux.org/title/Virt-manager serves as a great introductory guide.
Running Windows requires additional steps, specifically slipstreaming VirtIO drivers to allow the Windows 10 ISO to boot.
When selecting the hard disk format, .raw files are best for speed unless snapshots are required; in that case, use qcow2 format, albeit with slightly reduced performance. - While Wayland functions well in most scenarios as a display manager, we currently advise continuing to use X11. That said, it is worth testing Wayland in your specific setup, as distribution support for it is continually improving.
- There is no need to use ksm, as although it works in nested environments and with Virt Manager, it provides minimal practical difference.
- Tech Support is available if assistance is required when converting disk images for Virt Manager compatibility, or when setting up Virt Manager for DaDesktop courses.
-
Where are disk image files stored within the filesystem? Virt Manager uses the following location for image files by default, though this is configurable to accommodate preferred locations.
/var/lib/libvirt/images