News for hackers. Stuff that matters.
Re:Qubes OS: A reasonably secure operating system by Nextgrid on Wednesday March 23, 2022 @07:54AM (#30777509)
I’m using this as a daily driver.

It’s usable and the security benefits are definitely important when working with multiple security domains (separate clients each with their own confidential data and third-party dependencies, where you don’t want one client’s malicious NPM dependency affecting the other).

However, there are cons. It’s only really usable in a stationary environment; it completely kills battery life and even basic tasks such as (non-HD) video display maxes out a single CPU core so it’s just not worth trying on a laptop. Hibernation doesn’t seem to be supported by default which becomes risky when combined with the extreme power usage.

Re:Qubes OS: A reasonably secure operating system by isodude on Wednesday March 23, 2022 @09:53AM (#30778466)
I've been using this as a daily driver for at least 5 years now.

Only laptops so far, with 4+ cores and 32+GB RAM and 500G+ disk.

It was working fine on my Lenovo T470p, and it runs pretty sweet on Lenovo P14s. Except that suspend is not working. ( Hopefully is resolved soon ).

It's always a problem with battery, but with suspend working fine it's quite easy to get a solid 30 days uptime even though you move around. ~3h runtime with ~10 vms running.

I wouldn't say it's perfect, but I wouldn't choose anything else if I would do it all over. Totally worth the extreme learning curve ;-)

Re:Qubes OS: A reasonably secure operating system by Melatonic on Wednesday March 23, 2022 @01:18PM (#30780850)
I may have to try this on my old T420 - will not be nearly as fast as your stuff but it does have 12GB of ram and a decent SSD. I have the dedicated Nvidia graphics card though which sounds like it may cause problems.....
Re:Qubes OS: A reasonably secure operating system by isodude on Thursday March 24, 2022 @02:27AM (#30786855)
I think that it would run fantastic, my Lenovo had dedicated Nvidia graphics and it worked like a charm. The AMD APU (Vega graphics) have been a horror show.
Re:Qubes OS: A reasonably secure operating system by jamal-kumar on Wednesday March 23, 2022 @01:31PM (#30781023)
I used it on a 2013 i7 laptop some years ago successfully as my daily driver for a while by buying a couple extended capacity batteries and swapping them out when they were spent. Could get work done on the beach like that.

Now you can't find that kind of computer with swappable batteries anymore and I have work in 3D to do, I don't trust Intel anymore and try to buy AMD, so I'm stuck with windows haha how time have changed.

I'd buy another box capable of running this if I needed a VM lab type setup again. Very cool for that.

Re:Qubes OS: A reasonably secure operating system by teruakohatu on Wednesday March 23, 2022 @04:46PM (#30783124)
A Usb-c battery with 60W output would certainly extend a modern laptop even if it won't be able to fully supply the power requirment for a workstation-type laptop.
Re:Qubes OS: A reasonably secure operating system by jamal-kumar on Thursday March 24, 2022 @10:26AM (#30790246)
Nice tip I'm going to try that actually
Re:Qubes OS: A reasonably secure operating system by thinkmassive on Wednesday March 23, 2022 @10:55AM (#30779086)
Is it worth trying on a laptop with less RAM, like 8 or 16gb?
Re:Qubes OS: A reasonably secure operating system by isodude on Wednesday March 23, 2022 @11:13AM (#30779297)
To make Firefox happy inside a VM it takes up about 2GB RAM. Dom0 eats up 1G RAM. sys-net, sys-firewall, sys-usb eats up another 1G RAM.

My collegue actually runs on 16G, but he has to consider memory when starting a VM, but it's doable.

You can run on 8G, but it wouldn't be a good daily driver. But maybe if you have a very specific purpose?

24G+ is comfortable. I'm currently at 48G and have 43G "mapped" to VMs. It's very easy to use a lot of RAM!

Re:Qubes OS: A reasonably secure operating system by fsflover on Wednesday March 23, 2022 @11:19AM (#30779352)
You can drastically decrease the memory footprint if you use minimal templates: https://www.qubes-os.org/doc/templates/minimal. But even with normal templates, one can run several VMs, and it's much more secure (and even convenient) than an ordinary OS.
Re:Qubes OS: A reasonably secure operating system by lapinot on Wednesday March 23, 2022 @11:23AM (#30779412)
sys-net, sys-firewall and other administrative vms should slowly migrate to unikernels instead of running linux, which should help with ram usage. The mirage.io project seems to build a couple qubes vms, for example https://github.com/mirage/qubes-mirage-firewall is a firewall which they indicate to give 64Mb of ram.

edit: maybe i'm being a bit optimistic for sys-net, which is the vm hosting the driver for the network card: these drivers are included in the linux tree and would need to be extracted and packaged into an unikernel. But for every non-driver vm it "should be easy" to get an unikernel implementation (drivers for paravirtual devices are easy to write).

Re:Qubes OS: A reasonably secure operating system by Sakos on Wednesday March 23, 2022 @12:45PM (#30780416)
When I tried it 16GB was tight but doable. I would've preferred more, because I spent more time than I wanted micromanaging VM sizes.
Re:Qubes OS: A reasonably secure operating system by fsflover on Wednesday March 23, 2022 @11:07AM (#30779218)
Re:Qubes OS: A reasonably secure operating system by orblivion on Wednesday March 23, 2022 @08:48AM (#30777887)
I use it on my Librem-15 v3. I can confirm that it's a PITA as far as performance. One "nice" thing is that if a process makes your VM unresponsive, it's just about always contained to that VM. You can kill it and restart it and not interrupt anything else.

The other problem is memory. I have to decide to between Signal Desktop and development sometimes.

But it's my main machine for what I care. I love the peace of mind running random things if the need comes up. For more intensive stuff, media games etc, I have a previous machine running Ubuntu.

Re:Qubes OS: A reasonably secure operating system by ReactiveJelly on Wednesday March 23, 2022 @09:01AM (#30778015)
> if a process makes your VM unresponsive, it's just about always contained to that VM.

I still wonder why kernels can't just handle this properly.

I've seen it in both Windows and Linux systems, something takes all the CPU or I/O or RAM, and the UI is so starved that you can't kill it.

Shouldn't that already be handled by things like virtual memory, and the kernel scheduler? Why do modern OSes, that have to protect against such complicated attacks like Spectre, struggle to do what the very first multi-tasking kernels promised before I was born?

Re:Qubes OS: A reasonably secure operating system by michaelmrose on Wednesday March 23, 2022 @01:00PM (#30780613)
Windows has a single official UI and a low level handling of a key press to bring up an element that must ideally remain responsive.

Linux has many and a set of low level responses to keybondings that must remain responsive that don't have a UI nor ability to kill individual applications.

To be fair in current systems Linux UIs normally remain responsive until memory exhaustion which is handled very badly. You will probably reboot before the oom killer assassinates the offender. The fix is a user space daemon like earlyoom which activates at a configurable level and targeting rather than absolute exhaustion when even killing the offender is challenging and usage has been hard for tens of minutes.

You or your environment can also set your UI process to a higher priority as far as processing and io.

If your UI doesn't remain responsive it's because your distro isn't using existing tools to achieve this.

Re:Qubes OS: A reasonably secure operating system by folmar on Wednesday March 23, 2022 @03:34PM (#30782354)
If you are at the physiacl keyboard you can run the oom killer via the sysrq key. I would say that the kernel oom killer is quite usable since the last few years but is triggered too late - especially for applications like Firefox that handle malloc failures gracefully.
Re:Qubes OS: A reasonably secure operating system by chupasaurus on Wednesday March 23, 2022 @03:44PM (#30782462)
oomkiller wouldn't help if there's an I/O overload (good old friend Linux kernel bug #12309) since memory usage is fine, just your system can't read anything from network or storage.
Re:Qubes OS: A reasonably secure operating system by ShowalkKama on Wednesday March 23, 2022 @09:58AM (#30778509)
this is what SysReq is for.

>The magic SysRq key is a key combination understood by the Linux kernel, which allows the user to perform various low-level commands regardless of the system's state. It is often used to recover from freezes, or to reboot a computer without corrupting the filesystem.[1] Its effect is similar to the computer's hardware reset button (or power switch) but with many more options and much more control.

https://wikipedia.org/wiki/Magic_SysRq_key?lang=en

Re:Qubes OS: A reasonably secure operating system by codethief on Wednesday March 23, 2022 @02:37PM (#30781736)
Not really. The UI will still be unresponsive and the only thing you can do is reboot the system safely using Magic SysRq. What OP is asking about is why the UI is unresponsive in the first place.
Re:Qubes OS: A reasonably secure operating system by lolc on Wednesday March 23, 2022 @05:32PM (#30783700)
When I ran memory-intense tests on low ram, I had the sysrq sequence for the oom-killer at my fingertips. When the system would start thrashing, it was a quick way back to safety.
Re:Qubes OS: A reasonably secure operating system by aidenn0 on Wednesday March 23, 2022 @11:02AM (#30779169)
It's levels of abstraction. The kernel does not know that swapping out X11/window-manager/gnome-terminal/whatever will make your system unusable.

There is mlockall() but it's a loaded footgun by default, and is rlimit-ed by default because it's not something you want users on a multiuser system to be able to do willy-nilly.

Re:Qubes OS: A reasonably secure operating system by willcipriano on Wednesday March 23, 2022 @09:18AM (#30778142)
The task manager in Windows has a higher priority than everything else if I recall correctly. Its not pure ram or cpu usage that causes you to be unable to reach it but waiting for blocking sys calls I'd suspect.
Re:Qubes OS: A reasonably secure operating system by seanw444 on Wednesday March 23, 2022 @09:43AM (#30778357)
Isn't this what a microkernel is supposed to accomplish?
Re:Qubes OS: A reasonably secure operating system by aidenn0 on Wednesday March 23, 2022 @10:54AM (#30779070)
Microkernel vs monolith has very little relation to resource (time and space) allocation, other than the fact that a microkernel is going to have an easier time with preventing runaway space usage of kernel services.
Re:Qubes OS: A reasonably secure operating system by orblivion on Wednesday March 23, 2022 @09:13AM (#30778104)
Yeah, beats me.
Re:Qubes OS: A reasonably secure operating system by fsflover on Wednesday March 23, 2022 @08:00AM (#30777547)
Indeed the battery life is shorter than with normal Linux, but it's fine with me. Concerning the hibernation, see this: https://github.com/QubesOS/qubes-issues/issues/2414.