On May 21, 2009, at 11:34 AM, Narendra Kumar.S.S wrote:

Hi,

I am discussing a problem with a customer who is trying to configure vnic in a NGZ thru sysidcfg.

He is giving a sysidcfg file in which network_interface is configured as vnic0.
 So, the NGZ should create this vnic and configure this.

Here is the information that they have given regarding the NGZ and the interfaces:

From global zone:

$ zoneadm -z mathesar-z1 list -v
ID NAME STATUS PATH BRAND IP 10 mathesar-z1 running /export/home/zones/ mathesar-z1 native excl $ ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 e1000g0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
  inet 10.8.57.93 netmask ffffff00 broadcast 10.8.57.255
ether 0:14:4f:20:82:24 lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1 inet6 ::1/128 e1000g0: flags=2000841<UP,RUNNING,MULTICAST,IPv6> mtu 1500 index 2 inet6 fe80::214:4fff:fe20:8224/10 ether 0:14:4f:20:82:24 e1000g0:1: flags=2080841<UP,RUNNING,MULTICAST,ADDRCONF,IPv6> mtu 1500 index 2
  inet6 2002:a08:39f0:1:214:4fff:fe20:8224/64
$ dladm show-vnic LINK OVER SPEED MACADDRESS MACADDRTYPE VID vnic0 e1000g1 1000 2:8:20:4f:b3:a6 random 0

$ zonecfg -z mathesar-z1 info
zonename: mathesar-z1
zonepath: /export/home/zones/mathesar-z1
brand: native
autoboot: true
bootargs: pool: limitpriv: scheduling-class: ip-type: exclusive
hostid: inherit-pkg-dir:
  dir: /lib
inherit-pkg-dir:
  dir: /platform
inherit-pkg-dir:
  dir: /sbin
inherit-pkg-dir:
  dir: /usr
net:
  address not specified
  physical: vnic0
  defrouter not specified

$ zlogin mathesar-z1 ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 vnic0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
  inet 10.0.1.100 netmask ffffff00 broadcast 10.0.1.255
ether 2:8:20:4f:b3:a6 lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1 inet6 ::1/128 vnic0: flags=2004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 2
  inet6 fe80::8:20ff:fe4f:b3a6/10     ether 2:8:20:4f:b3:a6
$ zlogin mathesar-z1 cat /etc/hostname.vnic0
mathesar-z1

Now the problem that is observed is, during zlogin an error message is getting printed. The error message is: "vnic0 is not a valid network interface line 7 position 19".

According to the output above vnic0 seems to be configured in the non- global zone, is the configuration of vnic0 correct? Did you already check the contents of the sysidcfg config file?

Did they try to specify the "PRIMARY" interface instead of "vnic0" in the sysidcfg config file? Did they try to assign the physical NIC (for example e1000g1) to the zone instead to see if they still get this error message?

Nicolas.





If you have any suggestion on possible workarounds or solutions, please let me know.

Regards,
Narendra

_______________________________________________
crossbow-discuss mailing list
crossbow-disc...@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/crossbow-discuss

--
Nicolas Droux - Solaris Kernel Networking - Sun Microsystems, Inc.
nicolas.dr...@sun.com - http://blogs.sun.com/droux

_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to