...
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.Note title Note
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:
...