IGVT-g: Difference between revisions
imported>Gnidorah No edit summary |
imported>Gnidorah No edit summary |
||
Line 7: | Line 7: | ||
For client platforms, 5th, 6th or 7th Generation Intel® Core Processor Graphics is required. For server platforms, E3_v4, E3_v5 or E3_v6 Xeon Processor Graphics is required. | For client platforms, 5th, 6th or 7th Generation Intel® Core Processor Graphics is required. For server platforms, E3_v4, E3_v5 or E3_v6 Xeon Processor Graphics is required. | ||
== Create or destroy VGPU == | == Create or destroy VGPU == | ||
Choose virtual GPU | |||
<pre> | |||
$ ls /sys/bus/pci/devices/0000:00:02.0/mdev_supported_types/ | |||
i915-GVTg_V5_4/ i915-GVTg_V5_8/ | |||
</pre> | |||
<pre> | <pre> | ||
Line 41: | Line 25: | ||
</pre> | </pre> | ||
Generate UUID | |||
<pre> | <pre> | ||
$ uuid | $ nix run nixpkgs.libossp_uuid -c uuid | ||
a297db4a-f4c2-11e6-90f6-d3b88d6c9525 | a297db4a-f4c2-11e6-90f6-d3b88d6c9525 | ||
</pre> | </pre> | ||
== NixOS configuration == | |||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | |||
< | boot.kernelPackages = pkgs.linuxPackages_4_16; | ||
virtualisation.kvmgt.enable = true; | |||
</ | virtualisation.kvmgt.vgpus = { | ||
"i915-GVTg_V5_8" = { | |||
uuid = "a297db4a-f4c2-11e6-90f6-d3b88d6c9525"; | |||
}; | |||
}; | |||
environment.systemPackages = with pkgs; [ | |||
virtmanager | |||
virt-viewer | |||
]; | |||
virtualisation.libvirtd.enable = true; | |||
users.extraUsers.user.extraGroups = [ "libvirtd" ]; | |||
</nowiki>}} | |||
== Configure KVM == | == Configure KVM == |