Qubes RAM Issue

Here you go…

I can’t seem to get into the efi folder, and when i google set root password in qubes there are a lot of people shouting how you don’t do that…



it here, just append sudo into the front of command (qubes dom0 are passwordless root)

I’m afraid that posting images is no use to me - it would be helpful if
you could actually **describe" the contents of those images.

I don’t understand why you would want to set a root password. You can
access root by issuing sudo su -. That will gain you access to the efi
directory.

1 Like
[q@dom0 ~]$ sudo su -
[root@dom0 ~]# pushd /etc/default/
/etc/default ~
[root@dom0 default]# ls -laNF
total 36
drwxr-xr-x   2 root root  4096 Jan 27 21:41 ./
drwxr-xr-x 107 root root 12288 Jan  6 19:57 ../
-rw-r--r--   1 root root   675 Jan 27 21:41 grub
-rw-r--r--   1 root root   672 Jan 21  2020 grub.bak
-rw-r--r--   1 root root  1756 Aug 16  2017 nss
-rw-r--r--   1 root root  1561 Feb  5  2016 rmt
-rw-r--r--   1 root root   119 Jun 14  2016 useradd
[root@dom0 default]#
[root@dom0 default]# cp grub grub-20220127-2144.bak
[root@dom0 default]# vi grub  #nano grub # choose your editor

Find the line with dom0_mem=max:4096 replace 4096 with 2048 or 1536

Forgot to mention that grub has to rebuilt:

[root@dom0 default]#  ls -laNF /boot/grub2/grub*
[root@dom0 default]#  grub2-mkconfig -o /boot/grub2/grub.cfg
[root@dom0 default]#  ls -laNF /boot/efi/EFI/qubes/grub*
[root@dom0 default]#  grub2-mkconfig -o /boot/efi/EFI/qubes/grub.cfg
2 Likes

Unman has it!

Or rather, I had forgotten the sudo su - command.
Nested within the EFI folder was xen.cfg, which had already the dom0 max mem setting.

Dom0 now trundling along on 1506M and is no longer hogger 25% of the total ram.

Thanks all!

You can’t sudo cd. That does nothing.

You have to sudo bash then cd in that shell.