Update Virtual Machine with Vagrant authored by Katharina Renk's avatar Katharina Renk
On this page, we will deploy a virtual machine with Vagrant. Vagrant is a tool to manage, configure and automate virtual machines. After deploying, the VM is accessible over ssh or VirtualBox.
# Install Vagrant
# 📦 Install Vagrant
Visit the [Vagrant Installation Page](https://developer.hashicorp.com/vagrant/downloads) to install Vagrant based on your operating system.
# Install VirtualBox
# 📦 Install VirtualBox
Install VirtualBox from the [VirtualBox Download Page](https://www.virtualbox.org/wiki/Downloads).
# Download gosdn repository
# 🖥️ Download gosdn repository
Go into the directory where you want to have this repository.
Get it with SSH:
......@@ -24,7 +24,7 @@ You can find the repository with this [link](https://code.fbi.h-da.de/danet/gosd
https://code.fbi.h-da.de/danet/gosdn
```
# Build Vagrant VM
# 🚀 Build Vagrant VM
Go to the directory lab-vm in the gosdn repository:
```bash
cd gosdn/lab-vm/
......@@ -34,7 +34,7 @@ Use following command to build and start the VM:
vagrant up
```
# Access VM
# 🖥️ Access VM
## Option 1: Access VM via ssh
```bash
vagrant ssh
......@@ -43,7 +43,7 @@ vagrant ssh
Simply open VirtualBox. The VM will appear there:
![VirtualBox](uploads/1c345175cb5768d2b9b0f8baa1c19ac5/VirtualBox.png)
# Useful commands
# :bulb: Useful commands
Start/build VM
```bash
vagrant up
......
......