[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [virt-tools-list] Regarding automation of VM creation



On 03/25/11 - 01:00:30PM, siva koteswararao wrote:
> Hi all,
>       I would like to create the XEN guests using virt-install package. I
> was able to write the correct command line options for creating the guest
> like ram,location etc. But, is there any way to automate the installation of
> O.S too using command line? If so, please tell me.
> 
> For eg: I would like to create a VM(XEN Hyper) with O.S as ubuntu. For this
> I have written the following command.
> 
> virt-install --name myubuntu --hvm --ram 1024 --disk
> path=/dev/vg_new/ubuntu1,size=10 --vnc --os-type=linux --os-variant
> ubuntulucid -c /var/images/ubuntu-10.04-alternate-i386.iso --vcpus=1
> 
> But, I also want to give options like 'english' as language and location as
> 'india' etc through command line for ubuntu installation. Please tell me if
> there is any way to do it. I would like to do all this process(till the end
> of OS installation) by issuing commands.

While I don't know of a way to do this using virt-install, I have written a
tool that can do this in general called Oz: http://aeolusproject.org/oz.html.
That being said, I've never tested it with Xen.  In theory it should work
for fully virtualized domains, but I just don't know.  If you do want to try
it out, what you'll have to do is edit oz.cfg before running and change the
libvirt.uri key to "xen:///system".

If you do give Oz a try, I am interested in your experience (both positive and
negative) so that I can improve the tool.

Thanks,
-- 
Chris Lalancette


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]