Where is update-grub?

494 views
Skip to first unread message

Pete Howell

unread,
Nov 3, 2015, 7:22:16 PM11/3/15
to qubes-users
I've just updated the /etc/default/grub file, but there is no update-grub command in Qubes.  How do I update grub??

Marek Marczykowski-Górecki

unread,
Nov 3, 2015, 7:34:45 PM11/3/15
to Pete Howell, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Tue, Nov 03, 2015 at 04:22:16PM -0800, Pete Howell wrote:
> I've just updated the /etc/default/grub file, but there is no update-grub
> command in Qubes. How do I update grub??

Sorry, Fedora doesn't have such tool, you need to manually call:
sudo grub2-mkconfig -o /boot/grub2/grub.cfg

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCAAGBQJWOVKeAAoJENuP0xzK19cs5gEH/2iO9CV4RtqXoAeYYpXdLgtS
rQroC1MTsKUwzbqKPG6CkCF+41w0OHYWUPf9Il0VwsIY8fiNZHxg4GeGtEIGPQkM
cFCo8mPdtsPS3IrHUT/qtiaG+pSmWyQtq4pEVf0X2O7VRjHTd/xXH+2XeuZgxkEt
Ak6sAKNA7j1euAH2luBTRVsdao0gDafzIMMwjGXs6S8O1SNBNCjD/K5z9ODDwjEg
n1LObsG5koMz2yTtny+Q96s2BcNtatkEyftB9vZghY4ZMZf/BCFq8Z8HbwR8cJFh
3vIz5k3/VBoseN2LTgzFu0rmXsOiE8AOH4LXfkDTj8p8GJwUbnMDdeiHJ+oBsnk=
=qGuJ
-----END PGP SIGNATURE-----

Pete Howell

unread,
Nov 3, 2015, 7:52:31 PM11/3/15
to qubes-users, w.peter...@gmail.com
Thanks!

I'm going through the Tuning Xen guide at http://wiki.xenproject.org/wiki/Tuning_Xen_for_Performance, and I had another question.  Where would one set the option "cpus="all,^0-1" on the guests?  In /var/lib/qubes/qubes.xml maybe?  Is there a way to make the change through a GUI?

Marek Marczykowski-Górecki

unread,
Nov 3, 2015, 7:58:34 PM11/3/15
to Pete Howell, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Tue, Nov 03, 2015 at 04:52:30PM -0800, Pete Howell wrote:
> Thanks!
>
> I'm going through the Tuning Xen guide at
> http://wiki.xenproject.org/wiki/Tuning_Xen_for_Performance, and I had
> another question. Where would one set the option "cpus="all,^0-1" on the
> guests? In /var/lib/qubes/qubes.xml maybe? Is there a way to make the
> change through a GUI?

In Qubes guest configs are automatically generated. Additionally R3.0
uses libvirt, not xl directly.
This all means that standard Xen configuration guides cannot be applied
directly. But you can still make some changes using libvirt syntax.

1. Go to /var/lib/qubes/appvms/NAME_OF_THE_VM
2. Copy NAME_OF_THE_VM.xml to some other file - for example custom.xml
3. Apply changes there
4. Start the VM using that config with qvm-start
- --custom-config=/FULL/PATH/TO/CONFIG NAME_OF_THE_VM

Of course replace NAME_OF_THE_VM and /FULL/PATH/TO/CONFIG with
appropriate values.
There is no way to make this permanent, you'll need to always add
- --custom-config switch to that VM, when you want to use your
modifications.

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCAAGBQJWOVgrAAoJENuP0xzK19csi4gH/RYDprfKDxLUDAkk+93mCXO8
z+VyFfJXHLa30mHjovXYS6oaf9Ob5hykf9CTXP3U4GL+igu8IKLfk733x1I1zE8/
tnFP2d9U2V/h3+rIP+MAfZlKboe3U3m9AUX894ii9mTQTp0yNlewbtMpnbVNRzhf
UvCRvT4WW7NAKZq0VqTV4ZdKT3VBG/C6QyhCzzJ5UNriIvx91ye6l2QwgAGKMdUq
M607F6NNX57eQztU7Ad1iug2vBI9sUtvhPqgDIKUBgwN++OqPC5aPhvioCqYP67E
cGoAdZ+RXKHKfwbeS0UD+GICP++ket4kOoEEXEnOXVMP3RNLLFG01PJlommM1lw=
=yIEj
-----END PGP SIGNATURE-----

Marek Marczykowski-Górecki

unread,
Nov 4, 2015, 2:10:05 AM11/4/15
to Pete Howell, qubes-users
On Tue, Nov 03, 2015 at 06:03:07PM -0700, Pete Howell wrote:
> I see a .conf file, but no .xml file in there.

Ah, yes, .conf.

> Would you be willing to
> consider an option under the Advanced tab to enter Xen-specific options
> for more permanent customizations in a future release?

We have a lot of other things to do, but if someone would implement
this, we'll accept such patches.
Also note that the config is in libvirt format, not all the Xen options
are available there.
Reply all
Reply to author
Forward
0 new messages