Building an Extreme Networks EXOS Vagrant Libvirt Box
Extreme Networks EXOS is supported by the netlab libvirt package command. To build an EXOS box:
Create an empty directory on a Ubuntu machine with libvirt and Vagrant.
Download EXOS disk image (.qcow2 file) into that directory.
Tip
Select and download the QCOW2 image from Extreme Networks github page
Then copy the URL of the QCOW2 image and use curl -O <URL> to download it.
Execute netlab libvirt package exos virtual-disk-file-name and follow the instructions
Warning
If you’re using a netlab release older than 1.8.2, or if you’re using a Linux distribution other than Ubuntu, please read the box-building caveats first.
Initial Device Configuration
During the box-building process you’ll have to copy-paste initial device configuration. netlab libvirt config exos command displays the build recipe.
Creating initial configuration for Extreme EXOS Vagrant box
===========================================================
* Wait for the 'login' prompt and 'Authentication Service (AAA) on the
master node is now available for login' message
* Log in as 'admin' (no password)
Answers the never-ending list of setup questions:
* Disable auto-provision: yes
* Management port: skip
* Disable MSTP: no
* Enable enhanced security: no
* Disable Telnet: yes
* Enable SNMPv2: no
* Enable SNMPv3: no
* Turn off unconfigured ports by default: yes
* Failsafe username/password: no
When you get to the end of the list, you can see the CLI commands you just
generated and a list of generally useful commands. After that, you'll eventually
get to the EXOS prompt (* EXOS-VM.1):
Enter these commands one at a time. There will be extra prompts, so do not
copy and paste everything at once. Skip the text in brackets; it is included
only as an explanation.
* configure account admin password (old password is empty, new one is admin)
* enable ssh
* create account admin vagrant vagrant
* create sshd2 user-key vagrant AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ==
* configure sshd2 user-key vagrant add user vagrant
* unconfigure vlan Mgmt ip (remove current IP from management VLAN)
* enable dhcp vlan Mgmt (enable DHCP on management VLAN)
* save configuration
Disconnect from the console (Ctrl+] usually works).
For convenience, here is a copy-and-paste version of the commands above, use with caution:
====================================================
configure account admin password
admin
admin
enable ssh
y
create account admin vagrant vagrant
create sshd2 user-key vagrant AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ==
configure sshd2 user-key vagrant add user vagrant
unconfigure vlan Mgmt ip
enable dhcp vlan Mgmt
save configuration
y
====================================================