generate a ssh key without password. Copy the pub-key to the kickstart file.

install necessary software

go to your /etc/sysconf/network-scripts/ folder

edit ifcfg-em1 to be something like this

create ifcfg-br-net to be something like this

/etc/init.d/network restart

brctl show

Now lets define the bridges to be used for openstack
Create the following files ( in your current directory )






active the networks

set the networks to auto-start

start the networks

virsh net-list –all

brctl show

Now setup VYOS using vnc or virt-manager
Assign the VYOS to the following bridges respectively

  • eth0 => br-net
  • eth1 => os-pxe
  • eth2 => os-mgmt
  • eth3 => os-stor
  • eth4 => os-vlan
  • eth5 => os-vxlan

Sample Vyos Config

Setup nginx for making installations local

test if things are working

curl -I

I create 80GB volumes for my test. In your case, you might use files.


create /usr/share/nginx/html/ksUbuntu.txt kickstart file

Make sure you copy your ssh keys for yourself, this dev server and deploy-lxc container in there

change the number of hosts you want to create in this loop

create file

if you run, it will now create new VMS everytime .. keeping the IPs the same for you that start with 10.11.12.x ..

run the script to create some vms.

Add this to your /etc/hosts

If you created any VMS using the script, they might be in shut-off state after installation is done

you just need to do virsh start c11  ; virsh start c12 etc

if everything is properly done,  you should now be able to ping them using ping c11x  c12x etc

add this to your /root/.ssh/config

Now lets create the hostname template file

create file called hostname_loop

create another file called interfaces_loop

Now lets play with some loops

you will have files like hostname.11  and interfaces.11  in your folder

assuming that all your VMS are up, lets copy over the files

more loops:

login to a few to check if all is fine, and then activate them

and wait for all to reboot.

Now after they are up, login to any of the VM and you should be able to ping:

  •  ,
  •  ,
  •  ,
  •  ,

With this, you get re-usable infrastructure all the time.


About The Author