forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vms-generator: generate an example of usb pass through
Signed-off-by: Luboslav Pivarc <[email protected]> Signed-off-by: Victor Toso <[email protected]>
- Loading branch information
1 parent
71d7396
commit 94b757d
Showing
3 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
apiVersion: kubevirt.io/v1 | ||
kind: VirtualMachineInstance | ||
metadata: | ||
labels: | ||
special: vmi-usb | ||
name: vmi-usb | ||
spec: | ||
domain: | ||
devices: | ||
disks: | ||
- disk: | ||
bus: virtio | ||
name: containerdisk | ||
- disk: | ||
bus: virtio | ||
name: cloudinitdisk | ||
hostDevices: | ||
- deviceName: kubevirt.io/storage | ||
name: node-usb-to-vmi-storage | ||
rng: {} | ||
resources: | ||
requests: | ||
memory: 1024M | ||
terminationGracePeriodSeconds: 0 | ||
volumes: | ||
- containerDisk: | ||
image: registry:5000/kubevirt/fedora-with-test-tooling-container-disk:devel | ||
name: containerdisk | ||
- cloudInitNoCloud: | ||
userData: |- | ||
#cloud-config | ||
password: fedora | ||
chpasswd: { expire: False } | ||
packages: | ||
- nginx | ||
runcmd: | ||
- [ "systemctl", "enable", "--now", "nginx" ] | ||
name: cloudinitdisk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters