This document provides information about the SonicWall NSv Series release on the KVM platform that includes details on the bootstrap process for automated deployments. The example used in the screenshots are from Ubuntu based Linux flavor. Bootstrapper can build ISO images using custom bootstrap.xml and init-cfg templates. This ISO can then be attached to the ‘cdrom’ slot on a KVM virtual machine to begin the bootstrap process.
NSv tries bootstrapping when the instance is not registered and/or when instance is reset to factory-defaults. The bootstrap happens in late stage of system startup. There are several stages of bootstrap. The first one is to check if bootstrap file exists in the system. It will mount virtual cdrom and then search for file in the following order:
It stops and read content from the first file found as bootstrap configurations for KVM platform. It will then check the data in the bootstrap file, the file must have valid SN and auth-code (not necessarily valid in back-end database, but at least in valid FORMAT) for bootstrap to happen.
During the bootstrap process, NSv may reboot several times. If everything works fine, there will be a message "No need to bootstrap because NSv is registered" at the end. Otherwise, user will need to check system console to see what went wrong during bootstrap.
Please note that the design of bootstrapping is to only support a very basic set of configurations to keep bootstrap as simple as possible. Once the box is registered and network is up, users can make use of SonicOS API for automation of any other configurations that are not supported by bootstrap.
Detailed Bootstrap Process:
{ "username": "", "password": "", "serialnumber": "", "authorization": "", "mySonicwallAcct": "", "mySonicwallPass": "", "licensingToken": "", "interface": [ { "name" : "x0", "type" : "dhcp" }, { "name" : "x1", "management_ssh": "on", "type" : "static", "ip" : "1.1.1.2", "netmask": "255.255.255.0", "gateway": "1.1.1.1", "dns1": "8.8.8.8", "dns2": "8.8.8.9", "dns3": "8.8.8.7" } | serialnumber, authorization, mySonicwallAcct, mySonicwallPass. licensing token are used for NSv registration. username/password is the admin account used to access NSv web GUI. interface type can be either dhcp or static. if set to static, user can set Ip address, subnet mask, gateway, dns1, dns2 or dns3. Current json format only includes two interfaces |
NOTE: If you create iso on your own, then please name the configuration file name as "sonicos.bootstrap". Starting SonicOS 7.0.1 release, user can also make use of token based registrations so instead of serial, auth-code, mysonicwall username and password, just use the token value. Only NSv 270, 470 and 870 NSv models support SonicOS 7 firmware and above. The json file name must be sonicos.bootstrap and must use the same folder that will be used to generate the iso file.



Troubleshooting Steps:
Supported Platforms
Bootstrapping for automated deployments is supported on the following SonicWall KVM virtual firewall models :
Additional Details
For more release notes and documentation on KVM platform, please logon to mysonicwall portal using your mysonicwall account. You can also refer to technical documentation on www.sonicwall.com for getting started guide.