README.org: Add section "Running Operating System in VM for testing"

This commit is contained in:
Collin J. Doering 2023-03-03 23:31:52 -05:00
parent a0b95e3c9a
commit 1bf10a324c
Signed by: rekahsoft
GPG Key ID: 7B4DEB93212B3022
1 changed files with 7 additions and 1 deletions

View File

@ -146,10 +146,16 @@ Many times its useful to verify that a change to a system configuration will bui
prior to deploying it. ~guix system build~ is meant for exactly this, and can be run as
follows.
#+begin_src bash
#+begin_src shell
guix time-machine -C channels.scm -- system build -L .guix -e '(@ (rekahsoft guix-config <vms|manual> <target>) %system)'
#+end_src
** Running Operating System in VM for testing
#+begin_src shell
$(guix time-machine -C channels.scm -- system vm -e '(@ (rekahsoft guix-config <vms|manual> <target>) %system)') -m 2G -smp 2 -nic user,model=virtio-net-pci
#+end_src
** Push Based Deployments
#+begin_src shell