|
|
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.
|
|
|
On this page, we will create a virtual machine image 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.
|
|
|
|
|
|
## ⚠️ Tested only with Ubuntu 22.04 other operating systems might not work
|
|
|
## ⚠️ Tested only with Ubuntu 22.04, other operating systems might not work
|
|
|
|
|
|
If you are using VirtualBox 7.0.1 or newer, you have to in the file **gosdn_vm.pkr.hcl** uncomment the line
|
|
|
|
|
|
```shell
|
|
|
["modifyvm", "{{.Name}}", "--nat-localhostreachable1", "on"],
|
|
|
```
|
|
|
|
|
|
## 📦 Install Packer
|
|
|
|
|
|
Install Packer from the [Packer Download Page](https://developer.hashicorp.com/packer/downloads).
|
|
|
|
|
|
## 📦 Install VirtualBox
|
|
|
|
|
|
Install VirtualBox from the [VirtualBox Download Page](https://www.virtualbox.org/wiki/Downloads).
|
|
|
|
|
|
## 🖥️ Download goSDN repository
|
... | ... | @@ -33,10 +41,12 @@ https://code.fbi.h-da.de/danet/gosdn |
|
|
## 🚀 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**
|
|
|
You can now import the virtual machine with VirtualBox
|
|
|
|
... | ... | |