Git Product home page Git Product logo

cloud2023's Introduction

Environment

disediakan 1 buah mesin dengan web based terminal

  • mesin-1

untuk menjalankan dibutuhkan

  • docker
  • docker-compose
  • docker image royyana/vmdev:2.00

Note

royyana/vmdev:2.00 merupakan docker image yang telah dilengkapi dengan berbagai macam tool yang ready to use untuk keperluan MK komputasi awan berisi diantaranya adalah qemu, ip, firecracker, kubectl, docker, docker-compose

menjalankan lab

cd environment
docker-compose up -d

Note

Lokasi penting didalam container webbased terminal dapat diakses di http://[ipaddress]:10001 dengan username:user1 password:mesin1

  • direktori work /home/work
  • direktori script /script/

untuk menghentikan lab

docker-compose down

Provisioning VM

  • Membuat virtual switch/bridge
cd /home/work

pindah ke tempat default untuk home direktori

sh /script/bridge-init.sh

untuk menhghasilkan script yang dibutuhkan dalam provisioning virtual switch / bridge untuk menghubungkan antar VM akan menghasilkan direktori br0 (by default) atau yang lain , jika diinginkan di dalam direktori tersebut akan terdapat beberapa script automasi untuk

  • mengaktifkan bridge, mendaftarkan rule firewall, setting NAT, dan mengeset DHCP (dnsmasq)
  • menonaktifkan bridge dan segala pendukungnya
  • menonaktifkan tap interface
cd br0
sh create.sh

untuk mengaktifkan bridge dengan id br0 cek dengan

  • ps ax , akan terlihat process dnsmasq
  • ifconfig br0
  • iptables -L -n

untuk menonaktifkan dan menghapus bridge

sh delete.sh

Membuat VM

cd /home/work
sh /script/vm-init.sh

untuk menghasilkan script yang dibutuhkan dalam provisioning VM (qemu). by default adalah vm0 provisioning membutuhkan otomasi

  • menjalankan qemu
  • menjalankan webbased vnc terminal
cd vm0

sesuaikan isi file .vm-settings untuk mengeset beberapa parameter seperti macaddress dan port serta vcpu dan storage

sh update.sh 

update.sh melakukan otomasi untuk mengenerate boot image dan storage

sh create.sh

untuk menjalankan qemu dan perlengkapannya (web based vnc terminal). pada saat berjalan, vm dapat diakses dari web based terminal berbasis VNC dengan password ip didalam VM akan bergantung dari switch/bridge setting yang digunakan

sh down.sh

untuk menghentikan qemu/vm, untuk menjalankan lagi jalankan create.sh lagi

cloud2023's People

Contributors

rm77 avatar

Watchers

 avatar  avatar

Forkers

ixtza

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.