Re: Best way to assemble vm images

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

 



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
_______________________________________________
cloud mailing list
cloud@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/cloud





[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Big List of Linux Books]     [Yosemite News]     [Linux Apps]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

  Powered by Linux