Code Monkey home page Code Monkey logo

docker-vmi-builder's Introduction

Docker VMI Builder

docker-vmi-builder is a Docker virtual machine image builder for Ubuntu. The VMI file can be used with any virtual machine which has support for x86_64 / amd64 system and qcow2 disk image format.

Installation

git clone https://github.com/cmfatih/docker-vmi-builder.git

Usage

./docker-vmi-builder.sh

Test

sudo qemu-system-x86_64 -m 512 -hda docker-vmi-img.img -display none -usbdevice tablet -vnc :5,docker -net user,hostfwd=tcp:127.0.0.1:8022-:22 -net nic -daemonize
ssh [email protected] -p 8022

Requirements

Ubuntu Packages
  qemu-system 
  rsync 
  genisoimage

Notes

  • For login; username: dockervmi , password: dockervmi
  • The building process requires sudo for mounting Ubuntu ISO file.
  • ubuntu-12.04.3-server-amd64.iso file (697MB) will be downloaded from Ubuntu server. Putting this file to the script folder (before running the builder) will prevent download process.
  • The process will create ~1.33GB uncompressed qcow2 formatted image file. It can be compress to ~500MB.
  • The building process takes ~15 minutes with AMD 12 core CPU, 32GB RAM, SSD disk. It can be monitor with VNC client.
  • Qemu doesn't require X Window System. Use -display none -net user,hostfwd=tcp:127.0.0.1:8022-:22 -net nic parameter for starting VM and use ssh [email protected] -p 8022 for connection.
  • Qemu for Windows doesn't require any installation. So Qemu archive file and the VMI can be contribute with a single archive file.

Changelog

  • 20130929 -enable-kvm option is removed. The login username and password changed.
  • 20130919 Ubuntu 12.04.3 and Docker v0.6.x (Docker repository)

Showcase

The building process

docker-vmi-builder.sh

Using the VMI on Windows with Qemu+SSH+PuTTY

docker-vmi-img.img

License

Copyright (c) 2013 Fatih Cetinkaya (http://github.com/cmfatih/docker-vmi-builder)
Licensed under The MIT License (MIT)
For the full copyright and license information, please view the LICENSE.txt file.

docker-vmi-builder's People

Contributors

devfacet avatar

Watchers

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.