Commit Graph

244 Commits

Author SHA1 Message Date
Marek Marczykowski
d010906eb1 Merge remote-tracking branch 'abb/qvm_block-bugfix' 2012-10-16 00:59:36 +02:00
Alexandre Bezroutchko
ca4367821e Improve handling of command line parameters, don't silently ignore unexpected arguments.
This is to avoid following behavior:

    [abb@dom0 qubes-core]$ qvm-block -l
    netvm:sda       STORAGE_DEVICE () 0 B
    dom0:sdb1       Cruzer () 3 GiB
    dom0:sdb        Cruzer () 3 GiB

    [abb@dom0 qubes-core]$ qvm-block -l
    netvm:sda       STORAGE_DEVICE () 0 B
    dom0:sdb1       Cruzer () 3 GiB
    dom0:sdb        Cruzer () 3 GiB

    [abb@dom0 qubes-core]$ qvm-block -a qdvp dom0:sdb

    [abb@dom0 qubes-core]$ qvm-block -l
    netvm:sda       STORAGE_DEVICE () 0 B
    dom0:sdb1       Cruzer () 3 GiB
    dom0:sdb        Cruzer () 3 GiB (attached to 'qdvp' as 'xvdi')

    [abb@dom0 qubes-core]$ qvm-block -d qdvp BLAHBLAH
                                          ^^^^^^^^^^^^^
    >>> The last parameter is silently ignored and all devices get detached

    [abb@dom0 qubes-core]$ qvm-block -l
    netvm:sda       STORAGE_DEVICE () 0 B
    dom0:sdb1       Cruzer () 3 GiB
    dom0:sdb        Cruzer () 3 GiB
2012-10-15 11:40:08 +02:00
Alexandre Bezroutchko
3c53f049a3 dom0/qvm-block: cosmetic 2012-10-08 01:23:42 +02:00
Alexandre Bezroutchko
caf3ed1ae4 cosmetic 2012-10-08 00:46:30 +02:00
Olivier Médoc
9a90f499bc dom0/qvm-sync-clock: use timestamp in RFC2822 format to avoid locale issues 2012-10-03 14:55:05 +02:00
Marek Marczykowski
1cd3ef3456 dom0/qvm-tools: catch exceptions while settting VM name (#656) 2012-08-23 04:02:50 +02:00
Marek Marczykowski
9b3a77bc1d dom0: move RPC services to separate directory (#654)
This makes more clear which code have contact with untrusted data from VM.
2012-08-16 16:56:16 +02:00
Marek Marczykowski
e1404a2d4f dom0/qvm-run: do not break --all when run in one VM failed 2012-08-04 04:15:33 +02:00
Marek Marczykowski
a680976f1e dom0/updates: show errors from qubes-receive-updates
Especially when signature verification failed, show message about it, not
enigmatic "Could not open/read
file:///var/lib/qubes/updates/repodata/repomd.xml"
2012-07-30 23:16:05 +02:00
Marek Marczykowski
c2d4b0de62 dom0/updates: typo fix in qubes-manager statfile handling 2012-07-30 23:16:05 +02:00
Marek Marczykowski
b321d16336 dom0/qvm-tools: add missing imports 2012-07-18 18:10:08 +02:00
Marek Marczykowski
4b92f6390a dom0/qvm-core: ignore stderr from VM commands when not needed for sure (#626)
pam_systemd.so has a bug, which cause spurious '...killed' output on stderr.
2012-07-16 13:36:08 +02:00
Marek Marczykowski
6c74db3aac dom0/qvm-sync-appmenus: use qubes.GetAppmenus service 2012-07-15 02:41:23 +02:00
Marek Marczykowski
c0ffdd6fa5 dom0/dom0-updates: remove updates-pending flag after update installation 2012-07-15 02:41:23 +02:00
Marek Marczykowski
b42e09e4ba dom0/qvm-tools: Warn the user when running qvm-tool as root is not recommended (#612) 2012-07-12 03:57:22 +02:00
Marek Marczykowski
2c0d0dff8b dom0/qvm-sync-clock: string '\n' from date output 2012-07-12 03:56:09 +02:00
Marek Marczykowski
64369bf02a dom0/qvm-run: Notify qubes-manager about failed VM start (#615) 2012-07-05 01:43:32 +02:00
Marek Marczykowski
89aaa60753 dom0: use RPC service to sync clock via NTP (#603) 2012-06-23 00:37:47 +02:00
Marek Marczykowski
0e2aba228f dom0: minor qvm-sync-clock fix
Catch any error in vm.run, to not break clock syncing of all VMs because one
VM.
2012-06-19 00:59:27 +02:00
Marek Marczykowski
ab9c2e503a dom0: qvm-run --nogui switch
Can be used to not start guid.
2012-06-19 00:59:27 +02:00
Marek Marczykowski
8bdc5706f7 dom0/core: allow to change default user for qvm-run (#577)
This doesn't make all dom0 code VM-username independent, still 'user' is
hardcoded in many places. This only change behavior of qvm-run, especially for use in HVM.
2012-06-13 19:01:32 +02:00
Marek Marczykowski
3b8272c1b6 dom0/qvm-ls: replace 'netmask' column with 'ip back' (#573) 2012-06-05 21:21:53 +02:00
Marek Marczykowski
65fc62a989 dom0/core: setup yum to use proxy when it have access to it (#568)
To simplify configuration, automatically enable 'yum-proxy-setup'
pseudo-service when allowing access to the proxy. Also disable this service,
when access is revoked. Thanks to this the user can enable this feature by one
click in firewall settings.
2012-05-31 03:11:44 +02:00
Marek Marczykowski
ec52d15dfe dom0/qvm-firewall: add support for 'allowYumProxy' setting (#568) 2012-05-31 03:11:44 +02:00
Marek Marczykowski
a2b222166a dom0/qvm-tools: introduce qvm-service tool
Allow setting vm services same as in qubes-manager
2012-05-31 03:09:22 +02:00
Marek Marczykowski
39b15033aa dom0/qvm-ls: add 'kernel' and 'kernelopts' columns 2012-05-31 03:09:22 +02:00
Marek Marczykowski
a5c80d4015 dom0/qvm-pci: add info about required restart after PCI device add/remove 2012-05-07 15:49:37 +02:00
Marek Marczykowski
c0f1d3c53b dom0/qvm-ls: show 'n/a' in disk usage for dom0 2012-04-28 03:26:20 +02:00
Marek Marczykowski
a96f6a1e81 Revert "dom0/qvm-prefs: remove duplicated set_include_in_backups"
This reverts commit aa99c411db.
This wasn't duplicated...

Conflicts:

	dom0/qvm-tools/qvm-prefs
2012-04-24 14:02:00 +02:00
Marek Marczykowski
804dc973ed dom0/qvm-firewall: clarify message (#24 pro) 2012-04-24 02:14:17 +02:00
Marek Marczykowski
9927244670 dom0/qvm-tools: add GUI (tray balloon) error reporing to qvm-start and extend it in qvm-run (#534) 2012-04-24 02:14:17 +02:00
Marek Marczykowski
c35e655d66 dom0/qvm-prefs: relax memory check
Allow memory > maxmem, anyway it will be enforced at VM boot. This allows to
set memory and maxmem in any order. Also required to increase memory for HVM.
2012-04-24 02:14:17 +02:00
Marek Marczykowski
865ea14473 dom0/qvm-start: allow temporally enable debug mode (#537) 2012-04-23 12:43:24 +02:00
Marek Marczykowski
e73b13c68d dom0/core: add 'debug' VM property (#537) 2012-04-23 12:43:24 +02:00
Marek Marczykowski
073cce723f dom0/qvm-start: remove obsolete --console switch 2012-04-23 12:43:11 +02:00
Marek Marczykowski
aa99c411db dom0/qvm-prefs: remove duplicated set_include_in_backups 2012-04-23 12:42:18 +02:00
Marek Marczykowski
bb30184452 dom0/qvm-prefs: typo fix 2012-04-23 12:42:18 +02:00
Marek Marczykowski
28666c47f5 dom0/core: check if object has attr before using it 2012-04-20 13:33:41 +02:00
Marek Marczykowski
ceeed3bd8b dom0/qvm-start: fix --no-guid switch (#528) 2012-04-18 17:38:38 +02:00
Marek Marczykowski
adec43af85 dom0/qvm-prefs: validate memory parameters (#497) 2012-04-18 16:53:50 +02:00
Marek Marczykowski
ce0c20e021 dom0/qvm-block: qvm-block -d <vmname> detaches all devices (#517)
Exception: if frontend specified, detaches only this one device.
2012-04-13 00:30:13 +02:00
Marek Marczykowski
1a07bc241d dom0/qvm-block: handle block-attach errors (#515) 2012-04-12 18:04:20 +02:00
Marek Marczykowski
749b84ec43 dom0/qvm-block: hide system disks by default (#5 pro) 2012-03-31 19:49:41 +02:00
Marek Marczykowski
f42c39ba21 dom0/qvm-block: one more file-attach fix 2012-03-31 19:22:26 +02:00
Marek Marczykowski
e5a2209cab dom0/qvm-block: change order of parameters (#514) 2012-03-31 19:05:12 +02:00
Marek Marczykowski
8105fad646 dom0+vm: qvm-block --attach-file
Allow to attach disk image from different VM as block device. File attached
with qvm-block -A will be visible as loopX device and as such can be detached.
File path will be in device description.
2012-03-31 19:04:50 +02:00
Marek Marczykowski
3650ac837e dom0/core: do not inherit kernel version from template (#488) 2012-03-28 00:49:02 +02:00
Marek Marczykowski
049a74d5af dom0/qvm-start: support for custom Xen config 2012-03-15 20:59:49 +01:00
Marek Marczykowski
578ef780c7 dom0/qvm-tools: introduce cmdline firewall editor: qvm-firewall 2012-03-10 03:16:15 +01:00
Marek Marczykowski
ac246d3d6a dom0/qvm-ls: improve performance
Do not evaluate each field twice - some of them (eg. disk usage) are expensive.
2012-03-09 17:23:41 +01:00