kubevirt-operator-v0.47.1.yml

export RELEASE=v0.47.1
kubectl apply -f https://github.com/kubevirt/kubevirt/releases/download/${RELEASE}/kubevirt-operator.yaml
kubectl apply -f https://github.com/kubevirt/kubevirt/releases/download/${RELEASE}/kubevirt-cr.yaml

enable-feature-gate.yaml

开启 hostDisk等特性。
如果不支持硬件虚拟化,打开注释,使用模拟。

apiVersion: kubevirt.io/v1
kind: KubeVirt
metadata:
  name: kubevirt
  namespace: kubevirt
spec: 
  configuration:
    developerConfiguration:
      featureGates:
        - HostDisk
        - hyperv
        - CPUNodeDiscovery
      #useEmulation: true
kubectl apply -f enable-feature-gate.yaml

官方文档:https://kubevirt.io/user-guide/operations/installation/

安装 kvm

sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils
sudo adduser `id -un` libvirt
sudo adduser `id -un` kvm
sudo apt-get install virt-manager

官方文档:https://help.ubuntu.com/community/KVM/Installation

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐