<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CHIT</title>
	<atom:link href="https://christeninformatica.ch/it/feed/" rel="self" type="application/rss+xml" />
	<link>https://christeninformatica.ch/it/</link>
	<description></description>
	<lastBuildDate>Fri, 27 Nov 2026 22:13:40 +0000</lastBuildDate>
	<language>it-IT</language>
	<sy:updateperiod>
	hourly	</sy:updateperiod>
	<sy:updatefrequency>
	1	</sy:updatefrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>
	<item>
		<title>Host Device GPU Pass-Through On KVM/QEMU/Libvirt</title>
		<link>https://christeninformatica.ch/it/host-device-gpu-passthrough-kvm-qemu-libvirt-virsh-tesla-nvidia-linux-virtualization/</link>
					<comments>https://christeninformatica.ch/it/host-device-gpu-passthrough-kvm-qemu-libvirt-virsh-tesla-nvidia-linux-virtualization/#respond</comments>
		
		<dc:creator><![CDATA[Ch IT]]></dc:creator>
		<pubDate>Fri, 27 Nov 2026 19:39:32 +0000</pubDate>
				<category><![CDATA[LINUX SERVER]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[GPU passthrough]]></category>
		<category><![CDATA[Host Device]]></category>
		<category><![CDATA[KVM/QEMU/Libvirt]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[lpci]]></category>
		<category><![CDATA[passthrough]]></category>
		<category><![CDATA[virsh]]></category>
		<category><![CDATA[Virtualization]]></category>
		<guid ispermalink="false">https://christeninformatica.ch/?p=2074</guid>

					<description><![CDATA[<p>This is an example on how to set a Host Device GPU Pass-Through on a KVM/QEMU/Libvirt Server for NVIDIA Tesla M10. You can use the following command to identify the device you want to use: SERVER:~ # lspci &#124; grep Tesla 19:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Tesla M10] (rev a2) 1a:00.0 VGA compatible...</p>
<p class="more-link-wrap"><a href="https://christeninformatica.ch/it/host-device-gpu-passthrough-kvm-qemu-libvirt-virsh-tesla-nvidia-linux-virtualization/" class="more-link">Read More<span class="screen-reader-text"> &#8220;Host Device GPU Pass-Through On KVM/QEMU/Libvirt&#8221;</span> &#187;</a></p>
<p>L'articolo <a href="https://christeninformatica.ch/it/host-device-gpu-passthrough-kvm-qemu-libvirt-virsh-tesla-nvidia-linux-virtualization/">Host Device GPU Pass-Through On KVM/QEMU/Libvirt</a> sembra essere il primo su <a href="https://christeninformatica.ch/it">CHIT</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This is an example on how to set a <b>Host Device GPU Pass-Through</b> on a KVM/QEMU/Libvirt Server for NVIDIA Tesla M10. You can use the following command to identify the device you want to use:</p>
<div class="comandi">
<blockquote>
<pre>
SERVER:~ # lspci | grep Tesla
19:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Tesla M10] (rev a2)
1a:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Tesla M10] (rev a2)
1b:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Tesla M10] (rev a2)
1c:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Tesla M10] (rev a2)
SERVER:~ #
</pre>
</blockquote>
</div>
<p>As you can see from the output of the command, you will be provided with the information you need, the device ID: 19:00.0. Now, you have substitute the colon and the period with underscores like this, pci_0000_19_00_0, and you run the following <b>virsh command</b>:</p>
<div class="comandi">
<blockquote>
<pre>
SERVER:~ # virsh nodedev-dumpxml pci_0000_19_00_0
&lt;device&gt;
  &lt;name&gt;pci_0000_19_00_0&lt;/name&gt;
  &lt;path&gt;/sys/devices/pci0000:16/0000:16:00.0/0000:17:00.0/0000:18:08.0/0000:19:00.0&lt;/path&gt;
  &lt;parent&gt;pci_0000_18_08_0&lt;/parent&gt;
  &lt;capability type='pci'&gt;
    &lt;class&gt;0x030000&lt;/class&gt;
    &lt;domain&gt;0&lt;/domain&gt;
    &lt;bus&gt;25&lt;/bus&gt;
    &lt;slot&gt;0&lt;/slot&gt;
    &lt;function&gt;0&lt;/function&gt;
    &lt;product id='0x13bd'&gt;GM107GL [Tesla M10]&lt;/product&gt;
    &lt;vendor id='0x10de'&gt;NVIDIA Corporation&lt;/vendor&gt;
    &lt;iommuGroup number='10'&gt;
      &lt;address domain='0x0000' bus='0x19' slot='0x00' function='0x0'/&gt;
    &lt;/iommuGroup&gt;
    &lt;numa node='0'/&gt;
    &lt;pci-express&gt;
      &lt;link validity='cap' port='8' speed='8' width='16'/&gt;
      &lt;link validity='sta' speed='2.5' width='8'/&gt;
    &lt;/pci-express&gt;
  &lt;/capability&gt;
&lt;/device&gt;
SERVER:~ # 
</pre>
</blockquote>
</div>
<p>Now, you can generate the information to use for the KVM/QEMU/Libvirt virtual machine configuration for the remaining cores:</p>
<div class="comandi">
<blockquote>
<pre>
SERVER:~ # virsh nodedev-dumpxml pci_0000_1a_00_0
SERVER:~ # virsh nodedev-dumpxml pci_0000_1b_00_0
SERVER:~ # virsh nodedev-dumpxml pci_0000_1c_00_0
</pre>
</blockquote>
</div>
<p>You copy the following lines form the output in a text file for later use.</p>
<div class="comandi">
<blockquote>
<pre>
&lt;address domain='0x0000' bus='0x19' slot='0x00' function='0x0'/&gt;
&lt;address domain='0x0000' bus='0x1a' slot='0x00' function='0x0'/&gt;
&lt;address domain='0x0000' bus='0x1b' slot='0x00' function='0x0'/&gt;
&lt;address domain='0x0000' bus='0x1c' slot='0x00' function='0x0'/&gt;
</pre>
</blockquote>
</div>
<p>Before you proceed and to be able to detach a device, you have to add &#8220;intel_iommu=on iommu=pt&#8221; after Linux ${extra_cmdline} by editing the /boot/grub2/grub.cfg and reboot the system.</p>
<div class="comandi">
<blockquote>
<pre>               
SERVER:~ # vi /boot/grub2/grub.cfg
${extra_cmdline} splash=silent intel_iommu=on iommu=pt mitigations=auto nomodeset quiet security=
SERVER:~ # reboot
</pre>
</blockquote>
</div>
<p><img decoding="async" src="https://christeninformatica.ch/media/kernel-passthrough-gpu-kvm-libvirt-server-linux-virsh-detach-device.jpg" alt="Personalized LLM - Conspiracy Theorist Researcher" /><br />
To detach a device you can run the <b>virsh nodedev-detach</b> command:</p>
<div class="comandi">
<blockquote>
<pre>
SERVER:~ # virsh nodedev-detach pci_0000_19_00_0 
Device pci_0000_19_00_0 detached 
SERVER:~ # virsh nodedev-detach pci_0000_1a_00_0 
Device pci_0000_1a_00_0 detached 
SERVER:~ # virsh nodedev-detach pci_0000_1b_00_0 
Device pci_0000_1b_00_0 detached 
SERVER:~ # virsh nodedev-detach pci_0000_1c_00_0 
Device pci_0000_1c_00_0 detached 
SERVER:~ #
</pre>
</blockquote>
</div>
<p>Once detached, you can run <b>virsh edit</b>, add the following entries and start the VM with <b>virsh start</b>.</p>
<div class="comandi">
<blockquote>
<pre>
SERVER:~ # virsh edit ollamasrv
&lt;hostdev mode='subsystem' type='pci' managed='yes'&gt;
   &lt;source&gt;
     &lt;address domain='0x0000' bus='0x19' slot='0x00' function='0x0'/&gt;
   &lt;/source&gt;
 &lt;/hostdev&gt;
&lt;hostdev mode='subsystem' type='pci' managed='yes'&gt;
   &lt;source&gt;
     &lt;address domain='0x0000' bus='0x1a' slot='0x00' function='0x0'/&gt;
   &lt;/source&gt;
&lt;/hostdev&gt;
&lt;hostdev mode='subsystem' type='pci' managed='yes'&gt;
   &lt;source&gt;
     &lt;address domain='0x0000' bus='0x1b' slot='0x00' function='0x0'/&gt;
   &lt;/source&gt;
&lt;/hostdev&gt;
&lt;hostdev mode='subsystem' type='pci' managed='yes'&gt;
   &lt;source&gt;
     &lt;address domain='0x0000' bus='0x1c' slot='0x00' function='0x0'/&gt;
   &lt;/source&gt;
&lt;/hostdev&gt;
SERVER:~ # virsh destroy ollamasrv
SERVER:~ # virsh start ollamasrv
</pre>
</blockquote>
</div>
<p>Finally, you connect to the <b>virtual machine</b> and check if it worked like this:</p>
<div class="comandi">
<blockquote>
<pre>
OLLAMASRV:~ # lspci | grep Tesla
07:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Tesla M10] (rev a2)
08:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Tesla M10] (rev a2)
09:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Tesla M10] (rev a2)
0a:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Tesla M10] (rev a2)
OLLAMASRV:~ # lspci -k -s 07:00.0
07:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Tesla M10] (rev a2)
        Subsystem: NVIDIA Corporation Tesla M10
        Kernel modules: nouveau, nvidia_drm, nvidia
OLLAMASRV:~ #
</pre>
</blockquote>
</div>
<p><img decoding="async" src="https://christeninformatica.ch/media/test-guest-gpu-passthroug-linux-virtual-machine-libvirt.jpg" alt="Personalized LLM - Conspiracy Theorist Researcher" /><br />
<img decoding="async" src="https://christeninformatica.ch/media/ollama-server-linux-gpu-passthrough-virtual-machine.jpg" alt="Personalized LLM - Conspiracy Theorist Researcher" /></p><p>L'articolo <a href="https://christeninformatica.ch/it/host-device-gpu-passthrough-kvm-qemu-libvirt-virsh-tesla-nvidia-linux-virtualization/">Host Device GPU Pass-Through On KVM/QEMU/Libvirt</a> sembra essere il primo su <a href="https://christeninformatica.ch/it">CHIT</a>.</p>
]]></content:encoded>
					
					<wfw:commentrss>https://christeninformatica.ch/it/host-device-gpu-passthrough-kvm-qemu-libvirt-virsh-tesla-nvidia-linux-virtualization/feed/</wfw:commentrss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>