On Sat, June 4, 2016 13:58,
unc...@sigaint.org wrote:
> On Sat, June 4, 2016 12:35, "Holger Levsen" <
hol...@layer-acht.org> wrote:
>
>> did you try XFCE instead of KDE? XFCE is much more ressource friendly.
>
>
> Thanks for the tip! I must try a full install; unfortunately that will
> take me offline for some hours, for obvious reasons...
I manually configured a 4GiB encrypted swap partition on an old hard disk,
and separately an encrypted LVM for Qubes, plus /boot and biosboot.
The good news is that Qubes R3.1 starts, and LXDE is smooth.
The bad news is that Qubes doesn't use the swap, and important things fail
due to out-of-memory.
I think the rest is best explained in chronological order.
In the Qubes installer, I elected to configure all the default qubes plus
the option to route all system/update traffic through Whonix
("experimental"). During the final stage when it shows a progress bar and
configures various qubes, I received the following modal dialog while it
was configuring networking:
--- begin dialog box
[title bar: "[Dom0]"]
Setting up networking failure!
['/usr/sbin/service', 'qubes-netvm', 'start'] failed:
Redirecting to /bin/systemctl start qubes-netvm.service
Job for qubes-netvm.service failed. See 'systemctl
status qubes-netvm.service' and 'journalctl -xn' for
details.
[Close]
--- end dialog box
When I hit "Close", the installer immediately finished. I do not know
whether it just bailed, and left important configuration undone, or if it
really finished. Thence to the Qubes login screen.
Running "systemctl status -l qubes-netvm.service", the pertinent lines
read in pertinent part (sorry, all of this is manually copied and
retyped):
--- begin quote
ERROR: ERROR: insufficient memory to start VM 'sys-firewall'
qubes-netvm.service: main process exited, code=exited, status=1/FAILURE
--- end quote
On startup, exactly two qubes are running: dom0 and sys-net. top(1)
(which I grit my teeth running in dom0; is it part of the TCB?) shows less
than 30M free memory, and... 0 swap!
Specific questions:
(a) How do I not only add my swap partition, but make Qubes automatically
unlock and use it at boot? I think this start config issue is probably a
Qubes-specific question, because Qubes is not really like other Linux
distributions in these under-the-hood system things. ;-)
(b) Related to (a), how do I make sure in the Qubes startup configuration
that it unlocks both the LVM partition and the swap partition with the
same LUKS passphrase? It is not good to type the passphrase multiple
times, e.g. in public with shoulder surfers and possibly security cameras
around. (Or better yet, swap with a one-time ephemeral key.)
(c) If I can get sufficient qubes started, how do I verify that all
network traffic (including update traffic) is routed through sys-whonix?
IOW in which qube do I fire up tcpdump(1) or check the logs, and really
get a global view of which packets are coming in/out? I am accustomed to
watching traffic (through pf and on physical interfaces). I just need to
know where in the Qubes intranet to get a global view, *without* risking
compromise to dom0 or another important qube with a tcpdump(1) or
libpcap(3) bug.
Thanks in advance!
Almost no longer,
"Uncubed" (un-uncubed?)