Giter VIP home page Giter VIP logo

prathidhwaniworkshop's Introduction

Is Dockerless world a reality ?

Workshop on 15-December. Hosted by Prathidhwani Kochi @ Ahulya InfoPark

Event registration Details

Prerequisites

Pre-built Image Downloads

Import this pre-built image and create a new virtual machine

Image format OS hypervisor Image download Link
Qcow2 Linux KVM https://goo.gl/fywwKG
VDI Windows VirtualBox https://goo.gl/Ne6W5b
VDI Linux VirtualBox https://goo.gl/Ne6W5b

Credentials

username: root
password: passw0rd

Cloud images for KVM

Outline

  • Download Fedora 29 or Centos7 cloud image from the links given below
  • Either download a prebuilt cloud init image or prepare one
  • Before booting the VM for the first time, cloud init iso image should be attached to the VM
  • Credentials for login: username: passowrd
Image format OS hypervisor Image download Link Credentials
Qcow2 Linux KVM Fedora 29 qcow2 Size 230MB user: fedora password:passw0rd [sudo enabled]
Qcow2 Linux KVM Centos 7 qcow2 Size 252MB user:centos password:passw0rd [sudo enabled]
  • Create Cloud-init ISO file

You can use the pre-built cloud-init iso image by clicking here. If you are downloading the pre-built cloud init image, then proceed to Creating Virtual Machine

  • Steps for Preparing cloud init image

Create a directory and two files should be created with the following contents. For example, path shown here is /vm. Replace the path as per your system configuration

        mkdir -p /vm/workshop
        cd /vm/workshop

The first file should be named as user-data. Include the following contents. Note password for the debian user is set as passw0rd. Change the password as required.

#cloud-config
password: passw0rd
chpasswd: { expire: False }
ssh_pwauth: True

Create another file called meta-data. Include the following contents. Hostname of the VM is set as debian-node-0

instance-id: workshop0
local-hostname: workshop-node-0
  • Create an ISO image using the two files. Execute the following command. This will create an iso image called cloud-init-workshop.iso. genisoimage package should be installed on the system.
genisoimage -output cloud-init-workshop.iso -volid cidata -joliet -rock user-data meta-data
  • Download the cloud based image to /vm/workshop

Creating the Virtual Machine

  • Create the VM instance using command line tool. Package virt-install should be installed on the node. In the below command, modify the path mentioned after --disk. You have to modify two --disk paths. First path should point to qcow2 image.
virt-install --import --name workshopvm --memory 2048 --vcpus 1 --disk /vm/workshop/Fedora-Cloud-Base-29-1.2.x86_64.qcow2,format=qcow2,bus=virtio --disk /vm/workshop/cloud-init-workshop.iso,device=cdrom --network bridge=virbr0,model=virtio  --noautoconsole
  • Execute virt-manager to access the VM or virsh console workshopvm. In the virsh command, workshopvm was the name of the VM that was created using the virt-install command. To exit from virsh command, use CTRL+]
  • To login to the virtual machine, use the credentials mentioned in the above table.
  • Proceed to Package installation Instruction mentioned below

Package Installation Instruction

  1. Package installation using yum
yum install podman buildah docker skopeo docker-distribution cri-o 
  1. Additional package
curl -OL https://github.com/wagoodman/dive/releases/download/v0.5.0/dive_0.5.0_linux_amd64.rpm
yum localinstall dive_0.5.0_linux_amd64.rpm
  1. Download kubeadm as per instruction mentioned in the below document. Choose the appropriate method based on your OS https://kubernetes.io/docs/setup/independent/install-kubeadm/

Note: No need to SElinux to permisive mode at the install time. Just install the package. For Fedora

yum install -y kubelet kubeadm kubectl cri-tools --disableexcludes=kubernetes

prathidhwaniworkshop's People

Contributors

ranjithrajaram avatar

Stargazers

Bujail Swadiq K K avatar

Watchers

James Cloos avatar

Forkers

bujail sreedathns

prathidhwaniworkshop's Issues

buildah mount example

there's an extra newline character in the curl command
the tar file path in tar xcvf should be starting with /tmp
below was the error during./configure
"configure: error: in `/var/lib/containers/storage/overlay/84885bcd2ba57401e671bf69254445ebd1fba208d44298d00b52cb12b1a9eaf2/merged/opt/hello-2.10':
configure: error: no acceptable C compiler found in $PATH"

installed development-tools and the above error is gone.

build commit is successful

Tarball path issue

In place of tar xvzf src/hello-2.10.tar.gz -C ${mountpoint}/opt it should be tar xvzf /tmp/hello-2.10.tar.gz -C ${mountpoint}/opt

Development tools

running yum groupinstall "Development Tools" in local machine fixed the issue and I could commit new image

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.