Advertisement
Guest User

Untitled

a guest
Dec 14th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. evel=error timestamp=2017-12-14T13:20:54.304208Z pos=log.go:276 component= service=http namespace=default name=testvm kind= uid=9ce0dbcf-e0d1-11e7-92b4-525400123456 reason="pods \"virt-launcher-testvm-----\" is forbidden: unable to validate against any security context constraint: [provider restricted: .spec.securityContext.hostPID: Invalid value: true: Host PID is not allowed to be used spec.volumes[0]: Invalid value: \"hostPath\": hostPath volumes are not allowed to be used provider restricted: .spec.containers[0].securityContext.hostPID: Invalid value: true: Host PID is not allowed to be used]" msg="Defining a target pod for the VM failed."
  2.  
  3.  
  4.  
  5. --------------------------------------------------
  6.  
  7.  
  8. apiVersion: kubevirt.io/v1alpha1
  9. kind: VirtualMachine
  10. metadata:
  11. name: testvm
  12. spec:
  13. terminationGracePeriodSeconds: 0
  14. domain:
  15. devices:
  16. graphics:
  17. - type: spice
  18. interfaces:
  19. - type: network
  20. source:
  21. network: default
  22. video:
  23. - type: qxl
  24. consoles:
  25. - type: pty
  26. memory:
  27. unit: MB
  28. value: 64
  29. os:
  30. type:
  31. os: hvm
  32. type: qemu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement