<div dir="ltr"><br><div><p class="MsoNormal"><span style="font-size:12pt;line-height:115%">Hi All,</span></p><p class="MsoNormal"><span style="font-size:12pt;line-height:115%"><br></span></p>

<p class="MsoNormal"><span style="font-size:12pt;line-height:115%">I cannot assign 2 same type PCI pass-through
Ethernet devices to 2 VM instances separately. Can you please let me know how
to accomplish the same? Thanks in advance for your time and help.</span></p>

<p class="MsoNormal"><span style="font-size:12pt;line-height:115%"><br></span></p><p class="MsoNormal"><span style="font-size:12pt;line-height:115%">Regards,</span></p>

<p class="MsoNormal"><span style="font-size:12pt;line-height:115%">Chinmaya</span></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 19, 2016 at 7:25 PM, Chinmaya Dwibedy <span dir="ltr"><<a href="mailto:ckdwibedy@gmail.com" target="_blank">ckdwibedy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><p class="MsoNormal"><span style="font-size:12pt;line-height:115%">Hi,</span></p>

<p class="MsoNormal"><span style="font-size:12pt;line-height:115%"><br></span></p><p class="MsoNormal"><span style="font-size:12pt;line-height:115%">Can we assign two same type PCI pass-through
devices (Ethernet cards) to 2 different VM instances separately? Please note
that, both the cards have same vendor_id and product_id. </span></p>

<p class="MsoNormal"><span style="font-size:12pt;line-height:115%"><br></span></p><p class="MsoNormal"><span style="font-size:12pt;line-height:115%">I configured it in pci_passthrough_whitelist
and create two different pci_alias (Say a1 and a2). Modified the Nova flavor to
use a1 by VM1 and VM2. Followed the procedures mentioned at <a href="https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization_Administration_Guide/chap-Guest_virtual_machine_device_configuration.html" target="_blank">https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization_Administration_Guide/chap-Guest_virtual_machine_device_configuration.html</a></span></p>

<p class="MsoNormal"><span style="font-size:12pt;line-height:115%"><br></span></p><p class="MsoNormal"><span style="font-size:12pt;line-height:115%">With this edited xml files of both
the instances (after shutting down). Added a device entry in the <source>
section to assign the PCI device to the guest virtual machine. and accordingly configured
domain, bus, slot and function. Restarted the VMs using #virsh start command. Made
an Query pci device in nova DB and found that two Ethernet PCI devices have
been assigned to single VM. </span></p><p class="MsoNormal"><span style="font-size:12pt;line-height:115%"><br></span></p><p class="MsoNormal"><span style="font-size:12pt;line-height:115%">Please correct me if I am wrong. </span></p>

<p class="MsoNormal"><span style="font-size:12pt;line-height:115%"><br></span></p><p class="MsoNormal"><span style="font-size:12pt;line-height:115%">Regards,</span></p>

<p class="MsoNormal"><span style="font-size:12pt;line-height:115%">Chinmaya</span></p></div>
</blockquote></div><br></div>