VyOS Vyatta

Versions this guide is based on:

EVE Image Name Downloaded Filename Version vCPUs vRAM HDD format Console
vyos-1.2.3-amd64 vyos-1.2.3-amd64.iso 1.2.3 1 1024 virtioa telnet


Other versions should also be supported following bellow’s procedure.

1. SSH to the EVE and  using CLI create directory for new Vyatta VyOS image:

mkdir /opt/unetlab/addons/qemu/vyos-1.2.3-amd64/

2. Upload the downloaded ISO image to the EVE created directory above using for example FileZilla or WinSCP.

3. Go to newly created image directory.

cd /opt/unetlab/addons/qemu/vyos-1.2.3-amd64

4. Rename original ISO filename to cdrom.iso

mv vyos-1.2.3-amd64.iso cdrom.iso

5. Create image HDD virtioa.qcow2  Once it is booted, use login vyos/vyos and install vyos on the hdd.

/opt/qemu/bin/qemu-img create -f qcow2 virtioa.qcow2 10G

6. Add newly created node to the EVE topology and start it. Once it is booted, use login vyos/vyos and install vyos on the hdd.

install image
Follow install tutorial answer yes where it is asking.
7. When installation prompts which file to choose for config boot, choose second option: /opt/vyatta/etc/config.boot.default
I found the following configuration files:
Which one should I copy to vda? [/opt/vyatta/etc/config/config.boot]: /opt/vyatta/etc/config.boot.default

8. When installation is completed shutdown node.



Commit your installed image to be as default for further use in EVE-NG

9. Go back to EVE SSH and commit created image as default

Path to installed image: cd /opt/unetlab/tmp/[POD nr]/[lab uidd]/[node id]

On EVE LAB web UI left side bar choose “Lab Details” to get your lab uuid details: my case: UUID: 3491e0a7-25f8-46e1-b697-ccb4fc4088a2. (0 is POD number of user, main admin user POD Nr. is 0), node ID number you can find right click on node in topology, my case node ID is 1.

cd /opt/unetlab/tmp/0/3491e0a7-25f8-46e1-b697-ccb4fc4088a2/1/
qemu-img commit virtioa.qcow2

10. Remove cdrom.iso from /opt/unetlab/addons/qemu/vyos-1.2.3-amd64/

cd /opt/unetlab/addons/qemu/vyos-1.2.3-amd64
rm cdrom.iso

11. Fix permissions:

/opt/unetlab/wrappers/unl_wrapper -a fixpermissions