Coder Social home page Coder Social logo

smartos-ubuntu's Introduction

smartos-ubuntu

Scripts to generate modern Ubuntu images for SmartOS.

background

Since switching to Ubuntu Certified images, Joyent has not provided any recent Ubuntu images for SmartOS. The Internet has various guides for installing Ubuntu on a SmartOS, but none provide the same experience we have grown to love from Joyent's images.

As a result, this project was born to document and automate the process.

high level overview

0-setup.sh: setup an existing Ubuntu server to generate a SmartOS image

1-prep.sh: download the official cloud image from Ubuntu

2-run.sh: convert the official cloud image from Ubuntu into a SmartOS image

tutorial

Run the following on an Ubuntu server to produce the SmartOS image:

sudo apt-get -y install git
git clone https://github.com/jfqd/smartos-ubuntu.git
cd smartos-ubuntu/
bash 0-setup.sh 
bash 1-prep.sh 
bash 2-run.sh 

This process takes a while (downloading and running dd). You will end up with a zvol.gz file. Use this file with imgadm in the global zone of a SmartOS host.

For example:

imgadm install -m your.json -f your.zvol.gz

Once that completes, you should see your image when you run this:

imgadm list

Create a new KVM guest using vmadm:

vmadm create -f ubuntu.json

imgadm json manifest

The imgadm install command expects a json manifest file describing your new image. We provide an example / template in the json-template directory called image.json.

You will need to adjust a few values, below we list some hints.

Use this command on Ubuntu to generate a random uuid for your image's manifest:

python -c 'from uuid import uuid4;print(uuid4())'

Use this command on Ubuntu to generate a sha1 for your new image

sha1sum *.zvol.gz

Use this command to get the images bytes (5th column):

ls -l *.zvol.gz

smartos-ubuntu's People

Contributors

jfqd avatar rsully avatar russellballestrini 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.