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

Preparing VyOS image for UNetLab v3

Andrea Dainese
October 30, 2024
Post cover

As our first image, we choose to use VyOS, which is publicly available on GitHub . We will work from a single host, and later we can distribute our image. Let’s download the image to the host:

wget -O- https://github.com/vyos/vyos-nightly-build/releases/download/1.5-rolling-202409220007/vyos-1.5-rolling-202409220007-generic-amd64.iso > /var/tmp/pveupload-0000

The image name must strictly follow the regex /var/tmp/pveupload-[0-9a-f]+.

Upload the image to the unetlab datastore with the correct name:

pvesh create /nodes/proxmox1/storage/unetlab/upload -content iso -filename vyos-vyos-1.5-202409220007.iso -tmpfilename /var/tmp/pveupload-0000

Delete the image from the temporary directory:

rm -f /var/tmp/pveupload*

Preparing the Template

Next, let’s create a temporary VM to install and configure VyOS:

pvesh create /nodes/proxmox1/qemu -cores 1 -cpu host -cdrom unetlab:iso/vyos-vyos-1.5-202409220007.iso,media=cdrom -memory 2048 -name template-vyos-vyos-1.5-202409220007 -net0 virtio,bridge=vmbr0 -ostype other -scsihw virtio-scsi-single -sockets 1 -tags "unl;template" -virtio0 unetlab:2,format=qcow2,backup=1,iothread=on -vmid 1000 -serial0 socket -vga none

In this case, we have disabled the graphical card and added a serial interface to be used as a terminal.

Continue reading the post on Patreon .