- Debian-based distributions (Debian, Ubuntu, etc.)
- RPM-based distributions (Fedora, CentOS, etc.)
- Prebuilt Binary
- From Source
Make sure that your user has the /dev/kvm
access. On most distributions, this can be accomplished by adding the current user to the kvm
group:
sudo gpasswd -a $USER kvm
Once added to a group, you will need to re-login for the changes to take effect.
First, make sure that you've installed the APT transport for downloading packages via HTTPS and common X.509 certificates:
sudo apt-get update && sudo apt-get -y install apt-transport-https ca-certificates
Then, add the Cirrus Labs repository:
echo "deb [trusted=yes] https://apt.fury.io/cirruslabs/ /" | sudo tee /etc/apt/sources.list.d/cirruslabs.list
Now you can update the package index files and install the Vetu:
sudo apt-get update && sudo apt-get -y install vetu
First, create a /etc/yum.repos.d/cirruslabs.repo
file with the following contents:
[cirruslabs]
name=Cirrus Labs Repo
baseurl=https://yum.fury.io/cirruslabs/
enabled=1
gpgcheck=0
Now you can install the Vetu:
sudo yum -y install vetu
Check the releases page for a pre-built vetu
binary for your platform.
Here's a one-liner for Linux to download the latest release:
curl -L -o vetu https://github.com/cirruslabs/vetu/releases/latest/download/vetu-linux-$(uname -m) && sudo mv vetu /usr/bin/vetu && sudo chmod +x /usr/bin/vetu && sudo setcap cap_net_raw,cap_net_admin,cap_net_bind_service+eip /usr/bin/vetu
If you have Golang 1.21 or newer installed, you can run:
go install github.com/cirruslabs/vetu/...@latest
This will build and place the vetu
binary in $GOPATH/bin
.
Vetu binary also needs some capabilities assigned to it:
sudo setcap cap_net_raw,cap_net_admin,cap_net_bind_service+eip $GOPATH/bin/vetu
To be able to run vetu
command from anywhere, make sure the $GOPATH/bin
directory is added to your PATH
environment variable (see article in the Go wiki for more details).