From 7896dc540467d731758eb130299b520d2b67914d Mon Sep 17 00:00:00 2001 From: Nicklaus McClendon Date: Tue, 21 Mar 2017 20:52:27 -0500 Subject: [PATCH] Added dom0 check to qvm-prefs Added a check to qvm-prefs to see if the specified VM is dom0 and, if so, error out with a message that dom0 cannot be managed by qvm-prefs --- qvm-tools/qvm-prefs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qvm-tools/qvm-prefs b/qvm-tools/qvm-prefs index 589f6f72..5161eccc 100755 --- a/qvm-tools/qvm-prefs +++ b/qvm-tools/qvm-prefs @@ -579,6 +579,10 @@ def main(): "the same time!" exit(1) + if vmname == 'dom0': + print >> sys.stderr, "dom0 cannot be edited by qvm-prefs" + exit(1) + if options.offline_mode: vmm.offline_mode = True