<div dir="ltr">Thanks a lot Yong, PCI - Nic has been created.<div><br></div><div>Regards,</div><div>Himanshu Goyal</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 30, 2019 at 5:13 PM Hu, Yong <<a href="mailto:yong.hu@intel.com">yong.hu@intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-US">
<div class="gmail-m_8705218937641887115WordSection1">
<p class="MsoNormal">Hi Himanshu,<u></u><u></u></p>
<p class="MsoNormal">If I remember correctly, this network won’t be active until is actually being used by the VMs.<u></u><u></u></p>
<p class="MsoNormal">So, you can go on.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">In addition, the following 2 steps are important, FYI.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="gmail-m_8705218937641887115p1"># create a port for PCI-Passthrough<u></u><u></u></p>
<p class="gmail-m_8705218937641887115p1"># net-testpci is supported by “providenet-b”<u></u><u></u></p>
<p class="gmail-m_8705218937641887115p1">openstack port create --network <b>net-testpci</b> --vnic-type <b>direct-physical</b> pt_port<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"># create VM by specifying the network with which the pt_port is attached.<u></u><u></u></p>
<p class="gmail-m_8705218937641887115p1">openstack server create --flavor <flavor_name> --image <vm_image_name> --nic net-id=<b>net-testpci</b> pcipt_vm<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">regards,<u></u><u></u></p>
<p class="MsoNormal">Yong<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:12pt;color:black">From: </span></b><span style="font-size:12pt;color:black">Himanshu Goyal <<a href="mailto:himanshugoyal500@gmail.com" target="_blank">himanshugoyal500@gmail.com</a>><br>
<b>Date: </b>Wednesday, 30 January 2019 at 3:44 PM<br>
<b>To: </b>"Hu, Yong" <<a href="mailto:yong.hu@intel.com" target="_blank">yong.hu@intel.com</a>><br>
<b>Cc: </b>"<a href="mailto:starlingx-discuss@lists.starlingx.io" target="_blank">starlingx-discuss@lists.starlingx.io</a>" <<a href="mailto:starlingx-discuss@lists.starlingx.io" target="_blank">starlingx-discuss@lists.starlingx.io</a>><br>
<b>Subject: </b>Re: [Starlingx-discuss] PCI - Passthrough Interafce on VM<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><a name="m_8705218937641887115__MailOriginalBody">Thanks Yong, <u></u><u></u></a></p>
<div>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span>PCI Network has been created after given commands,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span>But In GUI it shows as status DOWN, tried with compute lock & unlock also.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span><img width="473" height="35" style="width: 4.927in; height: 0.3645in;" id="gmail-m_8705218937641887115_x0000_i1025" src="cid:1689ee06a014cff311" alt="image.png"><u></u><u></u></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span>Please suggest which logs we can check.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span>Regards,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span>Himanshu Goyal<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span>On Tue, Jan 29, 2019 at 10:58 AM Hu, Yong <</span><a href="mailto:yong.hu@intel.com" target="_blank"><span>yong.hu@intel.com</span><span></span></a><span>>
wrote:<u></u><u></u></span></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="gmail-m_8705218937641887115gmail-m-7277176857630195561p1"><span>On step #2, “--type” should be “vlan”.<u></u><u></u></span></p>
<p class="gmail-m_8705218937641887115gmail-m-7277176857630195561p1"><span> <u></u><u></u></span></p>
<p class="gmail-m_8705218937641887115gmail-m-7277176857630195561p1"><span>On step #3, “-nt” option was removed for a while, you might use “-c” (meaning “The class of the interface”), as follows:<u></u><u></u></span></p>
<p class="gmail-m_8705218937641887115gmail-m-7277176857630195561p1"><span> <u></u><u></u></span></p>
<p class="gmail-m_8705218937641887115gmail-m-7277176857630195561p1"><span>$ system host-if-modify -c pci-passthrough -p providernet-b compute-0 ens513f1<u></u><u></u></span></p>
<p class="MsoNormal"><span> <u></u><u></u></span></p>
<p class="MsoNormal"><span>Using “Horizon” is another convenient way to perform these operations.<u></u><u></u></span></p>
<p class="MsoNormal"><span> <u></u><u></u></span></p>
<p class="MsoNormal"><span> <u></u><u></u></span></p>
<p class="MsoNormal"><span> <u></u><u></u></span></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0cm 0cm">
<p class="MsoNormal"><span><b><span style="font-size:12pt;color:black">From:
</span></b></span><span><span style="font-size:12pt;color:black">Himanshu Goyal <</span></span><a href="mailto:himanshugoyal500@gmail.com" target="_blank"><span><span style="font-size:12pt">himanshugoyal500@gmail.com</span></span><span></span></a><span><span style="font-size:12pt;color:black">><br>
<b>Date: </b>Tuesday, 29 January 2019 at 1:14 PM<br>
<b>To: </b>"</span></span><a href="mailto:starlingx-discuss@lists.starlingx.io" target="_blank"><span><span style="font-size:12pt">starlingx-discuss@lists.starlingx.io</span></span><span></span></a><span><span style="font-size:12pt;color:black">"
<</span></span><a href="mailto:starlingx-discuss@lists.starlingx.io" target="_blank"><span><span style="font-size:12pt">starlingx-discuss@lists.starlingx.io</span></span><span></span></a><span><span style="font-size:12pt;color:black">><br>
<b>Subject: </b>[Starlingx-discuss] PCI - Passthrough Interafce on VM</span><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span> <u></u><u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span><a name="m_8705218937641887115_m_-7277176857630195561__MailOriginalBody">Hi,</a><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span>I built a setup with controller & compute machine. Able to spawn VM with flat network, But I need one PCI-Passthrough interface also
on VM.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span>Please suggest the steps to create vm with PCI-Passthrough NIC.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span>Currently I'm following the below steps for creating pci-passthrough network:<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span>Step1: system host-lock compute-0<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span>step2: </span><span><span style="font-size:9pt;font-family:"Courier New";color:black">neutron
providernet-create pci_net --type flat</span><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span>step3: system host-if-modify -m 1500 -n pci_0 -p "pci_net" -nt pci-passthrough compute-0 ens513f1<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span>step3 is giving wrong command error, can you please provide me the correct commands for the same. or if there is any other way to configure
that.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span>Regards.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span>Himanshu Goyal</span><u></u><u></u></p>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote></div>