KubeVirt: Difference between revisions
Line 134: | Line 134: | ||
pci_id=$(sudo lspci | grep -oP '([\d:\.]+)(?=\sVGA)') | pci_id=$(sudo lspci | grep -oP '([\d:\.]+)(?=\sVGA)') | ||
uuid1=$(uuidgen) | uuid1=$(uuidgen) | ||
cat > ~/gvtg-enable.service << EOF | cat > ~/gvtg-enable.service << EOF | ||
Line 142: | Line 141: | ||
[Service] | [Service] | ||
Type=oneshot | Type=oneshot | ||
ExecStart=/bin/sh -c "echo '${uuid1}' > /sys/devices/pci0000:00/0000:${pci_id}/mdev_supported_types/i915- | ExecStart=/bin/sh -c "echo '${uuid1}' > /sys/devices/pci0000:00/0000:${pci_id}/mdev_supported_types/i915-GVTg_V5_8/create" | ||
ExecStop=/bin/sh -c "echo '1' > /sys/devices/pci0000:00/0000:${pci_id}/${uuid1}/remove" | ExecStop=/bin/sh -c "echo '1' > /sys/devices/pci0000:00/0000:${pci_id}/${uuid1}/remove" | ||
RemainAfterExit=yes | RemainAfterExit=yes | ||
Line 159: | Line 158: | ||
** See <code>cat /sys/devices/pci0000:00/0000:00:02.0/mdev_supported_types/i915-GVTg_V5_8/description</code> to get a description of the vgpu. | ** See <code>cat /sys/devices/pci0000:00/0000:00:02.0/mdev_supported_types/i915-GVTg_V5_8/description</code> to get a description of the vgpu. | ||
** On my nodes, I can create a single <code>i915-GVTg_V5_4</code> or two <code>i915-GVTg_V5_8</code> | ** On my nodes, I can create a single <code>i915-GVTg_V5_4</code> or two <code>i915-GVTg_V5_8</code> | ||
** I get stability issues using <code>i915-GVTg_V5_4</code> though. | |||
* See the archwiki for details | * See the archwiki for details | ||