Categories

Category cover

Automation
155 posts

Category cover

Learning paths
119 posts

Category cover

CISO
22 posts

Category cover

Security
20 posts

Category cover

Notes
19 posts

Category cover

Personal Security
18 posts

Category cover

Infrastructure
12 posts

Category cover

OT/ICS
5 posts

Category cover

Books
3 posts

Category cover

UNetLab
3 posts

Category cover

Write-up
3 posts

Category cover

OSInt
2 posts

Category cover

My life
1 posts

Creating templates for Proxmox

Andrea Dainese
July 26, 2024
Post cover

Let’s prepare templates to generate nodes for our labs. We’ll start with VyOS , an open-source router and firewall. VyOS is available as a rolling release  and can be downloaded from GitHub  in ISO format. In this example, we’ll use the vyos-1.5-rolling-202407171706-amd64.iso image, downloaded to /usr/src on a Proxmox host.

The official documentation  guides us on creating a VyOS node on Proxmox. We’ll go through the steps to create a VyOS template and a basic lab with two interconnected VyOS nodes.

On my Proxmox host, I’ve added an external disk named unetlab for storing ISO images:

pvesh get /nodes/proxmox1/storage

pvesh is the CLI for using Proxmox’s REST APIs. Learning to use it now will simplify our future interactions with Proxmox hosts via API.

Referencing the Proxmox documentation , we find the required location for the ISO file. Copy the downloaded file and import it:

cp /usr/src/vyos-1.5-rolling-202407171706-amd64.iso /var/tmp/pveupload-0001
pvesh create /nodes/proxmox1/storage/unetlab/upload -content iso -filename vyos-1.5-rolling-202407171706-amd64.iso -tmpfilename /var/tmp/pveupload-0001

Verify the ISO file is available:

Continue reading the post on Patreon .