Best way to assemble vm images
Krishna Raman
kraman at gmail.com
Mon Jul 15 16:29:56 UTC 2013
I am building these images in an automated (nightly) fashion on ec2 and would prefer a method which doesn't require me to spun up a VM on a ec2 machine.
Oz works great when I have the ability to running a VM and if it is the only option at the moment then I will use it but still looking for alternatives.
Thanks
--Krishna
On Jul 15, 2013, at 9:21 AM, Kashyap Chamarthy <kchamart at redhat.com> wrote:
> On 07/15/2013 09:42 PM, Krishna Raman wrote:
>> Hi,
>>
>> When building on a f19 system, is appliance-creator still the best way to build F19 qcow2
>> images or should I be using something else?
>
>
> I recommend Oz (that's what I use all the time to create JEOS images):
>
> Here's a simple script (which provides a simple Oz TDL, and calls 'oz-install' command.)
>
> # Fetch the script
> $ wget https://github.com/kashyapc/virt-scripts/blob/master/oz/oz-jeos.bash
>
> # Run the oz script (it'll take 5 minutes or so):
> $ ./oz-jeos.bash f19-devstack-new f19
>
> # Once install is finished, define the just thrown XML file
> # (the below is just an example, change it appropriately)
> $ virsh define f19-jeosJul_04_2013-12
>
> # Start the guest over serial console
> $ virsh start f19-jeos --console
>
>
> You can adjust the TDL section of the script according to your needs.
>
> For instance, if you need a 3G disk image (Oz by default creates 10G), you can use this
> below TDL:
>
> -----------------
> $ cat f19disk3gb.tdl
> <template>
> <name>devstack</name>
> <os>
> <name>Fedora</name>
> <version>19</version>
> <arch>x86_64</arch>
> <install type='url'>
> <url>http://dl.fedoraproject.org/pub/fedora/linux/releases/18/Fedora/x86_64/os/<</url>
> </install>
> <rootpw>testpwd</rootpw>
> </os>
> <description>Fedora 19</description>
> <disk>
> <size>3</size>
> </disk>
> </template>
> -----------------
>
>
> And, Invoke:
>
> $ oz-install /path/to/tdl file
>
>
>
>
> --
> /kashyap
More information about the cloud
mailing list