5,336
edits
No edit summary |
|||
Line 112: | Line 112: | ||
image: quay.io/kubevirt/virtio-container-disk | image: quay.io/kubevirt/virtio-container-disk | ||
name: windows-guest-tools | name: windows-guest-tools | ||
</syntaxhighlight> | |||
}} | |||
==vGPU== | |||
===Intel vGPU=== | |||
See [https://kubevirt.io/2021/intel-vgpu-kubevirt.html#fedora-workstation-prep intel-vgpu-kubevirt]<br> | |||
{{hidden | Instructions | | |||
;Setup the nodes | |||
<syntaxhighlight lang="bash"> | |||
# Enable kvmgt and iommu | |||
sudo sh -c "echo kvmgt > /etc/modules-load.d/gpu-kvmgt.conf" | |||
sudo sed -i 's/^GRUB_CMDLINE_LINUX_DEFAULT="/&intel_iommu=on i915.enable_gvt=1/' /etc/default/grub | |||
sudo update-grub | |||
sudo reboot | |||
# Check that kvmgt modules are loaded | |||
sudo lsmod | grep kvmgt | |||
# Create two vGPUs | |||
pci_id=$(sudo lspci | grep -oP '([\d:\.]+)(?=\sVGA)') | |||
uuid1=$(uuidgen) | |||
uuid2=$(uuidgen) | |||
cat > ~/gvtg-enable.service << EOF | |||
[Unit] | |||
Description=Create Intel GVT-g vGPU | |||
[Service] | |||
Type=oneshot | |||
ExecStart=/bin/sh -c "echo '${uuid1}' > /sys/devices/pci0000:00/0000:${pci_id}/mdev_supported_types/i915-GVTg_V5_8/create" | |||
ExecStart=/bin/sh -c "echo '${uuid2}' > /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}/${uuid2}/remove" | |||
RemainAfterExit=yes | |||
[Install] | |||
WantedBy=multi-user.target | |||
EOF | |||
sudo mv ~/gvtg-enable.service /etc/systemd/system/gvtg-enable.service | |||
sudo systemctl enable gvtg-enable --now | |||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} |