Allow virt_mode other than pv.
This commit is contained in:
parent
eda68cce6d
commit
e8ba117c26
@ -302,9 +302,12 @@ def post_install(args):
|
|||||||
if 'virt-mode' in conf:
|
if 'virt-mode' in conf:
|
||||||
if conf['virt-mode'] == 'pv' and args.allow_pv:
|
if conf['virt-mode'] == 'pv' and args.allow_pv:
|
||||||
vm.virt_mode = 'pv'
|
vm.virt_mode = 'pv'
|
||||||
else:
|
elif conf['virt-mode'] == 'pv':
|
||||||
vm.log.warning(
|
vm.log.warning(
|
||||||
'--allow-pv not set, ignoring request to change virt-mode')
|
'--allow-pv not set, ignoring request to change virt-mode')
|
||||||
|
elif conf['virt-mode'] in ('pvh', 'hvm'):
|
||||||
|
vm.virt_mode = conf['virt-mode']
|
||||||
|
|
||||||
if 'kernel' in conf:
|
if 'kernel' in conf:
|
||||||
if conf['kernel'] == '':
|
if conf['kernel'] == '':
|
||||||
vm.kernel = ''
|
vm.kernel = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user