Skip to content

Kubevirt support for ppc64le

Punith Kenchappa edited this page Mar 20, 2024 · 3 revisions

Kubevirt support for PPC64LE.

Pre-req installation

We required these pre-req installation for the bring up the k8s cluster with single node.

Create the binaries and images for the kubevirt controller pods.

Follow the links to bring up the binaries and images : Bring up the binaries and images

Follow the steps in the below link to get the kubeadm cluster:

DOC: https://github.com/ppc64le-cloud/test-infra/wiki/Creating-Kubernetes-cluster-with- kubeadm-on-Power-(RHEL-or-CentOS)

kubelet swap off

sudo dnf remove zram-generator-defaults

remove taints

* kubectl taint node ltcrain34-lp3.aus.stglabs.ibm.com node-role.kubernetes.io/control-plane:NoSchedule-

* kubectl taint node ltcrain34-lp3.aus.stglabs.ibm.com node.kubernetes.io/not-ready:NoSchedule-

taints to be removed.

node-role.kubernetes.io/control-plane:NoSchedule

node.kubernetes.io/not-ready:NoSchedule

kubectl apply -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.4/manifests/calico.yaml

Bring up the kubevirt operator

  • Modify the image repo and using the command below
    • kubectl apply -f kubevirt-operator.yaml
image

Create kubevirt custom resource

  • Once the Kubevirt operator up and running.

  • Modify kubevirt-cr.yaml as shown below.

image

Apply above changes and run the command.

  • Kubectl apply –f kubevirt-cr.yaml
image

Deploy the VM using kubectl

  • Modify the examples/vm_fedora_ppc64le.yaml according to your requirement.
  • Provide the disk image location and disk and ram size.
  • Run the command kubectl apply –f examples/vm_fedora_ppc64le.yaml
image

Login to deployed VM using virtctl console

image

Create a secret for the VM using SSH-Keygen

image

Add secret in the VM’s yaml file

image

SSH to VM adding the config

  • ssh -0 'ProxyCommand=virtctl port-forward --stdio=true vmi/testvmfedora.default 22'fedora@testvmfedora.default
  • one-time job to add the ssh config, then we can ssh via ip address.
image

SSH to VM via IP address

image

Delete the VM using the kubectl command

image

Guest VM running in KVM accel

  • systemd-detect-virt
  • kvm
image

References