mirror of
https://github.com/Qubes-Community/Contents.git
synced 2025-01-05 12:31:00 -05:00
Merge pull request #157 from sajkbflksadbfkasdjf/master
Deleted some outdated info in the guide, adding some important stuff
This commit is contained in:
commit
3afa6aa142
@ -4,30 +4,11 @@
|
|||||||
Guide status:
|
Guide status:
|
||||||
- 4.0.4 :
|
- 4.0.4 :
|
||||||
- 4.1-beta1 : validated (2021-07-31) by the commit author of this line.
|
- 4.1-beta1 : validated (2021-07-31) by the commit author of this line.
|
||||||
|
- 4.1rc3 : validated (2022-01-11) by the commit author of this line.
|
||||||
|
|
||||||
## Steps
|
## Steps
|
||||||
### 0. Installing the 'fedora-33-minimal' Qubes template
|
|
||||||
|
|
||||||
Note: an alternative is using an fedora-{33,34} appVM.
|
### 1. Open a non-root ($) terminal in the 'fedora-34' TemplateVM.
|
||||||
|
|
||||||
#### Open a terminal in Dom0
|
|
||||||
|
|
||||||
Large download (~639MB); if using 'sys-whonix' as the Dom0 UpdateVM then temporarily swap to 'sys-firewall' (to speed-up download speeds).
|
|
||||||
```console
|
|
||||||
# qubes-dom0-update qubes-template-fedora-33-minimal
|
|
||||||
```
|
|
||||||
Keep in mind what Qubes OS version your installation is; used when building Qubes Components and Template(s).
|
|
||||||
```console
|
|
||||||
# cat /etc/qubes-release
|
|
||||||
```
|
|
||||||
```
|
|
||||||
# qvm-run -u root fedora-33-minimal xterm
|
|
||||||
# dnf install qubes-core-agent-passwordless-root qubes-core-agent-networking iproute
|
|
||||||
# exit
|
|
||||||
```
|
|
||||||
|
|
||||||
___
|
|
||||||
### 1. Open a non-root ($) terminal in the 'fedora-33-minimal' TemplateVM.
|
|
||||||
> **How to see whether the `'GNUMAKEFLAGS'` or `'MAKEFLAGS'` environment variable is used: \
|
> **How to see whether the `'GNUMAKEFLAGS'` or `'MAKEFLAGS'` environment variable is used: \
|
||||||
`$ strings /usr/bin/make | grep MAKEFLAGS` \
|
`$ strings /usr/bin/make | grep MAKEFLAGS` \
|
||||||
GNU Make's `-l` set to same value as `-j` prevents CPU overcommitment.**
|
GNU Make's `-l` set to same value as `-j` prevents CPU overcommitment.**
|
||||||
@ -402,53 +383,31 @@ $ ln -sr pulsecore-14.1 pulsecore-14.2
|
|||||||
|
|
||||||
### Known issues
|
### Known issues
|
||||||
|
|
||||||
### sudo: effective uid is not 0
|
### xenstore-read: xs_open: permission denied
|
||||||
If you get the below error with fedora 34:
|
If the following error appears:
|
||||||
|
<details><summary>Click here to show error message</summary>
|
||||||
<details><summary>Details of the `sudo: effective uid is not 0` error</summary>
|
|
||||||
|
|
||||||
```
|
```
|
||||||
==> Making package: qubes-vm-xen 4.14.2-1 (Sat Jul 31 15:17:57 2021)
|
+ umask 022
|
||||||
==> Checking runtime dependencies...
|
+ cd /home/user/qubes-builder/qubes-src/linux-template-builder
|
||||||
==> Installing missing dependencies...
|
+ rm -rf /home/user/qubes-builder/qubes-src/linux-template-builder/rpmbuild/BUILDROOT/qubes-template-archlinux-4.0.6-202111300407.noarch
|
||||||
sudo: effective uid is not 0, is /usr/sbin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?
|
+ RPM_EC=0
|
||||||
==> ERROR: 'pacman' failed to install missing dependencies.
|
++ jobs -p
|
||||||
==> Missing dependencies:
|
+ exit 0
|
||||||
-> python
|
xenstore-read: xs_open: Permission denied
|
||||||
-> bridge-utils
|
|
||||||
-> python-lxml
|
|
||||||
-> lzo
|
|
||||||
-> yajl
|
|
||||||
==> Checking buildtime dependencies...
|
|
||||||
==> Installing missing dependencies...
|
|
||||||
sudo: effective uid is not 0, is /usr/sbin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?
|
|
||||||
==> ERROR: 'pacman' failed to install missing dependencies.
|
|
||||||
==> Missing dependencies:
|
|
||||||
-> wget
|
|
||||||
-> git
|
|
||||||
-> bin86
|
|
||||||
-> dev86
|
|
||||||
-> acpica
|
|
||||||
-> yajl
|
|
||||||
-> pixman
|
|
||||||
==> ERROR: Could not resolve all dependencies.
|
|
||||||
make[2]: *** [/home/user/qubes-builder/qubes-src/builder-archlinux/Makefile.archlinux:138: dist-package] Error 8
|
|
||||||
make[1]: *** [Makefile.generic:191: packages] Error 1
|
|
||||||
make: *** [Makefile:259: vmm-xen-vm] Error 1
|
|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
The partition used for the build process needs the suid option, in the qubes-builder remount script.
|
During the template building process an error ocurred, corrupting the group id of the /dev/xen/* files.
|
||||||
In the `/home/user/qubes-builder/scripts/remount` file change the line:
|
To fix this you'll need to assign the correct permissions, so you'll have to enter the following <b> while `make template` is running: </b>
|
||||||
```
|
```console
|
||||||
sudo mount "$mountpoint" -o dev,remount
|
sudo chgrp qubes /dev/xen/*
|
||||||
```
|
|
||||||
with:
|
|
||||||
```
|
|
||||||
sudo mount "$mountpoint" -o dev,suid,remount
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Debugging the Qubes-ArchLinux runtime
|
## Debugging the Qubes-ArchLinux runtime
|
||||||
If you are able to launch a terminal and execute command, utilize your Arch-fu to fix the issue. \
|
If you are able to launch a terminal and execute command, utilize your Arch-fu to fix the issue. \
|
||||||
If unable to launch a terminal, shutdown the qube, create a new DisposableVM, [mount an Arch Linux ISO in a DisposableVM](https://www.qubes-os.org/doc/mount-lvm-image/), chroot to it, and then use your Arch-fu. \
|
If unable to launch a terminal, shutdown the qube, create a new DisposableVM, [mount an Arch Linux ISO in a DisposableVM](https://www.qubes-os.org/doc/mount-lvm-image/), chroot to it, and then use your Arch-fu. \
|
||||||
|
Loading…
Reference in New Issue
Block a user