Coder Social home page Coder Social logo

starter-machine's Introduction

starter-machine

Starter to easily create machines

Dependencies

  • git
  • make

Setup

First, you need to install dependencies

make install

Usage

There is 3 mode of building: local, container, vm

build local

  • Run ansible playbook locally $ make build-local machine=desktop-ubuntu-focal

build container

  • first build the template image $ cd templates/containers $ make build dist=ubuntu version=focal user=foo password=bar tag=latest

  • then, tag it as template $ docker tag romainprignon/ubuntu/jammy:latest romainprignon/desktop/ubuntu/jammy:template

  • then, copy template var files near machine.json file desktop-ubuntu-jammy.var.template.json => desktop-ubuntu-jammy.var.json

  • then, build using ansible and docker builder $ cd ../.. $ make build machine=desktop-ubuntu-focal builder=docker

build machine

  • first add the template vm image $ cd templates/vms/vm_name $ mv my_vm.ovf vm_name.ovf $ mv my_vm.vmdk vm_name.vmdk

  • then, build using ansible and packer builder $ cd ../.. $ make build machine=desktop-ubuntu-focal builder=packer

release

metal

  • create a raw image that can be used with dd
$ make release-metal

FIX

  • swap
  • multipass

QA

source .profile first in docker

templates with vm

  • manually install ubuntu 20.04
  • need to install ssh server either while installing the system or via cmdline on first boot
  • you can check in virtualbox using port translation 22 to 2222 on host and do
  • upgrade accordingly (22.04, 24.04,...)
  • export (change file name to ovf, only nat, no additional), you'll endup with a ovf and a vmdk file
  • put it in:
    • templates/vms/ubuntu-${version}/ubuntu-${version}.ovf
    • templates/vms/ubuntu-${version}/ubuntu-${version}-disk001.vmdk
ssh -vvv -p 2222 [email protected]

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.