When I start Gateway from Virt-Manager (KVM), the terminal appears and not the graphical interface

Hello, very good community. Look, since yesterday I have Virt-Manager installed with Whonix, I configured everything, and after that, when I try to start the Gateway machine, the terminal appears, asking for the user and password. When I enter them correctly, I get what is shown in the following image

And then when I try to start the workstation, I get the following error:
Error al iniciar dominio: cannot set CPU affinity on process 17379: Argumento inválido

Traceback (most recent call last):

  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 108, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
    ret = fn(self, *args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/virt-manager/virtManager/object/domain.py", line 1402, in startup
    self._backend.create()
  File "/usr/lib/python3/dist-packages/libvirt.py", line 1373, in create
    raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: cannot set CPU affinity on process 17379: Argumento inválido

Oh, and by the way, I have Debian 12 (with the latest update).

I would appreciate it if someone could help me. :pray:

1 Like

You sure you have downloaded a newly fresh version?

1 Like

hello,
Yes, I definitely have the Whonix-Xfce-17.0.3.0.Intel_AMD64.qcow2.libvirt.xz, it’s supposed to most recent version.
I used this tutorial to download it, I don’t know if it’s correct or if there’s anything that needs to be changed because I followed all the steps exactly as the tutorial said.
this is a tutorial:

Once you have installed Debian, you will need to perform these operations to get it ready before converting it to Kicksecure.

Update the system:
$ su - apt update apt full-upgrade

Install sudo and adduser:
apt install --no-install-recommends sudo adduser

Create the console group:
/usr/sbin/addgroup --system console

Add the main user to the sudo and console groups:
/usr/sbin/adduser user console
/usr/sbin/adduser user sudo

Reboot the system:
`reboot

Installation of Kicksecure

With Debian up and running, you can now convert it to Kicksecure.

Start by installing the extrepo package and then enable the Kicksecure repository:
sudo apt install extrepo
sudo extrepo enable kicksecure

Now install the kicksecure-xfce-host package:
sudo apt install --no-install-recommends kicksecure-xfce-host

Enable the Kicksecure repository and disable it in extrepo:
sudo repository-dist --enable --repository stable
sudo extrepo disable kicksecure

Since sources.list is replaced in /etc/apt/sources.list.d/debian.list, delete the file or move it elsewhere:
sudo mv /etc/apt/sources.list ~/
sudo touch /etc/apt/sources.list

Now Kicksecure is ready to use. Additional information:

Preparation of KVM

To install KVM, start by adding your user to the sudo group and reboot the session or system:
su -
adduser user sudo && /usr/sbin/reboot

Update the package list from the repositories and install the necessary packages to make KVM work:
sudo apt update
sudo apt install --no-install-recommends qemu-kvm qemu-system-x86 libvirt-daemon-system libvirt-clients virt-manager gir1.2-spiceclientgtk-3.0 dnsmasq-base qemu-utils iptables

Add your user to the KVM groups:
sudo adduser user libvirt
sudo adduser user kvm

Reboot the system again:
$ sudo reboot

Make sure the KVM network is enabled and online:
sudo virsh -c qemu:///system net-autostart default
sudo virsh -c qemu:///system net-start default

Installation of Whonix

Unpack the downloaded file:
tar -xvf Whonix*.libvirt.xz

You will need to accept the license agreement. To do this, create the following file in the same directory where you unpacked the files.
touch WHONIX_BINARY_LICENSE_AGREEMENT_accepted

Import and activate the virtual networks:
sudo virsh -c qemu:///system net-define Whonix_external*.xml
sudo virsh -c qemu:///system net-define Whonix_internal*.xml
sudo virsh -c qemu:///system net-define Whonix_internal*.xml
sudo virsh -c qemu:///system net-start Whonix-External
sudo virsh -c qemu:///system net-autostart Whonix-Internal
sudo virsh -c qemu:///system net-start Whonix-Internal

Import Whonix Gateway and Workstation:
sudo virsh -c qemu:///system define Whonix-Gateway*.xml
sudo virsh -c qemu:///system define Whonix-Workstation*.xml

Move the virtual storage files to the default path where images are stored for libvirt:
sudo mv Whonix-Gateway*.qcow2 /var/lib/libvirt/images/Whonix-Gateway.qcow2
sudo mv Whonix-Workstation*.qcow2 /var/lib/libvirt/images/Whonix-Workstation.qcow2

You can now start both systems from the virt-manager graphical interface. If you prefer, you can edit the virtual hardware beforehand by opening the window of a machine.

1 Like

cannot set CPU affinity on process 1994: invalid argument

Duplicate of:

documented here just now:
cannot set CPU affinity on process 1994: invalid argument



If you get a terminal rather than graphical desktop environment:
Did you reduce RAM for the VM? If yes, if RAM is too low, no desktop environment will be started. References:

1 Like

Okay, thank you very much for the clarification, my friend.
As always, loyal to Whonix. I changed the configuration of Whonix Gateway to 1-2GB of RAM and in the Workstation to 2-5GB of RAM.
Now the Whonix Gateway runs correctly for me.

Now what I need is the Whonix Workstation, and when I try to run it, I get this:
Error al iniciar dominio: cannot set CPU affinity on process 6627: Argumento inválido

Traceback (most recent call last):
File “/usr/share/virt-manager/virtManager/asyncjob.py”, line 72, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File “/usr/share/virt-manager/virtManager/asyncjob.py”, line 108, in tmpcb
callback(*args, **kwargs)
File “/usr/share/virt-manager/virtManager/object/libvirtobject.py”, line 57, in newfn
ret = fn(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/share/virt-manager/virtManager/object/domain.py”, line 1402, in startup
self._backend.create()
File “/usr/lib/python3/dist-packages/libvirt.py”, line 1373, in create
raise libvirtError(‘virDomainCreate() failed’)
libvirt.libvirtError: cannot set CPU affinity on process 6627: Argumento inválido

Could you please tell me why this is happening? And thank you very much, Whonix, for your work. :heart:

1 Like

Exactly that was already answered.

3 Likes

Its not the latest image version…

Please download the latest version.

1 Like