|
|
|
# Linux Operating System
|
|
|
|
|
|
|
|
Instance of Ubuntu with Linux-based tools
|
|
|
|
|
|
|
|
The vlan is a virtual network of linux machines.
|
|
|
|
We have one master and multiple workers.
|
|
|
|
We get initial access to the master and from there we can use the workers.
|
|
|
|
The master has all he tools needed for:
|
|
|
|
- advanced system programming
|
|
|
|
- linux networking
|
|
|
|
- linux administration
|
|
|
|
- general operating system development
|
|
|
|
|
|
|
|
Inside the master we have user access while in our workers we have sudo access whithout password.
|
|
|
|
|
|
|
|
hands-on sto antkeiemeno
|
|
|
|
|
|
|
|
Vlabs are reset every night around 02:00!
|
|
|
|
If you would like to keep your work please refer to "publish".
|
|
|
|
|
|
|
|
Vlabs dont have firewall restrictions BUT the machines are not exposed to the internet.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This is designed to help you with:
|
|
|
|
|
|
|
|
Linux Networking
|
|
|
|
Essentials of Linux System Administration
|
|
|
|
Not being affraid of making mistakes
|
|
|
|
learn to orchestrate a lot of linux machines with ansible
|
|
|
|
build network on top of os
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
You can learn your own pace regardless of tutor lessons.
|
|
|
|
|
|
|
|
A vlab enviroment ready for learning
|
|
|
|
|
|
|
|
Our vlabs allow for design and trial or real world applications.
|
|
|
|
|
|
|
|
You share all machines so please be cooperative and discrete.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
![alt text](images/swarmlab-network.png "")
|
|
|
|
|
|
|
|
|
|
|
|
## Quickstart
|
|
|
|
|
|
|
|
This is a quickstart guide of howto use this *Lab*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Default Configuration
|
|
|
|
|
|
|
|
#### Working Directory
|
|
|
|
|
|
|
|
> /home/ubuntu
|
|
|
|
|
|
|
|
#### Default user
|
|
|
|
|
|
|
|
> ubuntu
|
|
|
|
|
|
|
|
|
|
|
|
#### Publish Your Work
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
|
|
mkdir /home/ubuntu/directory
|
|
|
|
put your files and other directories into /home/ubuntu/directory
|
|
|
|
swarmlab-publish /home/ubuntu/directory
|
|
|
|
open URL in Browser
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### Find lab workers
|
|
|
|
|
|
|
|
The host file that contains addresses of connected workers can be created with:
|
|
|
|
|
|
|
|
>
|
|
|
|
> swarmlab-getworkers > /home/ubuntu/invhosts
|
|
|
|
>
|
|
|
|
|
|
|
|
#### connect to workers
|
|
|
|
|
|
|
|
```bash
|
|
|
|
ssh ubuntu@[IP]
|
|
|
|
Info: user has sudo privileges without a password
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
#### connect to workers with ansible
|
|
|
|
|
|
|
|
```bash
|
|
|
|
cd /home/ubuntu/project/examples-os2/ansible
|
|
|
|
make ps
|
|
|
|
```
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
**MORE INFO**
|
|
|
|
|
|
|
|
See http://docs.swarmlab.io/SwarmLab-HowTos/labs/os2/index.adoc.html
|
|
|
|
---
|