Setting Up Virtual Machines in DaDesktop with Virt Manager
Introduction
When preparing course materials, virtualizing servers within DaDesktop is often essential. You might also choose to virtualize one or two client machines, either using the same operating system or a combination of Windows and Linux.
You can run 'Nested VMs' using Virt Manager or VirtualBox. If you are using Linux, Vagrant is also an optional tool. Alternatively, if your DaDesktop machine runs Windows 10, VirtualBox is a viable option.

Following extensive testing, our recommended approach is to use Virt Manager, as VirtualBox has some known bugs in this context. Therefore, we currently do not recommend using VirtualBox for this specific purpose.
The VirtManager application leverages the libvirt library to provide robust virtual machine management services. It offers a desktop interface that simplifies the creation, deletion, and management of multiple virtual machines. While it is primarily used for KVM VMs, it also supports other hypervisors such as Xen and LXC.
Virt Manager integrates seamlessly with Vagrant, as demonstrated by the following command:
apt install vagrant-libvirt
It is worth noting that while there are fewer Vagrant boxes available for libvirt/kvm compared to VirtualBox, these can be easily converted to work with libvirt as shown 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 running VMs, and resource utilization statistics.
If you are new to Virt Manager, you will find it very similar to VirtualBox, though there are a few important differences detailed below.
For those using Ubuntu Linux, this is a solid guide for using virt-manager - https://www.debugpoint.com/virt-manager/
Why should I use Virt Manager instead of Virtualbox?
Advantages
- Performance is significantly better. Virt Manager utilizes VirtIO drivers for storage, networking, and graphics, resulting in superior performance. Virtio drivers are paravirtualized device drivers for KVM, available for Linux and Windows guest virtual machines running on KVM hosts. The virtio package supports block (storage) devices, network interface controllers, and graphics. As VirtIO drivers are open source, they are easily installed if not pre-installed on your Linux distribution.
- More configurability options are available.
- It works well with Vagrant.
- Some components of VirtualBox are not fully open source.
- Virt Manager does not require module recompilation after kernel upgrades, unlike VirtualBox.
- VirtualBox is sometimes known to break when a new kernel upgrade is required.
Disadvantages
- VirtualBox may be considered to have a slightly shorter learning curve.
- Setting up 'Host networking' rather than NAT is easier in VirtualBox, although NAT works sufficiently for most networking use cases on both systems.
- VirtualBox is available on many platforms, whereas Virt Manager is only available on Linux.
Overall, we find that Virt Manager is the preferred tool for running servers within a DaDesktop machine.
Installation
Since libvirt is continuously improving, it is best to use the latest non-LTS Ubuntu or Debian version.
Installing kvm and virt-manager is straightforward. The following are brief installation notes, but please follow an up-to-date guide for your preferred DaDesktop OS. Here is one recommended guide: 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 operating system and specification requirements is easy, importing existing VM setups for complex scenarios is often preferred for specific servers or appliances. These are often supplied as VMDK images, which can be added directly to Virt Manager, though it is not entirely clear if this is possible with the current version. Virtual Box 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 Convertor 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, follow these instructions: https://ostechnix.com/how-to-migrate-virtualbox-vms-into-kvm-vms-in-linux/ -
The best way to import large files into a standalone environment. A feature has recently been added to easily upload files from your machine to your DaDesktop machine.
Alternatively, consider using a Cloud file tool such as Google Drive or Microsoft 365. You can access these by logging in within the DaDesktop machine.
- When importing virtual machines from other formats, you will often need to change graphics and/or disk types. One of the key benefits of Virt Manager is its excellent support for VirtIO drivers. These open-source, fully virtualized drivers offer much better performance than standard disk, network, or graphics drivers and are available for nearly all operating systems, including excellent support for Windows 10 guests. If your Guest OS supports them, VirtIO 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 in Windows. While VirtIO is generally the best choice, other driver types may be necessary in some cases. For most networking scenarios, NAT is sufficient, although more complex setups may require Bridged Host networking, which is generally more difficult to configure.
https://wiki.archlinux.org/title/Virt-manager is a great starter guide.
Running Windows requires additional steps, including slipstreaming VirtIO drivers to allow the Windows 10 ISO to boot.
For hard disk format, .raw files are best for speed unless snapshots are required; in that case, use qcow2 format, though it is slightly slower. - Although Wayland works well in most cases as a display manager, we advise continuing to use X11 for now. However, it may be worth testing Wayland in your specific setup, as distributions are improving their Wayland support continuously.
- Avoid using ksm, as although it works in nested environments and with Virt Manager, it offers little practical difference.
- Tech Support is available if needed for converting disk images to work with Virt Manager, as well as for 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 to other preferred locations:
/var/lib/libvirt/images