Creating a Virtual Machine, using Ubuntu's KVM

SYSTEM INFORMATION
OS type and version Ubuntu Linux 24.04.3
Usermin version 2.302
Virtualmin version 7.30.8 Pro
Theme version 24.02
Apache version 2.4.58
Package updates All installed packages are up to date

Hi guys,
I know I’m not the first to be asking about KVM installation, so I searched the forum and the rest of the Internet community for answers, but nothing seems to work. Here’s my problem.

We are a university (nursing) and we use Moodle as our LMS. We want to integrate Big Blue Button, as our virtual classroom. Big Blue Button (ideally) needs to be installed on a ‘fresh’ physically dedicated server. We only have one physical server in use, so we need to create a virtual machine on one of our virtualmin subservers, with its own OS, to ‘isolate’ Big Blue Button. Since we are using Ubuntu 24.04 as our ‘go to’ OS, installing KVM seemed obvious (at least to us and according to most of the answers we found on several fora).

Installing the necessary packages and dependent software was no problem in itself, but we keep running into problems:
Below is what we did and what happened.

→ We checked if Visualization is enabled in BIOS and Ubuntu (vmx) and it is.
→ We are not using VirtualBox (just as FIY).
→ KVM acceleration can be used.
→ We installed qemu-kvm, virt-manager, libvirt-clients, bridge-utils, libvirt-daemon-system and virtinst without any problems or error-messages.
→ We enabled libvirtd without any problems or error-messages, but when we check its status we get the following error:
“firewalld is set to use the nftables backend, but the required firewalld ‘libvirt’ zone is missing. Either set the firewalld backend to ‘iptables’, or ensure that firewalld has a ‘libvirt’ zone by upgrading firewalld to a version supporting rule priorities (0.7.0+) and/or rebuilding libvirt with --with-firewalld-zone”
→ Changing firewalld to iptables does not help.
→ However, starting libvird showed it as ‘active’ and ‘enabled’.
→ We added ‘root’ as the user (since only the admin/root will be aministering for now). Root was also the ‘active user’ during installation of KVM, but we also tried the actual server-account as the user.
→ We downloaded Ubuntu 24.04.03 ISO to the subserver where we want the virtual machine to be working.
→ Apart from the Virtualmin ‘desktop’ we don’t use any other desktop or GUI, so we used the terminal to try to create the actual virtual machine.
→ We used the qcow2 qemu-img creation command. No error-messages were shown.
→ We started the vm install with the usual virt-install command and options/arguments (–name, --memory, --disk path, --vcpus, --cdrom (we also tried --location), --os-variant, --network (default), --graphics (none).
→ After creation-attempt we get the message that the default network is not active and we are not able to activate it.

We also tried some other methods, found on the Internet, but they all led to error-messages, like “IP address already in use” and not being able to ‘down’ the wired connection and ‘up’ the bridge.

Is there some kind of script for installing a kvm on a Virtualmin subserver? We tried the Cloudmin script but it appears to be outdated and didn’t work.

KVM has the most user unfriendly network syntax known to me. Well, pretty much a Linux thing. :wink:

Do you have another Linux install? You can install on that and use the gui tool virtmanger to play with the network settings. Once it works you can look at the configuration files and use them as guides on your Virtualmin Machine.

Virtualmin is unrelated to KVM or virtual machines.

Cloudmin is our tool for managing virtual machines. As you note, the installer has been neglected for quite some time and can be difficult to get working, but if you want to manage VMs in Webmin, Cloudmin is how you do it. Virtualmin has nothing to to with it.

We’ll try to get Cloudmin updated to work easily on modern OSes pretty soon.

OK, we thought it was not recommended to install Cloudmin within or on top of Virtualmin. Anyway, trying to install the Cloudmin kvm script (cloudmin-kvm-debian-install) this is the message we get (below). Is there a work-around for this?

“E: Package ‘kvm’ has no installation candidate
E: Package ‘qemu’ has no installation candidate
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Note, selecting ‘qemu-system-x86’ instead of ‘qemu-kvm’
Package qemu is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source”

Also tried the other script, available in github (cloudmin-install.sh), but then we get this error-message:
“Error: Failed to download utility function library. Cannot continue. Check your network connection and DNS settings, and verify that your system’s time is accurately synchronized.”

Cloudmin can coexist with Virtualmin fine, but the installer is a mess and not recommended on any current Linux distro. We’re working on the installer this week.

If you need to use it today, you should just install the server-manager module (that’s the Cloudmin module). But, I don’t think I can recommend it right now.

Oh, but also, it doesn’t really make sense to run both Virtualmin and Cloudmin on the same system. If you’re virtualization the hardware, you probably want to put Virtualmin inside Cloudmin-managed virtual machines.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.