Building a Cisco ASAv Vagrant Libvirt Box

Cisco ASAv is supported by the netlab libvirt package command. To build a ASAv box:

  • Create an empty directory on a Ubuntu machine with libvirt and Vagrant.

  • Copy the ASAv disk image (.qcow2 file) into that directory

  • Execute netlab libvirt package asav virtual-disk-file-name and follow the instructions


  • The ‌netlab libvirt package asav command has been tested on Ubuntu 20.04 LTS and 22.04 LTS and might not work on other Linux distros.

  • On Ubuntu 22.04 LTS, libvirt-qemu user needs read and execute access to the VM disk file. It’s easiest if you create Vagrant boxes in a subdirectory of the /tmp directory.

Preparing the Box Configuration

Initial device configuration is copied from an ISO image created by the installation process. You’ll have to set an enable password and save the config. netlab libvirt config asav command desplays the build recipe (based on the recipe published by Brad Searle):

Creating initial configuration for Cisco ASAv

Initial configuration for the ASAv device is prepared in bootstrap ISO image.

You must only set the enable password:
* type 'enable'
* Set enable password to 'vagrant1'
* 'write memory'
* 'copy running-config startup-config'
* Disconnect from console (ctrl-] usually works).