Hello Lucas
I would like to submit patch  to manage guests using virsh.
The patch supports boot, shutdown, memory ballooning, device hotplug(disk
and nic).

A base libvirt xml is created using "domxml-from-native", which is modified
later based on qemu parameters passed. "virsh" commands are passed using
the function virsh_login in virt_utils.py, it uses remote URI "qemu+ssh://"
to connect with hypervisor instead of local URI, thereby offering the
flexibility to work with remote hypervisor.
The patch adds two new filters to the test config files "virsh_no" and
"virsh_enable". "only virsh_no" is used to run the using just qemu and
"only virsh_enable" to manage guest using virsh.

This patch is based on RHEL 6.1 host(qemu-kvm-0.12.1.2), so might have issues
working with older qemu version and it lacks support to define guest with 
multiple nics. Both of  which can be fixed without any major changes to the
current patch, I will  work on these features, once this base
virsh patch is accepted. Will be happy to re-implement or modify the patch
based on you comments.

Thanks
yog 




*** BLURB HERE ***

Yogananth Subramanian (2):
  KVM test: add virsh support to monitor and test config files
  KVM test: virsh support to class VM and virsh shell access with    
    virsh_login

 client/tests/kvm/tests.cfg.sample      |    4 +
 client/tests/kvm/tests_base.cfg.sample |   15 ++
 client/virt/kvm_monitor.py             |  280 +++++++++++++++++++++++++++++++-
 client/virt/kvm_vm.py                  |  145 +++++++++++++++--
 client/virt/virt_utils.py              |   26 +++
 5 files changed, 458 insertions(+), 12 deletions(-)

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to