Bahtiar `kalkin-` Gadimov
c22d9e88c9
Add QubesAction
2016-05-21 01:24:12 +02:00
Wojtek Porczyk
e757444c35
qubes/tools/qvm-features: add tool for managing qvm-features
...
QubesOS/qubes-issues#1637
2016-05-19 03:02:24 +02:00
Bahtiar `kalkin-` Gadimov
a65b0edcd4
Add QubesArgumentParser.print_error()
2016-05-19 03:02:24 +02:00
Wojtek Porczyk
454e1835fe
pylintrc: add (commented) ruleset for debugging imports
2016-05-19 03:02:24 +02:00
Wojtek Porczyk
786884ad7a
qubes: fix netvm properties and tests
...
fixes QubesOS/qubes-issues#1816
2016-05-19 03:02:23 +02:00
Marek Marczykowski-Górecki
7c0f5a4be6
qubes-hcl-report: filename sanitization for old bash
...
Bash in dom0 (Fedora 20 based) doesn't properly handle "+(..)" operator.
So remove it for now.
Fixes QubesOS/qubes-issues#1994
2016-05-18 14:21:26 +02:00
Marek Marczykowski-Górecki
a8fcc58934
version 3.2.2
2016-05-18 03:00:41 +02:00
Marek Marczykowski-Górecki
6311eec6fd
tests: force reloading partition table after setting partitioned loop dev
...
Apparently "losetup -P" doesn't always properly read partition table.
Force reload using blockdev --rereadpt.
2016-05-18 02:03:48 +02:00
Marek Marczykowski-Górecki
405fd40aaa
Add policy for qubes.OpenURL service
...
For now the same as for qubes.OpenInVM.
Fixes QubesOS/qubes-issues#1487
2016-05-18 02:03:48 +02:00
Marek Marczykowski-Górecki
3abf2b24b4
tests: check opening URL
...
While at it, fix policy preparation for qvm-open-in-vm tests.
QubesOS/qubes-issues#1487
2016-05-18 02:03:31 +02:00
Marek Marczykowski-Górecki
692254fcbf
qubes-bug-report: remove trailing spaces
...
QubesOS/qubes-issues#901
2016-05-17 20:33:05 +02:00
Marek Marczykowski-Górecki
b1e368da43
Merge remote-tracking branch 'qubesos/pr/30'
...
* qubesos/pr/30:
qubes-bug-report coding style 4 spaces instead of tabs and using += operator
qubes-bug-report subprocess removed, refactored and fixed pacman command for archlinux packages
Tool to create bug reports.
Fixes QubesOS/qubes-issues#901
2016-05-17 20:32:46 +02:00
Marek Marczykowski-Górecki
94d52a13e7
core: adjust guid parameters when running on KDE5
...
On KDE5 native decoration plugin is used and requires special properties
set (instead of `_QUBES_VMNAME` etc).
Special care needs to be taken when detecting environment, because
environment variables aren't good enough - this script may be running
with cleared environment (through sudo, or from systemd). So check
properties of X11 root window.
QubesOS/qubes-issues#1784
2016-05-17 20:22:13 +02:00
Jeepler
14efbb4a22
qubes-bug-report coding style 4 spaces instead of tabs and using += operator
2016-05-17 13:15:26 -05:00
Jeepler
ea7631208c
qubes-bug-report subprocess removed, refactored and fixed pacman command for archlinux packages
2016-05-16 23:36:27 -05:00
Marek Marczykowski-Górecki
55af04293b
tests: block devices listing
...
QubesOS/qubes-issues#1600
2016-05-16 04:48:29 +02:00
Marek Marczykowski-Górecki
10f0716911
trim-template: Fix handling long named templates
...
Trim template name to fit full VM name in 31 chars.
At the same time, check if the VM already exists - if so - remove it
first (or error out asking the user to remove it manually - if VM isn't
marked as internal).
Now that VM is created as internal, to skip appmenus creation.
QubesOS/qubes-issues#1910
Fixes QubesOS/qubes-issues#1655
2016-05-15 15:08:30 +02:00
Marek Marczykowski-Górecki
92b49fe9a4
core: Change default vCPUS to 2
...
This behaves better when running multiple VMs. If one need full CPU
power in some VM, it is always possible to increase vCPUs for this
particular VM.
Fixes QubesOS/qubes-issues#1891
2016-05-15 14:00:37 +02:00
Jeppler
16fbb33ce3
Tool to create bug reports.
...
A bug report is a collection of system information and log files for a specific qube.
2016-05-13 20:50:02 -05:00
Wojtek Porczyk
d728f4b9ff
qubes/app: reconnect to libvirtd after crash
...
Sometimes libvirt crashes. After that the connection (and all
vm.libvirt_domain-s) were unusable.
fixes QubesOS/qubes-issues#990
2016-05-05 17:33:00 +02:00
Wojtek Porczyk
e3aae7bc17
qubes: Minor fixes
...
Fix mock TestApp object and argument parsing in qvm-run.
2016-05-05 16:58:43 +02:00
Wojtek Porczyk
c76790fbde
qubes/tests/vm/qubesvm: fix test for vm.internal
...
On flipping .internal vm (re)creates appmenus. They need label.
2016-05-05 14:38:04 +02:00
Wojtek Porczyk
63c09a090c
qubes: Combat import cycles
...
This commit eliminates import statements happening in the middle of the
file (between two classes definition). The cycles are still there. The
only magic module is qubes itself.
2016-05-05 14:33:09 +02:00
Wojtek Porczyk
f8270a07bb
qubes: add filename= argument to Qubes.save()
...
fixes QubesOS/qubes-issues#1846
2016-05-05 00:40:45 +02:00
Marek Marczykowski-Górecki
db8e79a903
version 3.2.1
2016-05-05 00:03:45 +02:00
Marek Marczykowski-Górecki
7e76342919
backup: default tmpdir to /tmp, respect TMPDIR
...
This requires having at least 1GB free on /tmp, but it is fair
assumption - it's tmpfs in dom0 and while performing the backup most of
the VMs aren't running, so shouldn't be a problem. Anyway it is always
possible to set TMPDIR variable or pass --tmpdir cmdline option.
Using tmpfs based temporary directory should speedup the backup.
QubesOS/qubes-issues#1652
2016-05-05 00:00:25 +02:00
Marek Marczykowski-Górecki
a8ea1d4b39
Merge remote-tracking branch 'origin/pr/10'
...
* origin/pr/10:
backup: Allow to specify custom temporary directory
2016-05-04 23:54:34 +02:00
Bahtiar `kalkin-` Gadimov
1d5b89f0d5
LinuxKernel keep track of own volumes
...
This is squashed woju/qubes-core-admin#8 by @kalkin
- LinuxKernel.volumes() lists all available kernels
- LinuxKernel use kernel version as vid
- LinuxKernel add docstrings
- Linux.kernel use os.listdir instead of os.walk
- LinuxKernel dynamically list available kernels
2016-05-04 17:21:05 +02:00
Marek Marczykowski-Górecki
d88ff935d0
tests: adjust 'extra' tests API to better design from core3
...
Do not force inheritance of ExtraTestMixin and QubesTestCase. Instead
provide 'qubes.tests.extra.ExtraTestCase' for external tests. This makes
the API less "magic", easier to understand and apply static analysis
tools on it.
QubesOS/qubes-issues#1800
2016-05-02 00:36:12 +02:00
Marek Marczykowski-Górecki
edd473c4be
tests: fix 'extra' tests loader
...
QubesOS/qubes-issues#1800
2016-05-02 00:18:37 +02:00
Bahtiar `kalkin-` Gadimov
7200e6153b
Rename default storage driver from xen to file
...
- Rename XenPool ⇒ FilePool
- Rename XenVolume ⇒ FileVolume
2016-04-30 20:42:46 +02:00
Bahtiar `kalkin-` Gadimov
b2c1017488
Fix missing parameter in Pool.__init__()
2016-04-30 20:42:00 +02:00
Marek Marczykowski-Górecki
62e68d52a3
Merge remote-tracking branch 'qubesos/pr/29'
...
* qubesos/pr/29:
removed unnecessary comparison with True and changed to sysctl instead of remove
Fixed #1930 : Delete autostart Symlink when deleting a VM
2016-04-28 09:38:48 +02:00
Mario Geckler
23ec9e92bb
removed unnecessary comparison with True and changed to sysctl instead of remove
2016-04-28 08:30:57 +02:00
Patrick Schleizer
1fe625aa53
allow sys-whonix, whonix-gw and whonix-ws by default to open links in anon-whonix
...
https://phabricator.whonix.org/T452
2016-04-27 17:43:31 +00:00
Wojtek Porczyk
044aefe25a
contrib: import-graph creates smaller, more readable graph
2016-04-27 17:51:18 +02:00
Wojtek Porczyk
26fabe53aa
Add readthedocs and badge to README.md
2016-04-27 15:41:56 +02:00
Wojtek Porczyk
7f2f4a4e75
Fix GUI extension
2016-04-27 15:27:01 +02:00
Mario Geckler
d9b8516b6d
Fixed #1930 : Delete autostart Symlink when deleting a VM
2016-04-27 12:47:56 +02:00
Wojtek Porczyk
487411be4c
Merge remote-tracking branch 'woju/pull/5/head' into core3-devel
...
Makefile | 1 -
doc/manpages/qvm-create.rst | 5 +
etc/storage.conf | 13 -
qubes/__init__.py | 82 +++++-
qubes/config.py | 14 +-
qubes/devices.py | 15 ++
qubes/storage/__init__.py | 591 +++++++++++++---------------------------
qubes/storage/kernels.py | 109 ++++++++
qubes/storage/xen.py | 643 +++++++++++++++++++++++++++++---------------
qubes/tests/__init__.py | 13 +-
qubes/tests/int/basic.py | 5 +-
qubes/tests/storage.py | 70 ++---
qubes/tests/storage_xen.py | 366 +++++++++++++++----------
qubes/tools/qvm_create.py | 18 +-
qubes/vm/appvm.py | 38 ++-
qubes/vm/qubesvm.py | 192 ++++++-------
qubes/vm/templatevm.py | 45 +++-
rpm_spec/core-dom0.spec | 2 +-
setup.py | 1 +
templates/libvirt/xen.xml | 32 ++-
20 files changed, 1313 insertions(+), 942 deletions(-)
2016-04-26 11:09:18 +02:00
Bahtiar `kalkin-` Gadimov
04a3e80311
SizeMixIn first assert than call super()
2016-04-25 07:17:21 +02:00
Bahtiar `kalkin-` Gadimov
29f4be0f10
If vm doesnt support volume_config raise TypeError
2016-04-25 07:17:21 +02:00
Bahtiar `kalkin-` Gadimov
37ca33b0d1
Add docstring to xen volumes implementations
2016-04-25 07:17:21 +02:00
Bahtiar `kalkin-` Gadimov
8f060a8746
Fix Pool and Volume __init__
2016-04-25 07:17:20 +02:00
Bahtiar `kalkin-` Gadimov
591134833b
Replace Volume.__str__ with enhanced __repr__
2016-04-25 07:17:20 +02:00
Bahtiar `kalkin-` Gadimov
04536c5950
Don't exec app.save() after add_pool & remove_pool
2016-04-25 07:17:20 +02:00
Bahtiar `kalkin-` Gadimov
d7ff4b9057
Move volume xml config from QubesVM to Volume
2016-04-25 07:17:20 +02:00
Bahtiar `kalkin-` Gadimov
2e28849c90
Move pool xml config from Qubes to Pool
2016-04-25 07:17:20 +02:00
Bahtiar `kalkin-` Gadimov
49b4951389
Storage move rename() logic to XenPool
...
- Fix config renaming
2016-04-25 07:17:20 +02:00
Bahtiar `kalkin-` Gadimov
e3ae6cdc1b
BackupTestsMixin.create_backup_vms uses volumes
...
Instead of using root_img to access the path it uses now the proper volumes
2016-04-25 07:17:20 +02:00