GithubHelp home page GithubHelp logo

isabella232 / cf-glazier Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hpcloud/cf-glazier

0.0 0.0 0.0 1.3 MB

Repository containing scripts used for creating windows images.

License: Other

Shell 24.84% PowerShell 74.41% Batchfile 0.75%

cf-glazier's Introduction

Glazier

Summary

A collection of scripts used for building Windows images for Helion Open Stack. The output image can be configured based on a glazier-profile. Documentation can be found here.

Arguments

Syntax: create-glazier

Available options:
--windows-iso /path/to/windows_iso_kit		
	- specifies the location of the Windows iso image
    
--sql-server-iso /path/to/sqlserver_iso_kit	
	- specifies the location of the SQLServer iso image
    	
--virtio-iso /path/to/virtio_iso_kit		
	- specifies the path to the virtual drivers iso image

--hypervisor {kvm|esxi|kvmforesxi}
	- specifies which hypervisor to use. Valid options are "kvm", "esxi" or "kvmforesxi". By default it uses kvm
    	
--profile PATH					            
	- path to a glazier profile directory.Can be used multiple times. At leaset one profile is mandatory.
    	
--vm-path PATH					            
	- (optional) path to a directory where VBox files will be saved. The default is ~/.glazier
    
--with-sql-server {none|2012|2014}		
	- if this is set, you also have to set --sql-server-iso
    	
--product-key KEY				
	- Windows product key
    
--dry-run					
	- run but don't make any changes
    
--verbosity verbosity_level			
	- verbosity level is an interger between 1-3, with 1 being the least verbose and 3 being the most verbose
    
--use-colors {yes|no}				
	- should the script display colors or not

--os-network-id
	- network id used for building the OpenStack image

--os-key-name
	- name of the key used for building the OpenStack image

--os-security-group
	- security group used for building the OpenStack image

--os-flavor
	- name flavor used for buildig the OpenStack image

--help						
	- shows this message

Prerequisites

OSX
Ubuntu

##Hypervisor support

###KVM

###ESXi

###KVM for ESXi

  • This is for advanced users only. It can be used to generate images compatible with both ESXi and KVM
  • It installs the VMware drivers but no VMware guest tools. It also installs virtio drivers.
  • The iso specified with --virtio-iso needs to be a combination of the content of virtio-win-VERSION.iso and VMware-tools-windows-VERSION.iso. The easyest way to do this, is to download both isos, mount them and then copy their content in an empty folder. You should make an iso with the content of that folder. Each operating system has its own tools to accomplish this.
  • The generated Windows image format will be qcow2

Usage

To use the script you need to have the OpenStack environment variables set up:

  • OS_TENANT_NAME
  • OS_USERNAME
  • OS_PASSWORD
  • OS_REGION_NAME
  • OS_TENANT_ID
  • OS_REGION_NAME
  • OS_AUTH_URL

Optionally, you can also point the environment variable OS_CACERT to a local file containing the SSL certificate. You need to set the value of the variable to the path of the certificate.

Clone the repository:

git clone [email protected]:hpcloud/cf-glazier.git

Run dry-run to check your parameters:

Step 1. Create the glazier Virtual Machine

cd cf-glazier
./create-glazier --windows-iso <path to windows iso> --virtio-iso <path to VirtIO iso> --product-key <Windows Product Key> --os-network-id <os network ID> --os-key-name <os region name> --os-security-group <os security group> --os-flavor <os flavor name> --profile <path to profile dir> --dry-run

Create the glazier Virtual Machine.

./create-glazier --windows-iso <path to windows iso> --virtio-iso <path to VirtIO iso> --product-key <Windows Product Key> --os-network-id <os network ID> --os-key-name <os region name> --os-security-group <os security group> --os-flavor <os flavor name> --profile <path to profile dir>

Step 2. Create the Image

On the glazier VM run the following command:

New-Image -name "myimage" -GlazierProfilePath "PROFILE"

Step 3. Initialize image

On the glazier VM run the following command:

Initialize-Image -Qcow2ImagePath "c:\workspace\<qcow filename>" -ImageName "my-windows-image"

The is printed after Step 2 is done.

Step 4. Push Resources

This step is only needed when the user wants to update the binaries of the profile.

On the glazier VM run the following command:

Push-Resources -GlazierProfilePath "PROFILE" -SnapshotImageName "my-windows-image"

cf-glazier's People

Contributors

mihaibuzgau avatar florindragos avatar calinmiclaus avatar gertd 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.