Importing images error

Trying to import images and getting these errors

user@debian:~$ virsh -c qemu:///system define Whonix-Gateway*.xml
error: Failed to define domain from Whonix-Gateway-XFCE-15.0.0.8.7.xml
error: invalid argument: could not find capabilities for domaintype=kvm

same happens when trying to import Whonix-Workstation

The libvirt error “could not find capabilities for domaintype=kvm” indicates a lack of kvm support on the host.

This could be a lack of hardware support or it could mean the kvm/kvm_intel/kvm_amd kernel drivers are not loaded.

If the drivers are not loading, it could be because you don’t have kvm installed.

1 Like

KVM is installed, I can find it in Applications > System > Virtual Machine Manager. Previously during key verification I had 2 good signatures and 1 key was missing but I didn’t figure out how to deal with that and decided to continue anyway, could that be the problem?

Try apt update again and reinstall the packages. Apt will block non-verified package installs so it could be a broken installation. Make sure virtualization is enabled in your bios.

That worked. But now I am getting a problem with Workstation startup. When trying to start it I am getting an error - “internal error: process exited while connecting to monitor: [TIME] qemu-system-i386: at most 2047 MB RAM can be simulated”
I have 8 GB RAM and I’ve allocated more RAM to WS but no success.

edit: my processor supports 64-bit

This seems to indicate you are running a 32 bit userland on the host. Try installing x64 version of your iso from scratch or give one of these 2 guides a try for migrating form 32 to 64 bit:

https://stbuehler.de/blog/article/2017/06/28/debian_stretch__upgrade_32-bit_to_64-bit.html

https://wiki.debian.org/Migrate32To64Bit