kubevirt: add vm2 + notes
This commit is contained in:
parent
c5e69666c8
commit
f63e03481c
2 changed files with 78 additions and 0 deletions
38
kubevirt/README.md
Normal file
38
kubevirt/README.md
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
## Host tunings
|
||||||
|
|
||||||
|
To fix
|
||||||
|
|
||||||
|
```
|
||||||
|
"component":"virt-handler","level":"error","msg":"Error starting tun
|
||||||
|
device plugin","pos":"device_controller.go:73","reason":"failed to add
|
||||||
|
the device root path to the watcher: no such file or
|
||||||
|
directory","timestamp":"2021-06-07T20:15:48.557412Z"
|
||||||
|
```
|
||||||
|
|
||||||
|
use
|
||||||
|
|
||||||
|
```
|
||||||
|
modprobe tun
|
||||||
|
```
|
||||||
|
|
||||||
|
To fix
|
||||||
|
|
||||||
|
```
|
||||||
|
Warning FailedScheduling 67s (x2 over 69s) default-scheduler 0/4
|
||||||
|
nodes are available: 1 node(s) had taint
|
||||||
|
{node-role.kubernetes.io/master: }, that the pod didn't tolerate, 3
|
||||||
|
Insufficient devices.kubevirt.io/vhost-net.
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
modprobe vhost_net
|
||||||
|
```
|
||||||
|
|
||||||
|
## Failing to create tap devices
|
||||||
|
|
||||||
|
```
|
||||||
|
failed to configure vmi network: Critical network error: error
|
||||||
|
creating tap device named tap0; failed to create tap device tap0: exit
|
||||||
|
status 1
|
||||||
|
```
|
40
kubevirt/vm2-networking.yaml
Normal file
40
kubevirt/vm2-networking.yaml
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
apiVersion: kubevirt.io/v1alpha3
|
||||||
|
kind: VirtualMachineInstance
|
||||||
|
metadata:
|
||||||
|
name: testvmi-nocloud
|
||||||
|
spec:
|
||||||
|
terminationGracePeriodSeconds: 30
|
||||||
|
domain:
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: 1024M
|
||||||
|
devices:
|
||||||
|
disks:
|
||||||
|
- name: containerdisk
|
||||||
|
disk:
|
||||||
|
bus: virtio
|
||||||
|
- name: emptydisk
|
||||||
|
disk:
|
||||||
|
bus: virtio
|
||||||
|
- disk:
|
||||||
|
bus: virtio
|
||||||
|
name: cloudinitdisk
|
||||||
|
interfaces:
|
||||||
|
- name: default
|
||||||
|
masquerade: {}
|
||||||
|
networks:
|
||||||
|
- name: default
|
||||||
|
pod: {}
|
||||||
|
volumes:
|
||||||
|
- name: containerdisk
|
||||||
|
containerDisk:
|
||||||
|
image: kubevirt/fedora-cloud-container-disk-demo:latest
|
||||||
|
- name: emptydisk
|
||||||
|
emptyDisk:
|
||||||
|
capacity: "2Gi"
|
||||||
|
- name: cloudinitdisk
|
||||||
|
cloudInitNoCloud:
|
||||||
|
userData: |-
|
||||||
|
#cloud-config
|
||||||
|
password: fedora
|
||||||
|
chpasswd: { expire: False }
|
Loading…
Reference in a new issue