{"id":123,"date":"2020-12-15T11:28:02","date_gmt":"2020-12-15T10:28:02","guid":{"rendered":"http:\/\/admin.bejkon.se\/?p=123"},"modified":"2020-12-15T11:28:24","modified_gmt":"2020-12-15T10:28:24","slug":"proxmox-pci-passthrough-single-gpu","status":"publish","type":"post","link":"https:\/\/admin.bejkon.se\/?p=123","title":{"rendered":"Proxmox pci-passthrough single GPU"},"content":{"rendered":"\n<p>Info h\u00e4mtad h\u00e4rifr\u00e5n:<\/p>\n\n\n\n<p><a href=\"https:\/\/www.reddit.com\/r\/homelab\/comments\/b5xpua\/the_ultimate_beginners_guide_to_gpu_passthrough\/\">Reddit<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/pve.proxmox.com\/wiki\/Pci_passthrough\">Proxmox<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/forums.unraid.net\/topic\/77241-unable-to-passthrough-primary-gpu\/\">Unraid-forum<\/a><\/p>\n\n\n\n<p>\u00c4ndra <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\/etc\/default\/grub\nGRUB_CMDLINE_LINUX_DEFAULT=&quot;quiet amd_iommu=on video=efifb:off,vesafb:off&quot;\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nupdate-grub\n<\/pre><\/div>\n\n\n<p>L\u00e4gg till moduler<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\/etc\/modules\nvfio\nvfio_pci\nvfio_virqfd\n\nHitta info om grafikkortet\nlspci -v\nOm kortet heter 01:00:\nlspci -n -s 01:00\nF\u00f6r att hitta vendor id\n\nL\u00e4gg till f\u00f6r att &quot;blockera&quot; grafikkortet\necho &quot;options vfio-pci ids=10de:1401,10de:0fba disable_vga=1&quot;&gt; \/etc\/modprobe.d\/vfio.conf\n\nupdate-initramfs -u\n<\/pre><\/div>\n\n\n<p>L\u00e4gg till kortet i den virtuella maskinen, <strong>all functions<\/strong> f\u00f6r att f\u00e5 med ljud<\/p>\n\n\n\n<p>H\u00e4mta grafikkortets rom-file, modifiera i hex-edit<\/p>\n\n\n\n<p>Rom-filen l\u00e4ggs i <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\/usr\/share\/kvm\/\n<\/pre><\/div>\n\n\n<p>VM-konfig blir d\u00e5:<\/p>\n\n\n\n<p>hostpci0: 09:00,pcie=1,x-vga=1,romfile=GT960-patched.rom<\/p>\n\n\n\n<p>Blockera consol f\u00f6r proxmox, k\u00f6r varje reboot t.ex. vi cron  @reboot (inte s\u00e4kert alla tre rader beh\u00f6vs)<\/p>\n\n\n\n<p>echo 0 &gt; \/sys\/class\/vtconsole\/vtcon0\/bind<br>echo 0 &gt; \/sys\/class\/vtconsole\/vtcon1\/bind<br>echo efi-framebuffer.0 &gt; \/sys\/bus\/platform\/drivers\/efi-framebuffer\/unbind<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Info h\u00e4mtad h\u00e4rifr\u00e5n: Reddit Proxmox Unraid-forum \u00c4ndra L\u00e4gg till moduler L\u00e4gg till kortet i den virtuella maskinen, all functions f\u00f6r att f\u00e5 med ljud H\u00e4mta grafikkortets rom-file, modifiera i hex-edit Rom-filen l\u00e4ggs i VM-konfig blir d\u00e5: hostpci0: 09:00,pcie=1,x-vga=1,romfile=GT960-patched.rom Blockera consol f\u00f6r proxmox, k\u00f6r varje reboot t.ex. vi cron @reboot (inte s\u00e4kert alla tre rader beh\u00f6vs) &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/admin.bejkon.se\/?p=123\" class=\"more-link\">Forts\u00e4tt l\u00e4sa<span class=\"screen-reader-text\"> \u201dProxmox pci-passthrough single GPU\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-123","post","type-post","status-publish","format-standard","hentry","category-proxmox"],"_links":{"self":[{"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=\/wp\/v2\/posts\/123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=123"}],"version-history":[{"count":1,"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":124,"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=\/wp\/v2\/posts\/123\/revisions\/124"}],"wp:attachment":[{"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}