Giter Site home page Giter Site logo

cloud-init-iso's Introduction

Cloud Init ISO

Many premade cloud images (e.g. Fedora Cloud, Ubuntu Cloud) use some form of cloud-init to set instance/user metadata, such as hostnames and SSH keys. This works well when used in a cloud infrastructure such as EC2 or OpenStack that can seed this data, but not so well when used for local VMs, or an out-of-the-box XenServer installation.

However, cloud-init supports an CD/ISO datasource, which can be loaded whether running the machine locally in KVM, VirtualBox, or on a XenServer host.

This repository and guide aims to make this task a lot easier by pre-seeding a template and script. It draws heavily on existing resources (2, 3).

Usage

  1. Clone this repository. (optional: maybe create and checkout your own branch?)
  2. Modify the meta-data YAML file to specify your instance-id and local-hostname.
  3. Modify the cloud-config YAML file to specify a password and/or SSH keys; the cloud image determines the default user's login name (e.g. fedora in Fedora Cloud).
  4. (optional) Commit your changes in git. This helps the build script name your ISO.
  5. Verify that you have the dependency genisoimage. In RHEL/CentOS/Fedora, sudo yum install genisoimage; in Ubuntu/Debian, sudo apt-get install genisoimage.
  6. Build the ISO using ./build.sh. You can either specify an output filename as the first parameter (e.g. ./build.sh output-file.iso), or you can let the script decide on the filename. If you are working inside a git repository, the build script should name your file after the branch and commit hash, such as frost-init-20141228.4d48bab28b6d8f9c43f7b6e36238ef6863b41e90.iso.
  7. If everything went well, attach the ISO file to your VM by methods conventional to your virtualization hypervisor.
  8. Boot the VM!

License

Some parts of this project are clearly not original. However, the bash script is hereby licensed under the MIT License; see LICENSE.

cloud-init-iso's People

Contributors

frederickding avatar

Watchers

 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.