Displaying 1 result from an estimated 1 matches for "vm_descript".
2009 May 19
2
[PATCH server] added ovirt vnc proxy server, to proxy vnc request to managed vms
...end
+
+     # run vnc proxy
+     def run
+       continue = true
+       while(continue) do
+        begin
+         Thread.start(@server.accept) do |client|
+          begin
+             @logger.info "client accepted"
+
+             # first msg will be the vm description
+             vm_description = client.recv(VM_NAME_MAX_LEN).to_s
+             @logger.info "vm received: " + vm_description + ";"
+
+             # lookup vm
+             vm = Vm.find(:first, :conditions => [ "description = ?", vm_description ])
+             if vm && vm.state == &...