Giter Club home page Giter Club logo

laptoplab's Introduction

ll-build is a script I wrote to create a number of KVM guests to
test/demo technologies on my laptop.

The ll-build script currently creates three KVM guests from the RHEL
DVD ISO image:

 * an IPA server
 * a CloudForms System Engine server
 * a cobbler server

You should be able to PXE boot new guests from the cobbler server on
the private network that is created on your laptop.

ll-build requires a few things before you start:

1. You'll need an RHN account and a RHEL DVD ISO image.

2. You'll need to allocate some entitlements to your System Engine
   server and download a manifest file (manifest.zip) from
   access.redhat.com.

3. You'll need a public ssh key for the default user account.

4. You'll need to set up a private network for libvirt managed
   guests.  Drop the following file in /etc/libvirt/qemu/networks/10_0.xml :

    <network>
      <name>10_0</name>
      <uuid>fc760627-1490-3fa4-7719-7b40a1c48f65</uuid>
      <forward mode='nat'/>
      <bridge name='ll0' stp='on' forwardDelay='0' ></bridge>
      <ip address='10.0.0.1' netmask='255.255.255.0'/>
    </network>

Now do this...

    cd /etc/libvirt/qemu/networks/autostart/
    ln -s ../10_0.xml .

That's it.


ll-build requires that you set a number of environment variables to
configure the system.  They are documented at the top of the script.
You can either modify the script to change these values, or create a
~/.ll-config file to set all of the values.   Here's an example...

# ~/.ll-config
#
# Copyright (C) 2012  Anthony Green <[email protected]>
#
    
LL_DOMAIN=atgreen.org
LL_RHELDVD=/home/green/Downloads/rhel-server-6.3-x86_64-dvd.iso
LL_COBBLER_DISTRO_NAME="rhel6.3-x86_64"
LL_ROOTPW=r3dhat1.
LL_MOUNTPOINT=/mnt
LL_RHN_LOGIN=greenrhn
LL_RHN_PASSWORD=myrhnpassword
LL_SE_MANIFEST=/home/green/Downloads/manifest.zip
LL_SE_ADMIN=admin
LL_SE_ORGNAME=Laptop_Lab
LL_IPA_USER_LOGIN=green
LL_IPA_USER_FIRST=Anthony
LL_IPA_USER_LAST=Green
LL_IPA_USER_PUBKEY="AAAABkjhsdGyc2EAAAABIwAAAIEAulmkoAcVRdBCIdH1bPcb6CTpyFH31Zfp96yxd2TJamQuiZcrmIbuwP6KdTHILtLbNn+FWkcYNFA6Rfjz1997u0JZ4zfE0pJMd226vpUbZOseeKXmBf8IgjitLnPyKq6FNufQz+xsnwOYumLAb1NjzrzgNvtAY5WnXrhi4gb1YOs="

laptoplab's People

Contributors

atgreen avatar

Stargazers

Kat Morgan avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.