Installation guide

Chapter 29. N_Port ID Virtualization (NPIV)
254
WWNN and WWPN validation
Libvirt does not validate the WWPN or WWNN values, invalid WWNs are rejected by
the kernel and libvirt reports the failure. The error reported by the kernel is similar to the
following:
# virsh nodedev-create badwwn.xml
error: Failed to create node device from badwwn.xml
error: Write of '1111222233334444:5555666677778888' to '/sys/class/fc_host/host6/
vport_create' during vport create/delete failed: No such file or directory
4. Create the virtual HBA
Create the virtual HBA with the virsh nodedev-create command using the file from the
previous step.
# virsh nodedev-create newHBA.xml
Node device pci_10df_fe00_0_scsi_host_0_scsi_host created from newHBA.xml
The new virtual HBA should be detected and available to the host. The create command output
gives you the node device name of the newly created device.
Destroying a virtual HBA with virsh
To destroy the device, use virsh nodedev-destroy:
# virsh nodedev-destroy pci_10df_fe00_0_scsi_host_0_scsi_host
Destroyed node device 'pci_10df_fe00_0_scsi_host_0_scsi_host'