Creating Virtual Machines in DaDesktop with Virt Manager
Introduction
When preparing a course, it is often beneficial to virtualize a server within DaDesktop. Similarly, you may want to virtualize one or two client machines using the same approach, whether they run the same operating system or a mix of Windows and Linux.
To run Nested VMs, you can utilize Virt Manager or VirtualBox. If using Linux, Vagrant is an optional addition; for Windows 10 on the DaDesktop machine, VirtualBox is the standard choice.

Based on extensive testing, we recommend Virt Manager as our preferred solution. We advise against using VirtualBox for this purpose due to several known bugs.
The Virt Manager application leverages the libvirt library to deliver virtual machine management services. Its desktop interface 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 via:
apt install vagrant-libvirt
Note that the selection of Vagrant boxes available for libvirt/kvm is smaller than for VirtualBox. However, these boxes can be easily converted to work with libvirt, as demonstrated in this resource:
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 running instances, and resource utilization statistics.
If you are new to Virt Manager, it operates similarly to VirtualBox but includes several important distinctions detailed below.
For a comprehensive guide on using virt-manager on Ubuntu Linux, refer to this resource: https://www.debugpoint.com/virt-manager/
Why choose Virt Manager over VirtualBox?
Advantages
- Performance is significantly enhanced. Virt Manager utilizes VirtIO drivers for storage, networking, and graphics, yielding superior performance. These virtio drivers are KVM paravirtualized device drivers available for Linux and Windows guest VMs on KVM hosts. The virtio package supports block (storage) devices, network interface controllers, and graphics. Being open source, these drivers are easy to install if not pre-installed on your Linux distribution.
- Greater configurability options are available.
- Strong compatibility with Vagrant.
- Parts of VirtualBox are not fully open source.
- Virt Manager eliminates the need for module recompilation after every new kernel upgrade, a frequent issue with VirtualBox.
- VirtualBox is occasionally prone to breaking during kernel upgrades.
Disadvantages
- VirtualBox may offer a slightly shorter learning curve.
- Configuring 'Host networking' instead of NAT is generally more straightforward in VirtualBox, though NAT works well for most networking scenarios in both systems.
- While VirtualBox supports many platforms, Virt Manager is exclusively available on Linux.
Overall, for running servers within a DaDesktop machine, we find Virt Manager to be the preferred choice.
Installation
Since libvirt is continuously improving, it is recommended to always use the latest non-LTS version of Ubuntu or Debian.
Regarding the installation of kvm and virt-manager: the notes below are brief. For specific instructions, please consult an up-to-date guide for 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 VMs tailored to your specific OS and hardware requirements is straightforward, more complex setups often benefit from 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, although clarity on this capability varies with the current version. VirtualBox server images cannot be directly imported into Virt Manager but can be easily exported to other virtualization formats, such as Open Virtualization Format (.OVF), which Virt Manager imports effortlessly. Alternatively, you can use VMware Converter or Virt-V2V if available: 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, follow these instructions: https://ostechnix.com/how-to-migrate-virtualbox-vms-into-kvm-vms-in-linux/ -
The best way to import large files inside 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. You can access these by logging into the service within the DaDesktop machine.
- When importing virtual machines from other formats, you will often need to modify graphics and/or disk types. A major advantage of Virt Manager 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 available for nearly all operating systems, including excellent support for Windows 10 guest machines. If your Guest OS supports them, these drivers are usually the preferred option for 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. While virtio drivers are generally the best choice, you may need to use other types in specific cases. Generally, NAT is sufficient for most networking needs unless you require a more complex setup, in which case Bridged Host networking may be necessary, though it is typically more difficult to configure.
https://wiki.archlinux.org/title/Virt-manager is an excellent introductory guide.r>Running Windows requires additional steps, including slipstreaming VirtIO drivers to ensure the Windows 10 ISO can boot successfully.
When selecting the hard disk format, .raw files offer the best speed unless snapshots are required; in that case, use the qcow2 format, which is slightly slower. - Although Wayland performs well in most cases as a display manager, we currently recommend using X11. However, it may be worth testing Wayland in your specific setup, as distributions are increasingly improving Wayland support.
- Avoid using KSM; although it works in nested environments and within Virt Manager, it offers little practical benefit.
- Tech Support is available if you require assistance with converting disk images for Virt Manager compatibility or setting up Virt Manager for DaDesktop courses.
-
Where are disk image files located within the filesystem? Virt Manager stores image files in the following location by default, though this is configurable and other locations can be used if preferred.
/var/lib/libvirt/images