Installation

Procedure

Complete the following steps to install KubeVirt.

  1. Upload the KubeVirt system application tarball and check the KubeVirt application status:

    ~(keystone_admin)$ system application-upload /usr/local/share/application/helm/kubevirt-app-1.0-1.tgz
    
    ~(keystone_admin)$ system application-list
    
  2. Apply the KubeVirt system application and check the KubeVirt and CDI status:

    ~(keystone_admin)$ system application-apply kubevirt-app
    

    Wait for kubevirt-app status to complete.

    $ watch -n 5 system application-list
    
    # Wait for all pods in kubevirt namespace to be Running
    $ watch -n 5 kubectl get pods -n kubevirt
    
    # Wait for all pods in cdi namespace to be Running
    $ watch -n 5 kubectl get pods -n cdi
    
  3. Setup ‘virtctl’ client executable to be accessible from sysadmin’s PATH

    # Create /home/sysadmin/bin directory, if it doesn't exist already
    $ mkdir -p /home/sysadmin/bin
    
    # Create symbolic link in /home/sysadmin/bin to virtctl client executable installed on host in step 2)
    $ cd /home/sysadmin/bin
    $ ln -s /var/opt/kubevirt/virtctl-v0.53.1-linux-amd64 virtctl
    
    # Logout and log back in to ensure that /home/sysadmin/bin gets added to your PATH variable.
    $ exit
    
    login: sysadmin
    password:
    
    $ which virtctl
    /home/sysadmin/bin/virtctl
    

Results

KubeVirt has been installed on the system.