Thanks for your suggestion.
I have a question about define the image name and capture function.
Currently my kvm module can support vmware esxi image format (.vmdk and
flat.vmdk, so I can easily support existing flat.vmdk images by KVM). But
also want it to support other image formats, such as .img.
I think we may need to define the name format both in VCL database and
module. Let's said there is an image named CentOS5,
In VMDK format,
In VCL database, it should be esx-CentOS5-v0,
In image library, it should be files, esx-CentOS5-v0.vmdk and
My question is that what its name should be when the image file is img
format? My final goal is that make KVM module can support flat.vmdk and
file at the same time. Is that possible to do that? Or I should give one
Graduate Research Assistant, Cyber Defense Lab
Department of Computer Science
North Carolina State University, Raleigh, NC
-----Original Message----- From: Andy Kurth
Sent: Monday, August 01, 2011 09:02 AM
Subject: Re: The New KVM Provisioning module
Sounds great. I'd like to help with this too. I like the idea about
making it generic. Since libvirt supports a few different things, I
think a very generic libvirt.pm module inheriting from Provisioning.pm
I'd create a Provisioning/libvirt subdirectory, and create .pm files
for each libvirt/VCL supported product:
I agree to use the VMware module as an example though there will be a
difference in how your Perl package path is constructed and where the
files reside. The main VMware.pm file should reside 1 directory
higher, directly under Provisioning. When the new VMware.pm module
was created, the older vmware.pm module already resided in this
location. We couldn't remove it at that time so I put VMware.pm a
directory lower to keep them straight.
There is a lot of code in the VMware.pm module that could be reused by
other modules. I tried to break up the subroutines as much as
possible so that each one performs a single function. Many of them
are not VMware-specific and could be moved up into Provisioning.pm so
that the code can be reused by libvirt.pm and other provisioning
Submitting your code via Jira is the best way to get started. We
already have issue VCL-339 for this. Please be sure to submit your
code as an attached file to the issue, not copied/pasted to the
Also, 1 suggestion for anyone working on code. Make sure you are
developing using a checked-out copy of trunk from Subversion and
perform a 'svn update' regularly. Don't work off of the code in the
VCL 2.2.1 release because it is changing frequently. It will also be
very easy to commit your code to trunk this way.
On Fri, Jul 29, 2011 at 4:30 PM, Xianqing Yu <xia...@us.ibm.com> wrote:
Thank your interesting.
I looked at the vmware Provisioning module code, and try to learn and
reuse some code from that. Because there are some many functions in
VMware.pm, I probably start with some basic functions, and make it work
About structure, I has several functions inside my kvm.pm, including,
initialize, load, capture, node_status and get_image_size. I already
most of them except for capture function. So basically, kvm module will
very similar thing as VMware.pm. And it generates a XML file to define
VM (like VMX file in VMware) and creates VM on KVM by sending ssh
"virsh create vm.xml". I have a script which can install necessary
and set up proper network configuration on the host. So I can use that
xCAT to create kickstart image for KVM host. I also can use the script
configure existing Fedora machine.
I can have my script and kvm provisioning code ready within three days,
you guys can take a look. So should I publish it on the JIRE?
-----Aaron Peeler <fapee...@ncsu.edu> wrote: -----
From: Aaron Peeler <fapee...@ncsu.edu>
Date: 07/29/2011 08:58AM
Subject: Re: The New KVM Provisioning module
This is great. I'd like to work with you this module.
What are your thoughts on the structure?
Have you looked at the work Andy did on the VMware Prov module:
On Tue, Jul 26, 2011 at 11:18 PM, Xianqing Yu <xia...@us.ibm.com>
> Hi VCL community,
> I am developing KVM Provisioning Module for VCL system, which is
> my previous version of KVM Provisioning Module. You can find out my
> previous KVM module's information from here,
> Currently, I am trying to make this module's code as generic as
> And I will including these features inside this new version of
> 1. The module will use libvirt API to manipulate the VM on KVM hosts.
> main reason behind this is that libvirt is widely used API, many
> the community talked about this before, and libvirt support for
> hypervisors, such as KVM, Xen, Qemu, etc.. It would be easier to port
> module to support other hypervisor in future.
> 2. A setup scripted will be developed to help the users to setup host
> 3. A document descripts how to install this module.
> Welcome everyone to join the discussion with me if you are
> about. Such as, is there any new features you expect to see in this
> Do you have any suggestion about this module? Or you have any
> about this module? Please let me know.
> Xianqing Yu
> WSTI Intern
Virtual Computing Lab
NC State University
All electronic mail messages in connection with State business which
are sent to or received by this account are subject to the NC Public
Records Law and may be disclosed to third parties.