help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Correct way to protect `guix system vm` invocations from garbage col


From: Julien Lepiller
Subject: Re: Correct way to protect `guix system vm` invocations from garbage collection?
Date: Sat, 06 Jan 2024 08:33:18 +0100
User-agent: K-9 Mail for Android

Hi Ben,

If by "as a service", you mean started by the Shepherd, you should be good: the 
vm path will become alive as it's part of the system.

Another solution would be to make it a gc root, which you can do by symlinking 
it in /var/guix/gc-roots

Le 6 janvier 2024 00:31:05 GMT+01:00, Ben Weinstein-Raun <root@benwr.net> a 
écrit :
>Hello!
>
>
>I'm working on setting up permanent virtual machines to run as services.
>In order for this to work, I think I need to be sure that the various
>inputs to the vm runner script are kept alive. This includes the kernel,
>the initrd, and the qemu binary.
>
>
>What's the easiest way to permanently mark an arbitrary store file (in
>this case, the `...-run-vm.sh` script) as "alive"? e.g. is there a way
>to add it to my user's profile, or some other gc-root? Or add it to a
>new profile altogether?
>
>Thanks!
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]