Generating Virtual Machines in DaDesktop via Virt Manager
Introduction
When designing a curriculum, it is often beneficial to virtualize a server environment within DaDesktop. Additionally, one or two client machines may be virtualized alongside the server, whether using a uniform operating system or a mix of Windows and Linux distributions.
Implementing Nested VMs can be achieved using Virt Manager or VirtualBox (the latter optionally paired with Vagrant on Linux, or simply VirtualBox if Windows 10 is the DaDesktop host).

Following comprehensive testing, Virt Manager is our recommended choice due to several bugs associated with VirtualBox. Consequently, we currently do not recommend using VirtualBox in this specific context.
The VirtManager application leverages the libvirt library to deliver virtual machine management capabilities. It features a desktop interface that facilitates 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 a simple installation:
apt install vagrant-libvirt
It is worth noting that while the selection of Vagrant boxes for libvirt/kvm is smaller than for VirtualBox, these boxes can be easily converted for compatibility 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 quite similar to VirtualBox, albeit with several key distinctions outlined below.
A comprehensive guide to 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 improved performance. Virtio drivers are KVM's paravirtualized device drivers, compatible with Linux and Windows guest virtual machines on KVM hosts. The virtio package supports block (storage) devices, network interface controllers, and graphics. Being open source, these drivers can be easily installed if not pre-included in your Linux distribution.
- Greater configurability options
- Strong integration with Vagrant
- VirtualBox components are not fully open source
- Virt Manager eliminates the need for module recompilation after kernel upgrades, a requirement for VirtualBox.
- VirtualBox has a history of instability following kernel updates.
Disadvantages
- VirtualBox may have a slightly gentler learning curve
- Configuring 'Host networking' is generally more straightforward in VirtualBox, though NAT suffices for most networking scenarios in both systems.
- While VirtualBox is available across multiple platforms, Virt Manager is exclusive to Linux
Overall, for operating servers within a DaDesktop environment, Virt Manager is the preferred solution.
Installation
Since libvirt is continuously evolving, it is advisable to use the latest non-LTS Ubuntu or Debian version.
Installation of kvm and virt-manager is straightforward. The following are brief installation notes; however, please consult an up-to-date guide for your specific DaDesktop OS. One such resource 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
- How can I import or convert virtual machines ? While creating custom VMs tailored to your OS and specification requirements is straightforward, complex setups often benefit from importing an existing VM configuration for a specific server or appliance. These are frequently provided as VMDK images, which can theoretically be added directly to Virt Manager, although clarity on this varies by current version. VirtualBox server images cannot be imported directly but can be easily exported to other virtualization formats such as Open Virtualisation Format (.OVF), which Virt Manager supports. Alternatively, you may use VmWare Convertor if available, or Virt-V2V 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 method for importing large files into a standalone environment. A feature has recently been added to easily upload files from your host machine to the DaDesktop machine.
Alternatively, consider using cloud storage solutions like Google Drive or Microsoft 365. These services can be accessed by logging in within the DaDesktop environment.
- When importing VMs 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 virtualized drivers offer significantly better performance than legacy disk, network, or graphics drivers and are supported by nearly all operating systems, including excellent compatibility with guest Windows 10 machines. If your Guest OS supports them, these are generally the preferred option for both 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 on Windows. Generally, virtio drivers are the best choice, though other types may be required in specific cases. NAT is sufficient for most networking needs unless a more complex setup requires Bridged Host networking, which is typically more complex to configure.
https://wiki.archlinux.org/title/Virt-manager serves as an excellent starting guide.
Running Windows requires additional steps, specifically slipstreaming VirtIO drivers to ensure the Windows 10 ISO boots correctly.
For hard disk format selection, .raw files are recommended for speed unless snapshots are needed; in that case, use the qcow2 format, though it is slightly slower. - Although Wayland functions well in most scenarios as a display manager, we recommend continuing to use X11 for the time being. That said, it may be worth experimenting with Wayland in your specific setup, as distributions are improving their Wayland support continuously.
- There is little practical benefit to using ksm, as while it works in nested environments and Virt Manager, it yields minimal difference in performance.
- Tech Support is available if required for 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 uses the following default location to store image files, though this is configurable and other locations can be used if preferred.
/var/lib/libvirt/images