Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'libvirt'
- conn = Libvirt::open("qemu:///system")
- puts conn.capabilities
- File::open("domain.xml") do |f|
- conn.createDomainLinux(f.readlines, nil)
- end
- dom = conn.lookupDomainByName("mydomain")
- dom.suspend
- dom.resume
- puts dom.xmlDesc
Add Comment
Please, Sign In to add comment