Installation guide

Verify NPIV is used on the HBA
253
Adding the virtual HBA with virsh
This procedure covers creating virtual HBA devices on a host with virsh. This procedure requires a
compatible HBA device.
1. List available HBAs
Find the node device name of the HBA with the virtual adapters. List of all the HBAs on the host
with the following command:
# virsh nodedev-list -TODO-cap=scsi_host
pci_10df_fe00_0_scsi_host
pci_10df_fe00_0_scsi_host_0
pci_10df_fe00_scsi_host
pci_10df_fe00_scsi_host_0
pci_10df_fe00_scsi_host_0_scsi_host
pci_10df_fe00_scsi_host_0_scsi_host_0
2. Gather parent HBA device data
Output the XML definition for each required HBA. This example uses the HBA,
pci_10df_fe00_scsi_host.
# virsh nodedev-dumpxml pci_10df_fe00_scsi_host
<device>
<name>pci_10df_fe00_scsi_host</name>
<parent>pci_10df_fe00</parent>
<capability type='scsi_host'>
<host>5</host>
<capability type='fc_host'>
<wwnn>20000000c9848140</wwnn>
<wwpn>10000000c9848140</wwpn>
</capability>
<capability type='vport_ops' />
</capability>
</device>
HBAs capable of creating virtual HBAs have a capability type='vport_ops' in the XML
definition.
3. Create the XML definition for the virtual HBA
With information gathered in the previous step, create an XML definition for the virtual HBA. This
example uses a file named newHBA.xml.
<device>
<parent>pci_10df_fe00_0_scsi_host</parent>
<capability type='scsi_host'>
<capability type='fc_host'>
<wwpn>1111222233334444</wwpn>
<wwnn>5555666677778888</wwnn>
</capability>
</capability>
</device>
The <parent> element is the name of the parent HBA listed by the virsh nodedev-list
command. The <wwpn> and <wwnn> elements are the WWNN and WWPN for the virtual HBA.