Re: GCE Images with Imagefactory/oz

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

 



On Fri, Jun 27, 2014 at 06:18:06PM -0500, Renich Bon Ciric wrote:
> On Wed, Jun 25, 2014 at 11:12 AM, Richard W.M. Jones <rjones@xxxxxxxxxx> wrote:
> > So I've only skimmed the Google Cloud Engine docs, but this would be
> > how you could do this with virt-builder ...
> >
> >   $ virt-builder fedora-20 --output disk.raw --size 10G \
> >       --install bash-completion,denyhosts,irqbalance,ntp,patch,rsyslog,yum-cron-daily \
> >       --hostname metadata.google.internal \
> >       --write '/etc/hosts:
> > 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
> > 169.254.169.254 metadata.google.internal metadata
> > ' \
> >
> > # use --write or --upload for the other files
> >
> >       --delete /etc/sysconfig/networking \
> >       --edit '/etc/ntp.conf:
> >                    /^server [1-3]\.fedora.*$/d' \
> >       --run-command 'systemctl disable firewalld.service iptables.service' \
> >
> > # (I got bored, there are more commands ...)
> >
> >   $ tar zcf fedora-20.tar.gz disk.raw
> >
> > No root needed!
> >
> > Rich.
> 
> 
> Oh, please, check out my version of things here:
> https://github.com/renich/gce-images-fedora/tree/master/virt-builder
> 
> I'd love a review by the creator! ;)
> 
> I tried to keep the command not so bloated. I used a --firstboot
> command to put everything I could in the script. At least things that
> don't require scripts as parameters.
> 
> The "build" is the command and "setup" is the script to follow; very
> much ike a post-install section on a kickstart.

Sorry for the delayed reply, but yes this looks good to me.

(I've not used the gc* utilities so I'm not really
qualified to talk about those).

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org
_______________________________________________
cloud mailing list
cloud@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/cloud
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct





[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