The specified vnic driver is not selected at the time of Image creation.
search cancel

The specified vnic driver is not selected at the time of Image creation.

book

Article ID: 398187

calendar_today

Updated On:

Products

VMware Integrated OpenStack

Issue/Introduction

  • The specified NIC driver does not reflect while openstack image creation.
  • Attempting to change the vNIC driver from "vmxnet3" to "e1000" fails
  • Specifying PhotonOS to change eth0 from vmxnet3  to e1000 using the folllowing attribute by referrring VIO Adminstration Guide 7.3 (refer pg 88) Instance with Multi vNIC
「--property vmware:extra_config='{"hw_vif_models": {"0": "e1000"}}'」
 
-----------------------------------
■ openstack image create
openstack image create "kbn_photon3.0_e1000_1" \
  --disk-format vmdk \
  --container-format bare \
  --property vmware_adaptertype=lsiLogic \
  --property vmware_disktype=streamOptimized \
  --property vmware:extra_config='{"hw_vif_models": {"0": "e1000"}}' \ ★
  --file Photon30.vmdk \
  --public

Environment

  • VMware Integrated Openstack 7.x

Cause

  • From the configuration file  vmware:extra_config='{"hw_vif_models": {"1": "e1000"}}' was being used.
  • The Argument "vmware:"is used for flavor and not for image creation.

--------------------------
① openstack image create "kbn_photon3.0_e1000_0_20250415" \ --disk-format vmdk \ --container-format bare \ --property vmware_adaptertype=lsiLogic \ --property vmware_disktype=streamOptimized \ --property vmware:extra_config='{"hw_vif_models": {"0": "e1000"}}' \ --file Photon30.vmdk \ --public ② openstack image create "kbn_photon3.0_e1000_1_20250415" \ --disk-format vmdk \ --container-format bare \ --property vmware_adaptertype=lsiLogic \ --property vmware_disktype=streamOptimized \ --property vmware:extra_config='{"hw_vif_models": {"1": "e1000"}}' \ --file Photon30.vmdk \ --public ③ openstack image create "kbn_photon3.0_e1000_all_20250415" \ --disk-format vmdk \ --container-format bare \ --property vmware_adaptertype=lsiLogic \ --property vmware_disktype=streamOptimized \ --property hw_vif_model=e1000 \ --file Photon30.vmdk \ --public
---------------

  • Invalid  vSAN storage policy, error noticed in the logs 

2025-05-07 04:13:09.018 1 ERROR nova.virt.vmwareapi.ds_util [req-05a0ef0e-011d-4a29-9d65-a66131c8e61d acd4961f975046ff944bb8bca414dcff 5c9b553697404a6ab842525b975bfa5d - default default] Unable to retrieve storage policy with name "vSAN Custom storage policy"

Resolution

  • For image extra spec, the following attribute needs to be used and not "vmware:extra_config"

#vmware_extra_config='{"hw_vif_models":{"0": "e1000"}}'

  • It was observed that changing the vSAN storage policy to default helped fixing the issue,however if the requirement is to use custom policy file a ticket with Broadcom support.

----------------------------------------
kbn@dev-tb-xxxxxxxxxxx:/mnt/kbn/work/mano/images$ openstack server list --all +--------------------------------------+-----------------------------------+----| ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------+--------+----------------

| bdd99e64-b09e-45f0-ad7d-5bbc5dcc4e12 | VM_kbn_photon3.0_e1000_0_20250513 | ACTIVE | OAM-Tenant-NW-NoNAT-001=10.2.178.196 | kbn_photon3.0_e1000_0_20250513 | root@vm-kbn-photon3 [ ~ ]# dmesg | grep -i eth [ 0.844189] e1000 0000:02:00.0 eth0: (PCI:66MHz:32-bit) fa:16:3e:f0:9f:a2 [ 0.844192] e1000 0000:02:00.0 eth0: Intel(R) PRO/1000 Network Connection [ 3.710748] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 3.719606] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None [ 3.720366] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 6.942846] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 6.947439] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None [ 6.948211] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
---------------------------------------------