-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On Wed, Nov 21, 2018 at 02:15:00PM +0000, Doesnt Work wrote:
> Thank you all for the direct answers!
Thank you for your valuable feedback!
Below I'll respond directly to the listed issues, but in general feel
free to report them in qubes-issues adding a note its an UX issue. In
many cases the fix is quite easy, especially in Qubes 4.0, but it isn't
always easy to think about all the possible use cases and how users
expect things to work (and whether we should match that expectation, or
clarify documentation and/or UI to direct them in the right direction;
or both).
As for the general direction, we've made deep architectural changes in
Qubes 4.0, which admittedly made some of UI from Qubes 3.x obsolete. But
having refreshed the core code made building UI/UX much simpler. And now
we're focusing on making use of that new base, to make it even better
than it was in 3.x. For example, there are upcoming tools to ease
keeping the system up to date:
https://github.com/QubesOS/qubes-issues/issues/2718
https://github.com/QubesOS/qubes-issues/issues/4085
> However, I'm not just talking about GUI-UX, but cli-UX as well.
> Especially the detailed documentation of commands is usually only valid
> for Qubes 3.X. Errors are rarely helpful but rather are uncaught
> python-errors (qvm-run [something] + CTRL+C = "KeyboardInterrupt Error")
>
> Additionally, tab-completion still doesn't work (which would have to be
> a new feature, but since VM-name-completion works for qvm-copy &
> similar, I am wondering why this wasn't implemented at the cli-level as
> well.)
I've seen some users written bash completion plugins for qvm-* commands.
We'd need to integrate one. For example this one:
https://groups.google.com/forum/#!msg/qubes-users/C1zUZGbVFok/l-akx0p1BQAJ
(or something based on it)
> Let me give examples of the cli-shortcomings:
> Sven Semmler:> -> qvm-ls ... shows your qubes and their state.
> No memory/CPU-usage. Have to use xentop for that. Xentop shows CPU-usage
> per core? I guess? Works to determine most-hungry VM, not managing
> resources.
Current RAM usage should be easy to add to qvm-ls, maybe even list it by
default. As for CPU usage, it is slightly more tricky, as it doesn't
exist as a single data in arbitrary point of time. It is "average CPU
usage over last X sec". As you can see after running xentop, you'll get
actual CPU usage values only after few seconds. We don't want for qvm-ls
to wait that long...
But surely there are ways around this issue. Maybe reading the values
periodically internally and caching it somewhere. Or using much smaller
time slice than xentop.
> > -> qvm-create, qvm-clone, qvm-remove ... are obviousqvm-create has horrible argument-dependencies. e.g. if --template is a
> dvm-template, --class has to be DispVM [everywhere else it's "dispvm"],
> not to mention --property auto_cleanup=True (I don't see the usecase of
> a dispvm without auto_cleanup.)
Well, actually DispVMs with auto_cleanup=False are quite useful too. For
example as sys-usb or sys-firewall:
https://www.qubes-os.org/doc/dispvm-customization/#using-static-disposable-vms-for-sys-
auto_cleanup=True means the VM will be automatically removed after
stopping it. But even with auto_cleanup=False, DispVM's _data_ is
removed when it's stopped. It's just that with auto_cleanup=False, you
can start it again (from a clean state), without having to create it again.
> qvm-run --dispvm [dvm-template] CMD
> fails too often and without obvious reasons for me to count. (Guess it's
> a RAM-problem.)
Oh, indeed after printing "Not enough memory to start domain 'disp...'"
there is a bunch of garbage messages.
> And dvm-template is required, default-dispvm is not used.
This works:
qvm-run --dispvm -- CMD
Something is wrong with arguments parser here...
> btw.:
> qubes-global-settings can't be used from the commandline but opens
> GUI-window.
Command line equivalent is qubes-prefs.
> qvm-copy now opens a window that needs interaction. This is awful for
> copying many files, VM-name has to be typed for every file. Not to
> mention I had some automated scripts that copied some files which are
> now much more cumbersome as well.
But even for old "qvm-copy-to-vm" you've got GUI window to confirm the
operation.
For automated operations, you can edit qrexec policy for qubes.Filecopy
service (/etc/qubes-rpc/policy/qubes.Filecopy) to allow it for given set
of VMs without confirmation. This way, you can use qvm-copy-to-vm and
specify the destination name on the command line.
For example add this rule:
# src # dst # action
mail-personal personal allow
> > -> qvm-usb to assing usb devices
> This was the big improvement (for me) in Qubes 3.2. Credit where credit
> is due, this is awesome!
>
> qvm-block on the other hand ...
> - no attaching of image-files anymore (used to do my backups that way)
You can, if you attach it to loop device first (losetup in that VM).
While this indeed is a useful feature, we've (hopefully temporarily)
removed it as it basically allows to access arbitrary file. This is fine
if you call qvm-block from dom0, where you have ultimate control anyway,
but not so fine when you introduce semi-trusted Management VM.
The "losetup" step is basically a way to whitelist which files can be
mounted.
> - detaching requires full path as well (horrible if blockdevice is in
> dispvm)
What do you mean?
> - documentation of features is especially lacking (e.g. could do
> qvm-block [TARGET] [SOURCE] -f xvdz, now frontend-device is a feature of
> qvm-device I have to look up how to use every time I need it.)
You mean the option is named "-o frontend-dev=xvdz" instead now of "-f xvdz"?
We can add an alias for that...
> >I tried I3
> Tried KDE myself, led to horrible instabilities. (I understand and agree
> with the reasoning to switch away from KDE, but still miss krunner though.)
>
> P.S.: My point here is never something is impossible (except qvm-block
> --attach-file), but rather that is has become cumbersome compared to
> Qubes 3.x, especially 3.1!
>
> sincerely
> GammaSQ
>
- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAlv192QACgkQ24/THMrX
1yyXtQf+LfHdviU59g5PKlPIR3BO00dfb+ZwKKIyVPhy12gkc9rzbiXDWWfvQApS
TYjhkUL6ma+Jns57D+JwjRaDQRkZZrA5ysSlWCV7/NhypvEOcEdmUidSGeaTJZUT
jqPRlC4X52XRJebzatWGBc2W5Jq+qYrq1sQIjIc02j2tDOyawxyL5KvpKV1X0kly
+ixUwAcxZw9Rogh4UtaLuaKNrtRml2uGpT3PKDBen/o/vx+bPiXsyU1G0haRx02W
SjIsX5A1xFITwmFzVqD5w874ypXGvVUZmzuYtT1xPLqgczulM3Vx8MbK9BN4TiTp
VMgtiBGlSCTaM1ONqJojjnpeJ5bcqQ==
=MiXD
-----END PGP SIGNATURE-----