From c4660f8437358e5f3b9eacb4543d029d4ba87ae3 Mon Sep 17 00:00:00 2001 From: Samuel Hentschel Date: Mon, 8 May 2017 23:03:18 -0400 Subject: [PATCH] Add -u root option to the qvm-run command on line 405, changed Having --- configuration/salt.md | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/configuration/salt.md b/configuration/salt.md index 765373eb..5b847b05 100644 --- a/configuration/salt.md +++ b/configuration/salt.md @@ -381,19 +381,18 @@ VM which provides network to the given VM The output for each VM is logged in `/var/log/qubes/mgmt-VM_NAME.log`. If the log does not contain useful information: -1. Stop `qubesctl` using Ctrl-z -2. Run `sudo qubesctl --skip-dom0 --target=VM_NAME state.highstate` -3. When your VM is being started (yellow) press Ctrl-z on qubesctl. -4. Open terminal in disp-mgmt-VM_NAME. -5. Look at /etc/qubes-rpc/qubes.SaltLinuxVM - this is what is +1. Run `sudo qubesctl --skip-dom0 --target=VM_NAME state.highstate` +2. When your VM is being started (yellow) press Ctrl-z on qubesctl. +3. Open terminal in disp-mgmt-VM_NAME. +4. Look at /etc/qubes-rpc/qubes.SaltLinuxVM - this is what is executed in the management VM. -6. Get the last two lines: +5. Get the last two lines: $ export PATH="/usr/lib/qubes-vm-connector/ssh-wrapper:$PATH" $ salt-ssh "$target_vm" $salt_command Adjust $target_vm (VM_NAME) and $salt_command (state.highstate). -7. Execute them, fix problems, repeat. +6. Execute them, fix problems, repeat. ## Known Pitfalls @@ -402,10 +401,10 @@ If the log does not contain useful information: The fedora-24-minimal package is missing the `sudo` package. You can install it via: - $ qvm-run -p vmname 'dnf install -y sudo' + $ qvm-run -p -u root fedora-24-minimal-template 'dnf install -y sudo' The `-p` will cause the execution to wait until the package is installed. -Having `sudo` is important when using a state with `cmd.run`. +Having the `-p` flag is important when using a state with `cmd.run`. ### Disk Quota Exceeded (When Installing Templates)