Skip to content

rottenbytes/ruby-xen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

A very simple ruby module to access Xen informations.

How to use it :

x=Xen::XenServer.new

puts x.has? "non-existant"
puts x.has? "domu2"
puts x.slices

s=x.get("domu2")
s2=x.get("Domain-0")

puts s.time
puts s2.time
sleep(10)
x.update
puts s.time
puts s2.time

# live migrate VM "domu2" to host "10.0.0.2"
x.migrate("domu2", "10.0.0.2")

# pause VM "domu2"
x.pause("domu2")

# create & destroy a domU
x.create("domu2")
x.destroy("domu2")


TODO :

- work on configuration of the VMs (read/modify/write)

Creating & installing the gem :

gem build xen.gemspec
sudo gem install xen-<version>.gem

About

Simple ruby / xen module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages