Before uploading the NIOS image, install and set up the Go language and Azure VHD utilities as prerequisites. To install, complete the following steps:
Install Go language version 1.11 or later that is available at: https://golang.org/dl/
Set the following Go environment variables in the
~/.profile
file once Go language is installed:export GOROOT=/usr/local/go
export GOPATH=$HOME
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
Source the
~/.profile
file as follows:source ~/.profile
Install
golint
andazure-vhd-utils
:Run the
go install
golang.org/x/lint/golint@latest
command to installgolint
.Run the
go install
github.com/Microsoft/azure-vhd-utils@latest
command to installazure-vhd-utils
. For more information on Azure VHD utilities, see https://github.com/microsoft/azure-vhd-utils.
If thego get
github.com/Microsoft/azure-vhd-utils
command fails, perform the following steps:- Run the
mkdir ~/tmp
command to make a temporary directory. - Run the
cp -r ~/upload/src/github.com/Microsoft/azure-vhd-utils ~/tmp
command to copyazure-vhd-utils
to the temporary directory. - Run the
cd ~/tmp/azure-vhd-utils
command. - Run the
make
command to installazure-vhd-utils.
If the command displays the if exec: "gcc": executable file not found in $PATH error message, run theexport CGO_ENABLED="0"
command and then run themake
command once again. - Run the
sudo cp azure-vhd-utils /usr/bin/
command.
- Run the
To upload a vNIOS image on Azure, complete the following steps:
- Download the NIOS vhd.gz file from the Infoblox Support site as follows:
- Log in to the Infoblox Support site.
- On the Downloads tab, complete the following:
- Infoblox Software: Choose NIOS/vNIOS.
- Select release type: Select the release type as General maintenance products with full engineering support for routine patches and bug fixes on all significant issues.
- Select version: Choose the vNIOS version.
- vNIOS for Azure section: Download the vhd.gz file.
Run the following command to unzip the NIOS vhd.gz file:
gunzip nios-image.vhd.gz
Run the following command to upload the .vhd file on Azure using the format:
For example:azure-vhd-utils upload --localvhdpath <local_path> --stgaccountname <storage_account> --stgaccountkey <account_key> --containername <container_name> --blobname <image_name>
azure-vhd-utils upload --localvhdpath ~/nios-image.vhd --stgaccountname rgeastcloudautomation --stgaccountkey ****** --containername images --blobname nios-image.vhd
After the image file is uploaded on Azure public cloud blob storage, proceed to deploy a VM instance from the Azure CLI.