Hi !

The guix system vm command should not update /etc/config.scm, just read
it. It will output many things, the last of which is the path to a
script in the store. To run the VM, you need to run the script.

To version-control your config file, just dedicate a directory to it
somewhere in your home (mine is ~/src/FeuillesDeRoot), initialize a git
repository in it (git init) and make a commit each time you make a
change. Then refer to this file for your guix system reconfigure and
guix system vm commands.


Now, what you have here seem to be a XY problem
https://en.wikipedia.org/wiki/XY_problem

for your personal machine, you would be better off just using guix
system reconfigure, and deal with the problems as they come, as you can
always boot back up on a previous system generation.

DO NOT EVER DELETE PREVIOUS SYSTEM GENERATIONS BEFORE REBOOTING INTO
YOUR NEW SYSTEM.

Ask me how I know not to do that ;-)

The only case when I test my changes in a VM is when I'm upgrading a
server which hosts services that should not get offline. Otherwise I
don't bother, the system updates, or it doesnt (guix updates are
atomic), and if it does update to a funny state, I can reboot to a known
good state.

I hope I was clear. Please do not hesitate to ask follow-up questions.

Cheers,

Edouard.



gfp <[email protected]> writes:

> Hi,
>
> I would like to check my config.scm file after I made some changes.
> How can I do that?
>
> 1.
> in my German manual (probably an older version) it says to run:
>
> guix system vm /etc/config.scm
>
> so that a file
> e.g. /gnu/store/4nl3xkmbpy1h3lwxvj9b54n24xkq1q0k-run-vm.sh
> is created
> which would open a vm to check my config.scm
>
> when doing a
> guix system vm /etc/config.scm
> it updated my config.scm
> but did not open a vm.
> Do I have to configure my vm somehow for that?
>
> I have already configured a vm and can run Trisquel on it.
>
> 2.
> in the english manual it says
> I have to:
>
> The normal way to change the system configuration is by updating this file and
> re-running guix system reconfigure.
>
> I did this already.
>
> 3.
> How can I put my config.scm under version control, and how to check the
> versions?
>
> Note: We recommend that you keep this my-system-config.scm file safe and under
> version control to easily track changes to your configuration.
>
> thanks
>
> Gottfried
>
> [2. OpenPGP public key --- application/pgp-keys; 
> OpenPGP_0xD9E413C6C4BB32CE.asc]...

Reply via email to