Dont configure vnc if we are using lxc

This commit is contained in:
Chuck Short 2011-04-05 10:17:29 -04:00
parent c0a8904508
commit f1f8e00dc4
1 changed files with 2 additions and 1 deletions

View File

@ -970,7 +970,8 @@ class LibvirtConnection(driver.ComputeDriver):
'nics': nics}
if FLAGS.vnc_enabled:
xml_info['vncserver_host'] = FLAGS.vncserver_host
if FLAGS.libvirt_type != 'lxc':
xml_info['vncserver_host'] = FLAGS.vncserver_host
if not rescue:
if instance['kernel_id']:
xml_info['kernel'] = xml_info['basepath'] + "/kernel"