[Libguestfs] [libguestfs] RFE: virt-builder ability to print definition for single template (new option or expand --notes) (#20)
Ryan Sawhill
rsawhill at redhat.com
Thu Jan 14 17:00:22 UTC 2016
On Thu, Jan 14, 2016 at 6:36 AM, Pino Toscano <ptoscano at redhat.com> wrote:
> I'm not sure it makes sense to print the internal representation of the
> templates, since that could change anytime (like the format of the
> revision field, which changed between 1.30 and 1.32). We have the JSON
> output for getting the information about templates, so additions should
> be done there.
I think virt-builder should have an option for normal people to print the
full template info, but I guess that's up to you guys. I implemented it as
-i/--info in my own virt-builder frontend by parsing the json, e.g.:
$ mkvm --info r7.2
> template : r7.2
> osinfo : rhel7.2
> compressed-size : 356163292
> full-name : rsaw's Red Hat Enterprise Linux 7.2
> hidden : False
> arch : x86_64
> size : 10737418240
> notes:
> Red Hat Enterprise Linux 7.2
>
> THIS IMAGE IS NOT REGISTERED TO RHN/RHSM BUT IT DOES HAVE YUM REPOS
> WHICH ARE ONLY AVAILABLE ON THE RH CORPORATE NETWORK.
> REGARDLESS, DO NOT REDISTRIBUTE OUTSIDE OF RED HAT.
>
> Details:
> - Image in qcow2 format for easy snapshotting.
> - LVM is used for rootfs & swap with default autopart settings so
> that you see what customers see.
> - GRUB timeout lowered from 5 to 2 sec.
> - Serial console is enabled (GRUB and kernel/init) and is primary
> which means you should use it for any rescue operations.
> - The @base package group is installed (not just @core), along with:
> screen, vim-enhanced, kernel-doc, sos, elinks, setools-console,
> policycoreutils-python, psmisc, ntp, rsawaroha-release, xsos.
> - All yum repos from DVD are enabled by default (base, Optional,
> HighAvailability, and ResilientStorage) as is the Extras repo.
> The debuginfo & source repos are also present, but disabled.
> - RPM-GPG-KEY-redhat-release is already imported and gpgcheck=1
> is set for all enabled repos.
> - The kdump service is disabled.
> - Console login screens (serial/tty) print IPv4 & IPv6 addrs of all
> present NICs (thanks to update-etcissue-nics.service modifying
> /etc/issue at boot time to add escapes for agetty).
> - chronyd and ntpd are both configured with RH corporate timeservers
> and settings suitable for virtual machines (chrony: "makestep 1 3";
> ntp: "tinker panic 0"); however only chronyd is enabled.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20160114/001db4c3/attachment.htm>
More information about the Libguestfs
mailing list