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
This commit is contained in:
Nicklaus McClendon 2017-03-21 20:52:27 -05:00
parent 6bcc97b859
commit 7896dc5404
No known key found for this signature in database
GPG Key ID: B972DCD093E03256

View File

@ -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