[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Ovirt-devel] ovirt-viewer - a standalone console viewer for oVirt



ovirt-viewer is a standalone console viewer application.

It is basically a fork of virt-viewer[1], but customized towards
ovirt.  It can contact the ovirt web interface, authenticate the
user, and connect automatically to available virtual machines.

For the moment, source only is available here:

http://git.et.redhat.com/?p=ovirt-viewer.git;a=summary

I'll try and make some Linux and Windows binaries of the app
available next week.  It's also somewhat alpha at the moment,
so ask me if you have any problems.  You also need the attached
patch on the WUI appliance [note: patch is not final].

Rich.

[1] http://freshmeat.net/projects/virtviewer/


diff --git a/src/app/controllers/vm_controller.rb b/src/app/controllers/vm_controller.rb
index ff74a37..459f183 100644
--- a/src/app/controllers/vm_controller.rb
+++ b/src/app/controllers/vm_controller.rb
@@ -25,6 +25,13 @@ class VmController < ApplicationController
 
   before_filter :pre_vm_action, :only => [:vm_action, :cancel_queued_tasks, :console]
 
+  def index
+      @vms = Vm.find(:all)
+      respond_to do |format|
+          format.xml  { render :xml => @vms.to_xml }
+      end
+  end
+
   def show
     set_perms(@perm_obj)
     @actions = @vm.get_action_hash(@user)
diff --git a/src/config/routes.rb b/src/config/routes.rb
index 8d538cb..7e70c92 100644
--- a/src/config/routes.rb
+++ b/src/config/routes.rb
@@ -55,5 +55,5 @@ ActionController::Routing::Routes.draw do |map|
     hardware_pools.resources :hosts, :controller => 'host'
     hardware_pools.resources :storage_pools, :controller => 'storage'
   end
-
+  map.resources :vms, :controller => 'vm'
 end

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]