|
|
On this page, we will create a virtual machine with Packer and run it with VirtualBox. Packer is a tool to automate virtual machines creation. After the creation, the VM is ready to be imported into VirtualBox.
|
|
|
On this page, we will create a virtual machine with Packer and run it with VirtualBox. Packer is a tool to automate virtual machines creation. After the creation, the virtual machine is ready to be imported into VirtualBox.
|
|
|
|
|
|
## Install Packer
|
|
|
[Install](https://developer.hashicorp.com/packer/downloads) Packer from the Download Page.
|
|
|
## 📦 Install Packer
|
|
|
Install Packer from the [Packer Download Page](https://developer.hashicorp.com/packer/downloads).
|
|
|
|
|
|
## Install VirtualBox
|
|
|
## 📦 Install VirtualBox
|
|
|
Install VirtualBox from the [VirtualBox Download Page](https://www.virtualbox.org/wiki/Downloads).
|
|
|
|
|
|
## Login Credentials
|
|
|
## 🔓 Login Credentials
|
|
|
|
|
|
**Username**: gosdn
|
|
|
**Password**: gosdn
|
|
|
|
|
|
## Download goSDN repository
|
|
|
## 🖥️ Download goSDN repository
|
|
|
|
|
|
Go into the directory where you want to have this repository.
|
|
|
Get it with SSH:
|
|
|
Clone it with SSH:
|
|
|
|
|
|
```shell
|
|
|
git clone git@code.fbi.h-da.de:danet/gosdn.git
|
... | ... | @@ -32,16 +32,17 @@ 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 VM
|
|
|
## 🚀 Build the VM
|
|
|
|
|
|
Go to the directory and build the virtual machine
|
|
|
```shell
|
|
|
cd gosdn/lab-vm/vm-with-packer
|
|
|
./pipeline.sh
|
|
|
```
|
|
|
Your created virtual machine is in the folder **output-goSDN**
|
|
|
Your created virtual machine is in the folder **output-goSDN**
|
|
|
You can now import the virtual machine with VirtualBox
|
|
|
|
|
|
## Access the VM
|
|
|
## 🖥️ Access the VM
|
|
|
|
|
|
Open VirtualBox and press CTRL-I and a new window will open.
|
|
|
In this window you will add your previously created vm from your filesystem, press next and in the next step import the vm. |
|
|
\ No newline at end of file |
|
|
Open VirtualBox and press **CTRL+I** and a new window will open.
|
|
|
In this window you add your previously created virtual machine from your filesystem, press next and import it in the next step. Now you can use your imported virtual machine with VirtualBox 🎉. |
|
|
\ No newline at end of file |