PowerVM

Power Virtualization

Learn about the virtualization technologies designed specifically for IBM Power including #PowerVM, #PowerVC, #VM Recovery Manager#HCM/CMC, and more.


#Power
#TechXchangeConferenceLab

 View Only
  • 1.  Add a vnic adapter to lpar using cli

    Posted yesterday

    Hi together,

    Where can I find all the attributes in the chhwres description?
    I'm specifically looking to assign a vNIC to an lpar with vlan tagging:

    chhwres -r virtualio -m <Server> --rsubtype vnic -o a -v -p <lpar> -a port_vlan_id=6,"backing_devices=sriov/vio1/1/1/0/2.0"

    and I get the following:
    HSCL1327 A port VLAN ID is not allowed with the specified VLAN restriction.

    What is the name of the attribute for VLAN restriction?

    Thanks in advance



    ------------------------------
    Falko Huetter
    Consultant
    PROFI Engineering Systems AG
    Darmstadt
    0049 6151 82900
    ------------------------------


  • 2.  RE: Add a vnic adapter to lpar using cli

    Posted 15 hours ago

    Hi Falko,

    What is the name of the attribute for VLAN restriction?

    I assume you have to specify with allowed_vlan_ids

    all means all VLAN IDs are allowed (default value)
    none means no VLAN IDs are allowed

    CHers Patrick



    ------------------------------
    Patrick Hügli
    ------------------------------



  • 3.  RE: Add a vnic adapter to lpar using cli

    Posted 7 hours ago

    Good question - you're working with HMC CLI (chhwres) on PowerVM.

    The tricky part is that chhwres attributes differ depending on the resource subtype (--rsubtype), and IBM doesn't publish them in one single manpage, but in the HMC CLI command reference (part of IBM Knowledge Center / PowerVM InfoCenter).

    Where to find the attributes

    For your case:

    Command: chhwres -r virtualio -m <server> --rsubtype vnic ...

    The full list of attributes for --rsubtype vnic is in the PowerVM HMC CLI Command Reference under chhwres → virtualio → vnic.

    The documentation is in IBM Knowledge Center, section "Virtual NIC Resource Attributes".

    About VLANs on vNICs

    The error you saw:

    HSCL1327 A port VLAN ID is not allowed with the specified VLAN restriction.

    means you're mixing two different VLAN configuration modes:

    port_vlan_id → used for untagged/native VLAN assignment.

    allowed_vlans / vlan_ids / vlan_tag_ids → used for VLAN trunking (tagged VLANs).

    The attribute controlling the restriction is typically:

    allowed_vlan_ids (sometimes just vlan_ids in older docs).

    So:

    If you want a single access VLAN: use port_vlan_id=6.

    If you want tagging/trunking: instead specify allowed_vlan_ids=6 (or a comma-separated list/range like 1-10,20,30), without port_vlan_id.

    Example

    Assign vNIC with VLAN tagging (trunk VLAN 6) to an LPAR:

    chhwres -r virtualio -m <Server> --rsubtype vnic -o a -p <LPAR> \

      -a "backing_devices=sriov/vio1/1/1/0/2.0,allowed_vlan_ids=6"

    If you want VLAN 6 as native/untagged plus allow tagging on others, you can combine:

    -a "backing_devices=...,port_vlan_id=6,allowed_vlan_ids=6,10-20"

    Answer to your question:

    The attribute you're looking for is allowed_vlan_ids (sometimes referred to as VLAN restriction in the docs).

     

    Gerne stehe ich Ihnen für Fragen oder weitere Informationen zur Verfügung.

     

    Mit freundlichen Grüßen

    Torsten Straub

     


    Torsten Straub

     

    bluvisio GmbH 
    Bahnhofstrasse 76
    D-63801 Kleinostheim

    Mobil:       +49(0)175-1001140
    Email:        t.straub@bluvisio.de
    Web:         www.bluvisio.de

     

    Geschäftsführer: Sebastian Wukits, Jan Dittel | Amtsgericht Aschaffenburg - HRB: 11326 | USt-ID-Nr.: DE267410292

    Grenke Bank AG - IBAN: DE13201304000060017423 - BIC: GREBDEH1

     

    Angebote sind immer freibleibend und haben Gültigkeit, solange der Vorrat reicht. Der Zwischenverkauf bleibt grundsätzlich vorbehalten.