For the complete documentation index, see llms.txt. This page is also available as Markdown.

KVM Stream deployment

Deploy Stream on KVM using the image tarball and `vectra-stream.sh`, with basic `virsh` troubleshooting tips.

KVM Stream Deployment

Requirements

  • Ensure that libvirt (including libvirt-client ) and virt-install are installed locally on the KVM host server.

  • You must either be a root user or ensure that the user that will later launch the deployment script is in the libvrt group on the KVM host server.

  • Ensure that the desired KVM network (that will be used for the management interface is present, persistent, active, and autostarted using virsh net-list –all .)

    • The default driver supported for the network interface is virtio-pci .

Basic Interaction with KVM Virtual Machines

The easiest way to interact with KVM VMs via the command line is by using the virsh series of commands. Vectra’s deployment script will automatically start and configure the guest you, however these basic commands could prove helpful when diagnosing setup issues:

  • View the list of configured virtual machines:

    • virsh list --all

  • Start - In order to start a given virtual machine for which a configuration already exists:

    • virsh start <name of vm>

  • Stop and save state:

    • virsh shutdown <name of vm>

  • Stop quickly and don't save state (used only when you know you are going to purge the vm):

    • virsh destroy <name of vm>

  • Purge the vm after stopping (needs to be used in tandem with destroy):

    • virsh undefine <name of vm>

  • View the IP address(es) and MAC address(es) of a given virtual machine and its interfaces:

    • virsh qemu-agent-command <name of vm> '{"execute":"guest-network-get-interfaces"}' | jq

Installation

  • Once downloaded, the machine image can be placed in the directory of your choice and uncompressed. It is a .tar.xz file.

    • On an Ubunto machine the tar -xf command will uncompress the file fully. Using other tools may require 2 steps:

  • The script to start the deployment is vectra-stream.sh which has help that can be displayed as such:

  • Execute the script to begin the deployment:

  • As you can see in the above output, you will need to select a configuration (see the Stream Sizing section earlier in this document) and a network interface to use for the management port of Stream.

  • Stream will start automatically once the deployment script has finished.

Last updated

Was this helpful?