[et-mgmt-tools] How to create XEN virtual machine from iso file

Michael DeHaan mdehaan at redhat.com
Wed Aug 15 14:26:39 UTC 2007


John Sanabria wrote:
> Hi,
>
> Here at UPRM, we are working in to build a Linux distro to create a grid
> computational nodes.
>
> Now, we have a preliminar distro image. I wanna know how to create a xen
> virtual machine using cobbler from an iso image?
>
>   

If the distro follows the regular ISO structure that Fedora, RHEL, and 
derivatives follow, the following will work:

cobbler import --name=mydistro --path=/mnt/mounted_iso_location 

If not, you can use "cobbler distro add" and just copy your install tree 
from the DVD to a location
in your http tree.   The path "local_mirror" is reserved for this purpose.

/var/www/cobbler/local_mirror/mydistro

The distro add command is documented in the manpage.

You would then update your kickstarts to reference the install tree at 
the new location.   This could be done by
changing the URL line in the kickstart or, if the template contains the 
"$tree" variable like the cobbler
templates, you can just feed it in by changing the template parameter 
that describes where the install tree is...

cobbler distro edit --name=mydistro-i386 
--ksmeta="tree=http://server.example.org/cobbler/local_mirror/mydistro/.../tree"

OR just

cobbler profile edit --name=mydistro-i386 
--kickstart=/opt/mystuff/newkickstart.cfg

FYI -- I believe you were one of the people who were using the "enchant" 
function for remote installation of nodes.
Since this is just a wrapper around ssh (ssh target.example.com koan 
--virt --profile=foo --server=bootserver.example.com) I will probably be 
removing this
function in the next couple of releases.   You may want to update your 
code to just invoke koan over SSH and if neccessary
deploy koan with scp or to pull it in with yum or up2date.   Looking 
over the "action_enchant.py" module should give you a good
idea what is going on.  

> Thanks a lot, regards.
>
> http://ece.uprm.edu/~s047267
> http://del.icio.us/josanabr
> http://blog-grid.blogspot.com
>
>
>
>
>
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools at redhat.com
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools
>   




More information about the et-mgmt-tools mailing list