'Get connection info for a vnc console.
:param context: security context
:param instance: nova.objects.instance.Instance
:return: An instance of console.type.ConsoleVNC'

def get_vnc_console(self, context, instance):

    self._log_operation('get_vnc_console', instance)
    lpar_uuid = vm.get_pvm_uuid(instance)
    host = CONF.vnc.vncserver_proxyclient_address
    try:
        port = pvm_vterm.open_remotable_vnc_vterm(self.adapter, lpar_uuid, host, vnc_path=lpar_uuid)
        return console_type.ConsoleVNC(host=host, port=port, internal_access_path=lpar_uuid)
    except pvm_exc.HttpError as e:
        with excutils.save_and_reraise_exception(logger=LOG) as sare:
            if (e.response.status == 404):
                sare.reraise = False
                raise exc.InstanceNotFound(instance_id=instance.uuid)
