[Pkg-libvirt-commits] [libguestfs] 02/12: v2v: Add scripts for building RHEL 7 virt-v2v appliance.

Hilko Bengen bengen at moszumanska.debian.org
Sun Nov 1 17:11:43 UTC 2015


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag upstream/1.29.41
in repository libguestfs.

commit 4e4ece53647fba810eeb45086b46d02f54e02fe2
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Fri May 8 15:46:11 2015 +0100

    v2v: Add scripts for building RHEL 7 virt-v2v appliance.
---
 v2v/rhel-7-virt-v2v-appliance.config |  18 +++++
 v2v/rhel-7-virt-v2v-appliance.ks     | 124 +++++++++++++++++++++++++++++++++++
 2 files changed, 142 insertions(+)

diff --git a/v2v/rhel-7-virt-v2v-appliance.config b/v2v/rhel-7-virt-v2v-appliance.config
new file mode 100644
index 0000000..07b2ea4
--- /dev/null
+++ b/v2v/rhel-7-virt-v2v-appliance.config
@@ -0,0 +1,18 @@
+# https://mojo.redhat.com/docs/DOC-953445
+# Build using:
+# brew image-build [--scratch] --config=rhel-7-virt-v2v-appliance.config
+
+[image-build]
+name = virt-v2v
+version = 7.1
+target = rhel-7.1-candidate
+install_tree = http://download.lab.bos.redhat.com/rel-eng/RHEL-7.1-20150219.1/compose/Server/x86_64/os/
+arches = x86_64
+format = qcow2
+disk_size = 20
+distro = RHEL-7.1
+
+repo = http://cdn.stage.redhat.com/content/dist/rhel/server/7/7.1/x86_64/os/,http://cdn.stage.redhat.com/content/dist/rhel/server/7/7Server/x86_64/openstack/6.0/os/,http://cdn.stage.redhat.com/content/dist/rhel/server/7/7Server/x86_64/v2vwin/os/ 
+
+ksversion = RHEL7
+kickstart = rhel-7-virt-v2v-appliance.ks
diff --git a/v2v/rhel-7-virt-v2v-appliance.ks b/v2v/rhel-7-virt-v2v-appliance.ks
new file mode 100644
index 0000000..06ad06a
--- /dev/null
+++ b/v2v/rhel-7-virt-v2v-appliance.ks
@@ -0,0 +1,124 @@
+# Kickstart file for creating the RHEL 7 virt-v2v appliance.
+# (C) Copyright 2014-2015 Red Hat Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+# NB: Use rhel-7-virt-v2v-appliance.conf to build the appliance.
+# Read the instructions at the top of that file.
+
+lang en_US.UTF-8
+keyboard us
+timezone --utc GMT
+
+rootpw --plaintext v2v
+
+selinux --enforcing
+firewall --enabled
+
+network --bootproto=dhcp
+
+bootloader --location=mbr --append="console=tty0 console=ttyS0,115200 rd_NO_PLYMOUTH"
+zerombr
+clearpart --all --initlabel
+autopart --type=plain
+
+reboot
+
+# Repository lines.
+# Note that brew ignores these and overrides them with the ones
+# specified in the config file.
+
+repo --name=rhel --baseurl=http://cdn.stage.redhat.com/content/dist/rhel/server/7/7.1/x86_64/os/
+repo --name=v2v --baseurl=http://cdn.stage.redhat.com/content/dist/rhel/server/7/7Server/x86_64/openstack/6.0/os/
+repo --name=v2vwin --baseurl=http://cdn.stage.redhat.com/content/dist/rhel/server/7/7Server/x86_64/v2vwin/os/
+
+%packages
+
+ at core
+
+# rpm must be installed, else you'll hit RHBZ#1089566.
+rpm
+
+# Note you must have a kernel, else the boot menu won't work:
+kernel
+
+# This is required in order for RHEL to set the root password.
+passwd
+
+# RHEL needs this in order to get networking.
+NetworkManager
+
+# Required to run firewall --enabled kickstart command:
+firewalld
+
+# The packages to install.
+virt-v2v
+libvirt-client
+libguestfs-tools-c
+libguestfs-xfs
+libguestfs-winsupport
+
+# Allow users to subscribe the appliance to RHN, if they wish.
+subscription-manager
+
+# Packages to make the bare system more usable.
+emacs
+#libguestfs-rescue
+mlocate
+net-tools
+nfs-utils
+ntp
+sed
+telnet
+
+%end
+
+# Post-install configuration.
+%post
+
+# /etc/issue
+
+cat > /etc/issue << 'EOF'
+Welcome to the Red Hat Enterprise Linux 7 virt-v2v appliance.
+
+Tips:
+
+ * Login: root Password: v2v
+
+ * Read the manual page before trying to use virt-v2v:   man virt-v2v
+
+ * Find out which version of virt-v2v is installed:      rpm -q virt-v2v
+
+ * To switch between virtual consoles, use ALT+F1, ALT+F2, etc.
+
+ * If you need more disk space, mount NFS directories on /mnt.
+
+ * virt-v2v is constrained by the speed and latency of the network.
+   Use virtio-net and fast, local network connections where possible.
+
+EOF
+
+cp /etc/issue /etc/issue.net
+
+# Remove HWADDR from ifcfg-*, else NetworkMangler will ignore
+# it when it has a random MAC address on next boot.
+for f in /etc/sysconfig/network-scripts/ifcfg-*; do
+  sed -i '/^HWADDR.*/d' $f
+done
+
+# A little trick to speed up the first run of libguestfs.
+LIBGUESTFS_BACKEND=direct guestfish -a /dev/null run >/dev/null 2>&1 ||:
+
+%end

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list