WillyPillow
233e411c2f
qvm-template: Switch to namedtuples and other slight cleanup.
2020-08-01 02:24:29 +08:00
WillyPillow
3ada7af0eb
qvm-template: {reinstall,{up,down}grade}: Better handling and checks for existing version.
2020-07-31 01:27:40 +08:00
WillyPillow
90e4f65bea
qvm-template*: Add option to specify pool to store created VM.
2020-07-29 20:55:56 +08:00
WillyPillow
ef59a658f4
qvm-template: Make pylint happy by changing "license" to "licence".
2020-07-29 20:55:02 +08:00
WillyPillow
f960ed4726
qvm-template: Add --refresh option and allow DNF cache to be used.
2020-07-29 20:55:02 +08:00
WillyPillow
8aa9ab9e89
qvm-template: Remove downloaded file if the download is interrupted.
2020-07-29 20:55:02 +08:00
WillyPillow
88ee572cac
qvm-template: Incorporate additional metadata in qubes.TemplateSearch.
2020-07-29 20:55:02 +08:00
WillyPillow
421dd74dd2
Check number of fields for qubes.TemplateSearch output.
2020-07-29 20:55:02 +08:00
WillyPillow
5e76bdb5f1
Revamp "qvm-template search" and finish TODOs.
2020-07-29 20:55:02 +08:00
WillyPillow
37a72ecebf
Print error messages if qubes.TemplateSearch fails.
2020-07-29 20:55:02 +08:00
WillyPillow
e6392ba4ec
Add lock-file functionality for qvm-template install.
2020-07-29 20:55:02 +08:00
WillyPillow
c573faa9c0
Initial implementation for "qvm-template search".
2020-07-29 20:55:02 +08:00
WillyPillow
d656554822
Initial implementation for "qvm-template info".
2020-07-29 20:55:02 +08:00
WillyPillow
51324da24d
Allow <package-spec>-like arguments for the list operation.
2020-07-29 20:55:02 +08:00
WillyPillow
41323d004f
Support for {reinstall,downgrade,upgrade} operations.
...
Requires QubesOS/qubes-issues#5946 to be resolved.
2020-07-29 20:55:02 +08:00
WillyPillow
faef52e61a
Fix pylint warnings.
2020-07-29 20:55:02 +08:00
WillyPillow
8a4b5e683a
Add suffix for unverified RPMs.
2020-07-29 20:55:02 +08:00
WillyPillow
addb677506
Check for newlines in qrexec arguments & improve error handling.
2020-07-29 20:55:02 +08:00
WillyPillow
73eb4cd08c
Use tqdm for progress bar.
2020-07-29 20:55:02 +08:00
WillyPillow
3d42c988f0
Various cleanup and improvements.
...
- `qvm-template list`: show template state
- `qvm-template list`: only call qubes.TemplateSearch once
- `qvm-template list`: use `qubesadmin.tools.print_table()` instead of own implementation
- `qvm-template download`: custom progress bar
- Use `run_service` instead of own implementation
- Remove some erroneous/redundant lines
2020-07-29 20:55:02 +08:00
WillyPillow
0e8e8d98de
Better way of detecting VM.
2020-07-29 20:55:02 +08:00
WillyPillow
b634c7c785
Initial commit of qvm-template.
...
Refer to <https://gist.github.com/WillyPillow/61ee5f48b7c5b7cc90c9fd2ec5c1b20d >
for previous revisions.
2020-07-29 20:55:02 +08:00
WillyPillow
bab8e699d7
Change "whitelist" to "menu-items" in qvm-features for clarity.
2020-07-29 20:55:02 +08:00
WillyPillow
e8ba117c26
Allow virt_mode other than pv.
2020-07-29 20:55:02 +08:00
WillyPillow
eda68cce6d
Verify values of boolean flags in template config.
2020-07-29 20:55:02 +08:00
WillyPillow
6c7360f25c
Separate whitelist entries with spaces instead of newlines.
2020-07-29 20:55:02 +08:00
WillyPillow
9d9ee6a4b7
Initial support for qvm-template.
2020-07-29 20:55:02 +08:00
WillyPillow
455542ac7f
Add admin.vm.volume.Clear call ( QubesOS/qubes-issues#5946 )
2020-07-14 01:48:19 +08:00
Marek Marczykowski-Górecki
ae39c75867
Merge remote-tracking branch 'origin/pr/140'
...
* origin/pr/140:
use function to determine pacat domid
connect to PA in stubdom if audio-model enabled run pacat in low latency mode by default
2020-06-20 05:01:59 +02:00
Marek Marczykowski-Górecki
9d6b7257c4
tools/qvm-start-daemon: reduce required permissions to sys-gui itself
...
Do not require permission to list sys-gui itself just to get keyboard
layout. Listing itself is not sensitive (sys-gui knows it exists), but
it will make other tools request its properties, which may not be
desirable.
2020-06-16 15:58:57 +02:00
Dmitry Fedorov
d99045f05e
use function to determine pacat domid
2020-05-31 21:11:33 +03:00
Dmitry Fedorov
ec90829695
connect to PA in stubdom if audio-model enabled
...
run pacat in low latency mode by default
2020-05-29 12:07:38 +03:00
Marek Marczykowski-Górecki
b1453953f9
Merge remote-tracking branch 'origin/pr/139'
...
* origin/pr/139:
Added a safeguard for invalid firewall rules
2020-05-27 04:18:20 +02:00
Marek Marczykowski-Górecki
c081ed8c82
Enable caching in qvm-ls and qvm-prefs
...
Both tools issue a large number of Admin API calls and greatly benefit
from a cache filled with a single per-vm Admin API call
(admin.vm.property.GetAll). In case of qvm-ls, this also saves multiple
admin.vm.CurrentState calls (power state is given in the admin.vm.List
response too).
QubesOS/qubes-issues#3293
2020-05-22 19:28:51 +02:00
Marta Marczykowska-Górecka
d2f4a4533a
Added a safeguard for invalid firewall rules
...
Firewall rule cannot be missing value in declaration
(e.g. 'dsthost=' is not a valid rule).
fixes QubesOS/qubes-issues#5772
2020-05-16 12:18:13 +02:00
Marek Marczykowski-Górecki
83b1fc6c58
tools/qvm-volume import: do not retrieve old size anymore
...
Since admin.vm.volume.ImportWithSize method is used now, there is no
need to retrieve old size anymore (to decide whether to resize or not).
2020-05-10 03:57:28 +02:00
Marek Marczykowski-Górecki
65dcee424a
Make pylint happy
...
New pylint reports (duplicated?) warning signature-differs in addition
to arguments-differ. Ignore this one too.
2020-05-10 03:21:40 +02:00
Marek Marczykowski-Górecki
4971faa462
Merge remote-tracking branch 'origin/pr/118'
...
* origin/pr/118:
qvm-start-daemon: adjust pacat pid file path
qvm-start-daemon: check if layout is parsed
qvm-start-daemon: allow multiple options in keyboard layout
qvm-start-daemon: improve parsing args for setting keyboard layout
qvm-start-daemon: set keyboard-layout only for the first set layout
gui: set keyboard layout when starting daemon
daemon: start it for dom0 unconditionnaly
qvm-start-daemon: ensure separate task between GUI/AUDIO
qvm-start-daemon: allow starting only if service enabled
Fix and improvements from Marek's comments
Change qvm-start-gui to qvm-start-daemon for handling audio too
Support for AudioVM
2020-04-09 05:24:26 +02:00
Rusty Bird
f9ee7f5816
collections.Callable -> collections.abc.Callable
...
"Deprecated since version 3.3, will be removed in version 3.10"
- https://docs.python.org/3/library/collections.html
2020-04-07 21:30:54 +00:00
Frédéric Pierret (fepitre)
e87559b318
qvm-start-daemon: adjust pacat pid file path
2020-04-07 23:12:09 +02:00
Frédéric Pierret (fepitre)
e39f280405
qvm-start-daemon: check if layout is parsed
2020-03-28 17:33:04 +01:00
Frédéric Pierret (fepitre)
2e72f75611
qvm-start-daemon: allow multiple options in keyboard layout
2020-03-28 17:33:03 +01:00
Frédéric Pierret (fepitre)
023d94a0b3
qvm-start-daemon: improve parsing args for setting keyboard layout
2020-03-28 17:33:03 +01:00
Frédéric Pierret (fepitre)
c13097d458
qvm-start-daemon: set keyboard-layout only for the first set layout
2020-03-28 17:33:03 +01:00
Frédéric Pierret (fepitre)
c58e5b8eb8
gui: set keyboard layout when starting daemon
2020-03-28 17:33:03 +01:00
Frédéric Pierret (fepitre)
526c862b5d
daemon: start it for dom0 unconditionnaly
2020-03-28 17:33:03 +01:00
Frédéric Pierret (fepitre)
49957971ff
qvm-start-daemon: ensure separate task between GUI/AUDIO
2020-03-28 17:33:03 +01:00
Frédéric Pierret (fepitre)
05e479cf92
qvm-start-daemon: allow starting only if service enabled
2020-03-28 17:33:03 +01:00
Frédéric Pierret (fepitre)
f7fa577c47
Fix and improvements from Marek's comments
2020-03-28 17:33:03 +01:00
Frédéric Pierret (fepitre)
0e049e682a
Change qvm-start-gui to qvm-start-daemon for handling audio too
2020-03-28 17:33:02 +01:00