Michael can u reply on it?

From: Ohad Levy [mailto:notifications@github.com]
Sent: Wednesday, April 02, 2014 9:36 AM
To: theforeman/foreman
Cc: Operations
Subject: Re: [foreman] Xenserver support (#1345)


In lib/foreman/model/xenserver.rb:

> +     vm.set_attribute('HVM_boot_policy', 'BIOS order')

> +     vm.refresh

> +     vm

> +    end

> +

> +    def console uuid

> +      vm = find_vm_by_uuid(uuid)

> +      raise "VM is not running!" unless vm.ready?

> +      password = random_password

> +

> +      console = vm.service.consoles.find {|c| c.__vm == vm.reference && c.protocol == 'rfb'}

> +      raise "No console fore vm #{vm.name}" if console == nil

> +

> +      session_ref = (vm.service.instance_variable_get :@connection).instance_variable_get :@credentials

> +      fullURL = "#{console.location}&session_id=#{session_ref}"

> +      tunnel = VNCTunnel.new fullURL

can you provide more background on this? I assume that foreman can reach the vnc server directly (as does the tunnel) so why do we need it?

—
Reply to this email directly or view it on GitHub<https://github.com/theforeman/foreman/pull/1345/files#r11193917>.