fix(kubevirt): hostname, VMPersistentState

This commit is contained in:
JJGadgets
2023-12-26 15:49:56 +08:00
parent cb355aecfe
commit f03a97c826
3 changed files with 26 additions and 10 deletions

View File

@@ -30,3 +30,17 @@ spec:
target:
kind: Namespace
name: kubevirt
- patch: |
apiVersion: kubevirt.io/v1
kind: KubeVirt
metadata:
name: not-used
spec:
configuration:
vmStateStorageClass: "file"
developerConfiguration:
featureGates:
- VMPersistentState
target:
group: kubevirt.io
kind: KubeVirt

View File

@@ -21,8 +21,14 @@ spec:
devices:
preferredDiskBus: sata
preferredInterfaceModel: virtio
preferredTPM:
persistent: true
preferredTPM: {}
# persistent: true
preferredAutoattachMemBalloon: false
preferredAutoattachInputDevice: true
preferredAutoattachGraphicsDevice: true
preferredAutoattachSerialConsole: true
preferredAutoattachPodInterface: true
preferredInputType: "tablet"
features:
preferredAcpi: {}
preferredApic: {}

View File

@@ -18,7 +18,7 @@ spec:
vm.home.arpa/windows: "ad"
vm.home.arpa/ad: "dc${NUM}"
spec:
hostname: "thunder-DC${NUM}"
hostname: "thunder-dc${NUM}"
subdomain: "${DNS_AD}"
evictionStrategy: "LiveMigrate"
networks:
@@ -35,13 +35,6 @@ spec:
- name: "c-drive"
disk:
bus: "sata"
autoattachMemBalloon: false
autoattachGraphicsDevice: true
autoattachInputDevice: true
inputs:
- name: "tablet"
type: "tablet"
autoattachPodInterface: true
interfaces:
- name: "main"
masquerade: {}
@@ -54,6 +47,9 @@ spec:
protocol: "UDP"
firmware:
uuid: "${UUID}"
# bootloader:
# efi:
# persistent: true
# resources:
# requests:
# cpu: "100m"