Project laboratory is providing a virtual environment by vagrant. A sandbox to practice your linux skills.
Get Provider:
Suggestion to use libvirt as vagrant provider in linux, for mac & windows, VirtualBox could be a good solution.
Get Vagrant:
Prepare box:
# vagrant box add centos/7
Turn on laboratory
# cd laboratory
# vagrant up
Do not use vagrant manage laboratory, use provider(VirtualBox or others) 's manage tool do this.
Destroy laboratory
# cd laboratory
# vagrant destroy
Environment:
hostname | eth0 | eth1 | eth2 & eth3 |
---|---|---|---|
lab.example.com | Vagrant default | 172.25.0.254 | 192.168.0.254 |
server.example.com | Vagrant default | 172.25.0.11 | 192.168.0.111/112 |
desktop.example.com | Vagrant default | 172.25.0.10 | 192.168.0.101/102 |
NTP & DNS server:
lab.example.com
Resolving DNS service:
IP Address | A Record | MX Record |
---|---|---|
172.25.0.254 | lab.example.com | - |
172.25.0.11 | server.example.com | server.example.com |
172.25.0.11 | www.example.com | - |
172.25.0.11 | webapp.example.com | - |
172.25.0.10 | desktop.example.com | desktop.example.com |
CA Certificate: http://lab.example.com/pub/example-ca.crt
TLS Certificate: http://lab.example.com/pub/tls/certs
TLS Private Key: http://lab.example.com/pub/tls/private
Ldap & Kerberos Configure:
TLS: http://lab.example.com/pub/EXAMPLE-CA-CRT
Server: lab.example.com
Base DN: dc=example,dc=com
Realm: EXAMPLE.COM
kdc: lab.example.com
Admin Server: lab.example.com
Keytab Files: http://lab.example.com/pub/keytabs
Ldap User:
Username | Password | Home directory |
---|---|---|
bruce | kerberos | /home/guests/bruce/ |
charles | kerberos | /home/guests/charles/ |
loki | kerberos | /home/guests/loki/ |
peter | kerberos | /home/guests/peter/ |
steve | kerberos | /home/guests/steve/ |
NFS Server:
lab.example.com:/home/guests 172.25.0.0/255.255.255. 0
Go ahead:
# cd laboratory
# ssh -i .ssh/id_rsa root@172.25.0.11
# ssh -i .ssh/id_rsa root@172.25.0.10
Many thanks to those great open source projects. We standing on the shoulders of giants.
How can I help?
Use it, star it, share it.