Build k8s cluster on hyper-v with Vagrant

Demo how to build up multi nodes k8s cluster on hyper-v with Vagrant. Will address few pain points: NAT static ip adaptor in hyper-v, needed for permanent k8s API server reset static ip in vagrant provision before installation and configuration Docker installation script Following up Docker official Ubuntu installation procedure, …

Launch Ubuntu 20.04 k8s 1.21.4 cluster using vagrant box

Launch Ubuntu 20.04 k8s 1.21.4 cluster using vagrant box dreamcloud/ubuntu20-k8s is a k8s dev ready box, here is demo to show how to launch a 3 nodes k8s cluster in few mins using vagrant. tool set Vagrant 2.2.10 Virtualbox 6.1 prepare Vagrantfile $ mkdir /mnt/c/vagrant/ub20k8s $ curl -LO https://raw.githubusercontent.com/robertluwang/dreamcloud-vagrant/master/ubuntu20-k8s/Vagrantfile assume …

Launch ubuntu18 dev vm from dreamcloud-ubuntu18

I build dreamcloud/ubuntu18 vagrant box as practice, it is a dev ready vm: Guest Tool, shared folder gcc/git/python3/pip3 Here is demo how to launch ubuntu18 vm from this base, add 2nd host-only interface for private network. Vagrantfile vagrant up /mnt/c/vagrant/ubuntu18$ vagrant.exe up Bringing machine ‘ubuntu18’ up with ‘virtualbox’ provider… ==> …

One Node Two NIC Openstack Sandbox(centos) Vagrant Setup Guide

virtulabox vm node centOS based vm memory: 4-6GB CPU: 2 HD: 50G NIC1: NAT default 10.0.2.15, dhcp, for Internet access, ovs br-ex NIC2: Hostonly, static ip, 172.25.250.1, for openstack management/public network 172.25.250.0/24 opensatck vm user/pass: vagrant/vagrant openstack admin user/pass: admin/demo use vagrant to launch openstack sandbox $ mkdir vagrant/ctosbox2 $ …

vagrant pain point on 2nd Hostonly NIC setup

vagrant stuck at "Setting hostname" for private network setup ==> ctosbox2: Setting hostname… debug log from debug log, it used hostnamectl to change hostname, then will restart network service, DEBUG ssh: stderr: 41e57d38-b4f7-4e46-9c38-13873d338b86-vagrant-sshDEBUG ssh: stderr: cat: /etc/photon-release: No such file or directoryDEBUG ssh: Exit status: 1 DEBUG guest: Trying: redhat …

create web server using cloud-init

openstack sandbox Follow up the setup guide. create web server instance using cloud-init web-server-vm1, fedora, m2.small, ssh to web server [vagrant@ctosbox1 ~(keystone_lab_user)]$ ssh -i /home/vagrant/.ssh/lab-key.pem fedora@172.25.250.32 This is web server test using cloud-init from /etc/motd, can see cloud-init performed. vm Internet access ok, [fedora@web-server-vm1 ~]$ ping google.ca PING google.ca (172.217.9.131) …

Create ftp server using cloud-init

openstack sandbox setup Follow up the setup guide. create ftp server new instance: ftp-server-vm1, m2.small Configuration/Customization Script monitor instance booting log Project/Compute/Instances/Log/View Full Log ping floating ip not working due to it will take longer time than cirros, can check progress from above gui log, [vagrant@ctosbox1 ~(keystone_lab_user)]$ nova list +————————————–+—————-+——–+————+————-+——————————————+ …

One Node One NIC Openstack Sandbox(centos) vagrant Setup Guide

virtulabox vm node centOS based vm memory: 4-6GB CPU: 2 HD: 50G You can build it from centos 7 Minimal iso manually, then followed RDO packstack guide to install one node openstack manually. Please refer this one NAT Network NIC manually packstack setup guide. Also I created this centos7 openstack …