Narendra Kumar.S.S
2009-May-21 17:34 UTC
[crossbow-discuss] A query regarding vnic, NGZ and sysidcfg
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". If you have any suggestion on possible workarounds or solutions, please let me know. Regards, Narendra
Nicolas Droux
2009-May-21 21:07 UTC
[crossbow-discuss] A query regarding vnic, NGZ and sysidcfg
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-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/crossbow-discuss-- Nicolas Droux - Solaris Kernel Networking - Sun Microsystems, Inc. nicolas.droux at sun.com - http://blogs.sun.com/droux
Narendra Kumar.S.S
2009-May-22 05:38 UTC
[crossbow-discuss] A query regarding vnic, NGZ and sysidcfg
Nicolas Droux wrote:> > 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.Here below is the sysidcfg of NGZ: cat /etc/sysidcfg: system_locale=C terminal=xterms security_policy=NONE timezone=US/Eastern nfs4_domain=east.sun.com root_password=rJSJNt0RfvMy6 network_interface=vnic0 { primary hostname=mathesar-z1 ip_address=10.0.1.100 netmask=255.255.255.0 default_route=NONE protocol_ipv6=yes } name_service=NONE They haven''t tried to use PRIMARY for network_interface. I think, if PRIMARY is used, it will take the first probed physical interface which could be e1000g0. If they want vnic0 to be Primary interface, then they have to specify network_interface as vnic0. When zlogin -C is done, it goes thru the sysid phase. At this stage, the vnic0 is not yet plumbed, right? (Please correct me if my assumption is wrong) Now, before configuring the interface specified for network_interface keyword, it creates a list of all the available interfaces. So, at this stage the vnic0 is not yet plumbed and hence it will not make it to the list. Because of this validation of the name vnic0 fails and the error message is printed. Do you think, this is the possible reason for the error? Now, do we have any solution here? Is it possible to plumb vnic0 during zone boot? Is the responsibility of the boot code or zones code? Regards, Narendra> > > >> >> >> If you have any suggestion on possible workarounds or solutions, >> please let me know. >> >> Regards, >> Narendra >> >> _______________________________________________ >> crossbow-discuss mailing list >> crossbow-discuss at opensolaris.org >> http://mail.opensolaris.org/mailman/listinfo/crossbow-discuss >
Nicolas Droux
2009-May-22 18:28 UTC
[crossbow-discuss] A query regarding vnic, NGZ and sysidcfg
On May 21, 2009, at 11:38 PM, Narendra Kumar.S.S wrote:> Here below is the sysidcfg of NGZ: > > cat /etc/sysidcfg: > system_locale=C > terminal=xterms > security_policy=NONE > timezone=US/Eastern > nfs4_domain=east.sun.com > root_password=rJSJNt0RfvMy6 > network_interface=vnic0 { > primaryThey shouldn''t be using the "primary" option here, which should only be used with multiple network_interface entries, see sysidcfg(4).> > hostname=mathesar-z1 > ip_address=10.0.1.100 > netmask=255.255.255.0 > default_route=NONE > protocol_ipv6=yes > } > > name_service=NONE > > They haven''t tried to use PRIMARY for network_interface. > I think, if PRIMARY is used, it will take the first probed physical > interface which could be e1000g0. > If they want vnic0 to be Primary interface, then they have to > specify network_interface as vnic0.In the case of a non-global zone it will be the interface which was assigned to the zone, so in this case vnic0. So instead of the above they could remove the "primary" option and specify "PRIMARY" interface instead of vnic0 as follows: network_interface=PRIMARY { hostname=mathesar-z1 ip_address=10.0.1.100 netmask=255.255.255.0 default_route=NONE protocol_ipv6=yes } See also Steffen''s blog entry at http://blogs.sun.com/stw/entry/crossbow_is_delivered_traveling_vnics for an example showing how to use sysidcfg with VNICs and zones. Nicolas. -- Nicolas Droux - Solaris Kernel Networking - Sun Microsystems, Inc. nicolas.droux at sun.com - http://blogs.sun.com/droux
Steffen Weiberle
2009-May-22 22:22 UTC
[crossbow-discuss] [zones-discuss] A query regarding vnic, NGZ and sysidcfg
On 05/22/09 14:28, Nicolas Droux wrote:> > On May 21, 2009, at 11:38 PM, Narendra Kumar.S.S wrote: > >> Here below is the sysidcfg of NGZ: >> >> cat /etc/sysidcfg: >> system_locale=C >> terminal=xterms >> security_policy=NONE >> timezone=US/Eastern >> nfs4_domain=east.sun.com >> root_password=rJSJNt0RfvMy6 >> network_interface=vnic0 { >> primary > > They shouldn''t be using the "primary" option here, which should only be > used with multiple network_interface entries, see sysidcfg(4). > >> >> hostname=mathesar-z1 >> ip_address=10.0.1.100 >> netmask=255.255.255.0 >> default_route=NONE >> protocol_ipv6=yes >> } >> >> name_service=NONE >> >> They haven''t tried to use PRIMARY for network_interface. >> I think, if PRIMARY is used, it will take the first probed physical >> interface which could be e1000g0. >> If they want vnic0 to be Primary interface, then they have to specify >> network_interface as vnic0. > > In the case of a non-global zone it will be the interface which was > assigned to the zone, so in this case vnic0. So instead of the above > they could remove the "primary" option and specify "PRIMARY" interface > instead of vnic0 as follows: > > network_interface=PRIMARY { > hostname=mathesar-z1 > ip_address=10.0.1.100 > netmask=255.255.255.0 > default_route=NONE > protocol_ipv6=yes > } > > See also Steffen''s blog entry at > http://blogs.sun.com/stw/entry/crossbow_is_delivered_traveling_vnics for > an example showing how to use sysidcfg with VNICs and zones. > > Nicolas.I have seen errors like this as well, and working on an example with *two* interfaces, both VNICs, I come across this also. Have been wondering where to look regarding sysidcfg and its long term use, and whether to file a bug. And if so, under which category. Also, the second interface must have a default_route entry, even if it is the same as that in the first (there is no router on the second subnet, it is on an etherstub). Without that, the interface is plumbed with 0.0.0.0. Steffen opensolaris2009.06# cat web1.sysidcfg terminal=xterm system_locale=C network_interface=web1 {primary hostname=web1 ip_address=10.1.14.181 netmask=255.255.255.0 protocol_ipv6=no default_route=10.1.14.130 } network_interface=webp1 { hostname=webp1 ip_address=172.16.10.181 netmask=255.255.255.0 protocol_ipv6=no default_route=10.1.14.130 } security_policy=NONE name_service=NONE timezone=US/Eastern timeserver=localhost nfs4_domain=dynamic root_password="yEB135fOEQHts" service_profile=limited_net SunOS Release 5.11 Version snv_111a 64-bit Copyright 1983-2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Hostname: web1 Reading ZFS config: done. Mounting ZFS filesystems: (6/6) network_interface=web1 {primary web1 is not a valid network interface line 3 position 19 Creating new rsa public/private host key pair Creating new dsa public/private host key pair Configuring network interface addresses: web1 webp1. web1 console login:
Narendra Kumar S.S
2009-May-25 06:33 UTC
[crossbow-discuss] [zones-discuss] A query regarding vnic, NGZ and sysidcfg
Steffen Weiberle wrote:> On 05/22/09 14:28, Nicolas Droux wrote: >> >> On May 21, 2009, at 11:38 PM, Narendra Kumar.S.S wrote: >> >>> Here below is the sysidcfg of NGZ: >>> >>> cat /etc/sysidcfg: >>> system_locale=C >>> terminal=xterms >>> security_policy=NONE >>> timezone=US/Eastern >>> nfs4_domain=east.sun.com >>> root_password=rJSJNt0RfvMy6 >>> network_interface=vnic0 { >>> primary >> >> They shouldn''t be using the "primary" option here, which should only >> be used with multiple network_interface entries, see sysidcfg(4). >> >>> >>> hostname=mathesar-z1 >>> ip_address=10.0.1.100 >>> netmask=255.255.255.0 >>> default_route=NONE >>> protocol_ipv6=yes >>> } >>> >>> name_service=NONE >>> >>> They haven''t tried to use PRIMARY for network_interface. >>> I think, if PRIMARY is used, it will take the first probed physical >>> interface which could be e1000g0. >>> If they want vnic0 to be Primary interface, then they have to >>> specify network_interface as vnic0. >> >> In the case of a non-global zone it will be the interface which was >> assigned to the zone, so in this case vnic0. So instead of the above >> they could remove the "primary" option and specify "PRIMARY" >> interface instead of vnic0 as follows: >> >> network_interface=PRIMARY { >> hostname=mathesar-z1 >> ip_address=10.0.1.100 >> netmask=255.255.255.0 >> default_route=NONE >> protocol_ipv6=yes >> } >> >> See also Steffen''s blog entry at >> http://blogs.sun.com/stw/entry/crossbow_is_delivered_traveling_vnics >> for an example showing how to use sysidcfg with VNICs and zones. >> >> Nicolas. > > I have seen errors like this as well, and working on an example with > *two* interfaces, both VNICs, I come across this also. Have been > wondering where to look regarding sysidcfg and its long term use, and > whether to file a bug. And if so, under which category.The category/subcategory will be: sysadmin/sysidtool under Solaris product.> > Also, the second interface must have a default_route entry, even if it > is the same as that in the first (there is no router on the second > subnet, it is on an etherstub). Without that, the interface is plumbed > with 0.0.0.0.From your sysidcfg below: Is your interface name and hostname same? As advised by Nicolas, please remove the word primary from within the braces and see how it goes. Regards, Narendra> > Steffen > > opensolaris2009.06# cat web1.sysidcfg > terminal=xterm > system_locale=C > network_interface=web1 {primary > hostname=web1 > ip_address=10.1.14.181 > netmask=255.255.255.0 > protocol_ipv6=no > default_route=10.1.14.130 > } > network_interface=webp1 { > hostname=webp1 > ip_address=172.16.10.181 > netmask=255.255.255.0 > protocol_ipv6=no > default_route=10.1.14.130 > } > security_policy=NONE > name_service=NONE > timezone=US/Eastern > timeserver=localhost > nfs4_domain=dynamic > root_password="yEB135fOEQHts" > service_profile=limited_net > > > SunOS Release 5.11 Version snv_111a 64-bit > Copyright 1983-2009 Sun Microsystems, Inc. All rights reserved. > Use is subject to license terms. > Hostname: web1 > Reading ZFS config: done. > Mounting ZFS filesystems: (6/6) > network_interface=web1 {primary > web1 is not a valid network interface line 3 position 19 > Creating new rsa public/private host key pair > Creating new dsa public/private host key pair > Configuring network interface addresses: web1 webp1. > > web1 console login: > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/crossbow-discuss/attachments/20090525/fe9e9ee2/attachment.html>
Steffen Weiberle
2009-May-26 12:47 UTC
[crossbow-discuss] [zones-discuss] A query regarding vnic, NGZ and sysidcfg
On 05/25/09 02:33, Narendra Kumar S.S wrote:> Steffen Weiberle wrote: >> On 05/22/09 14:28, Nicolas Droux wrote: >>> >>> On May 21, 2009, at 11:38 PM, Narendra Kumar.S.S wrote: >>> >>>> Here below is the sysidcfg of NGZ: >>>> >>>> cat /etc/sysidcfg: >>>> system_locale=C >>>> terminal=xterms >>>> security_policy=NONE >>>> timezone=US/Eastern >>>> nfs4_domain=east.sun.com >>>> root_password=rJSJNt0RfvMy6 >>>> network_interface=vnic0 { >>>> primary >>> >>> They shouldn''t be using the "primary" option here, which should only >>> be used with multiple network_interface entries, see sysidcfg(4). >>> >>>> >>>> hostname=mathesar-z1 >>>> ip_address=10.0.1.100 >>>> netmask=255.255.255.0 >>>> default_route=NONE >>>> protocol_ipv6=yes >>>> } >>>> >>>> name_service=NONE >>>> >>>> They haven''t tried to use PRIMARY for network_interface. >>>> I think, if PRIMARY is used, it will take the first probed physical >>>> interface which could be e1000g0. >>>> If they want vnic0 to be Primary interface, then they have to >>>> specify network_interface as vnic0. >>> >>> In the case of a non-global zone it will be the interface which was >>> assigned to the zone, so in this case vnic0. So instead of the above >>> they could remove the "primary" option and specify "PRIMARY" >>> interface instead of vnic0 as follows: >>> >>> network_interface=PRIMARY { >>> hostname=mathesar-z1 >>> ip_address=10.0.1.100 >>> netmask=255.255.255.0 >>> default_route=NONE >>> protocol_ipv6=yes >>> } >>> >>> See also Steffen''s blog entry at >>> http://blogs.sun.com/stw/entry/crossbow_is_delivered_traveling_vnics >>> for an example showing how to use sysidcfg with VNICs and zones. >>> >>> Nicolas. >> >> I have seen errors like this as well, and working on an example with >> *two* interfaces, both VNICs, I come across this also. Have been >> wondering where to look regarding sysidcfg and its long term use, and >> whether to file a bug. And if so, under which category. > The category/subcategory will be: sysadmin/sysidtool under Solaris product.Thanks.>> Also, the second interface must have a default_route entry, even if it >> is the same as that in the first (there is no router on the second >> subnet, it is on an etherstub). Without that, the interface is plumbed >> with 0.0.0.0. > From your sysidcfg below: Is your interface name and hostname same? > As advised by Nicolas, please remove the word primary from within the > braces and see how it goes.Yes, interface and hostname are the same, as I like the option to make my interface names be ease to see where they are being used, now that we can set the name. Nicolas'' advice applies if you you only configuring one interface. The ''primary'' keyword is appropriate when configuring multiple, see "Multiple Network Interfaces" in sysidcfg(4). I must admit that I fail to see the value of the ''primary'' keyword when not using DHCP--this is a habit of mine. Either the process or the documentation may need updating. Steffen> > Regards, > Narendra >> >> Steffen >> >> opensolaris2009.06# cat web1.sysidcfg >> terminal=xterm >> system_locale=C >> network_interface=web1 {primary >> hostname=web1 >> ip_address=10.1.14.181 >> netmask=255.255.255.0 >> protocol_ipv6=no >> default_route=10.1.14.130 >> } >> network_interface=webp1 { >> hostname=webp1 >> ip_address=172.16.10.181 >> netmask=255.255.255.0 >> protocol_ipv6=no >> default_route=10.1.14.130 >> } >> security_policy=NONE >> name_service=NONE >> timezone=US/Eastern >> timeserver=localhost >> nfs4_domain=dynamic >> root_password="yEB135fOEQHts" >> service_profile=limited_net >> >> >> SunOS Release 5.11 Version snv_111a 64-bit >> Copyright 1983-2009 Sun Microsystems, Inc. All rights reserved. >> Use is subject to license terms. >> Hostname: web1 >> Reading ZFS config: done. >> Mounting ZFS filesystems: (6/6) >> network_interface=web1 {primary >> web1 is not a valid network interface line 3 position 19 >> Creating new rsa public/private host key pair >> Creating new dsa public/private host key pair >> Configuring network interface addresses: web1 webp1. >> >> web1 console login: >> >> >> >
Narendra Kumar S.S
2009-May-27 05:14 UTC
[crossbow-discuss] [zones-discuss] A query regarding vnic, NGZ and sysidcfg
Steffen Weiberle wrote:> On 05/25/09 02:33, Narendra Kumar S.S wrote: >> Steffen Weiberle wrote: >>> On 05/22/09 14:28, Nicolas Droux wrote: >>>> >>>> On May 21, 2009, at 11:38 PM, Narendra Kumar.S.S wrote: >>>> >>>>> Here below is the sysidcfg of NGZ: >>>>> >>>>> cat /etc/sysidcfg: >>>>> system_locale=C >>>>> terminal=xterms >>>>> security_policy=NONE >>>>> timezone=US/Eastern >>>>> nfs4_domain=east.sun.com >>>>> root_password=rJSJNt0RfvMy6 >>>>> network_interface=vnic0 { >>>>> primary >>>> >>>> They shouldn''t be using the "primary" option here, which should >>>> only be used with multiple network_interface entries, see sysidcfg(4). >>>> >>>>> >>>>> hostname=mathesar-z1 >>>>> ip_address=10.0.1.100 >>>>> netmask=255.255.255.0 >>>>> default_route=NONE >>>>> protocol_ipv6=yes >>>>> } >>>>> >>>>> name_service=NONE >>>>> >>>>> They haven''t tried to use PRIMARY for network_interface. >>>>> I think, if PRIMARY is used, it will take the first probed >>>>> physical interface which could be e1000g0. >>>>> If they want vnic0 to be Primary interface, then they have to >>>>> specify network_interface as vnic0. >>>> >>>> In the case of a non-global zone it will be the interface which was >>>> assigned to the zone, so in this case vnic0. So instead of the >>>> above they could remove the "primary" option and specify "PRIMARY" >>>> interface instead of vnic0 as follows: >>>> >>>> network_interface=PRIMARY { >>>> hostname=mathesar-z1 >>>> ip_address=10.0.1.100 >>>> netmask=255.255.255.0 >>>> default_route=NONE >>>> protocol_ipv6=yes >>>> } >>>> >>>> See also Steffen''s blog entry at >>>> http://blogs.sun.com/stw/entry/crossbow_is_delivered_traveling_vnics >>>> for an example showing how to use sysidcfg with VNICs and zones. >>>> >>>> Nicolas. >>> >>> I have seen errors like this as well, and working on an example with >>> *two* interfaces, both VNICs, I come across this also. Have been >>> wondering where to look regarding sysidcfg and its long term use, >>> and whether to file a bug. And if so, under which category. >> The category/subcategory will be: sysadmin/sysidtool under Solaris >> product. > > Thanks. > > >>> Also, the second interface must have a default_route entry, even if >>> it is the same as that in the first (there is no router on the >>> second subnet, it is on an etherstub). Without that, the interface >>> is plumbed with 0.0.0.0. >> From your sysidcfg below: Is your interface name and hostname same? >> As advised by Nicolas, please remove the word primary from within the >> braces and see how it goes. > > Yes, interface and hostname are the same, as I like the option to make > my interface names be ease to see where they are being used, now that > we can set the name. > > Nicolas'' advice applies if you you only configuring one interface. The > ''primary'' keyword is appropriate when configuring multiple, see > "Multiple Network Interfaces" in sysidcfg(4). > > I must admit that I fail to see the value of the ''primary'' keyword > when not using DHCP--this is a habit of mine. Either the process or > the documentation may need updating. > > SteffenSo, I think the keyword ''primary'' is not working only in case of vnics. -Narendra> > >> >> Regards, >> Narendra >>> >>> Steffen >>> >>> opensolaris2009.06# cat web1.sysidcfg >>> terminal=xterm >>> system_locale=C >>> network_interface=web1 {primary >>> hostname=web1 >>> ip_address=10.1.14.181 >>> netmask=255.255.255.0 >>> protocol_ipv6=no >>> default_route=10.1.14.130 >>> } >>> network_interface=webp1 { >>> hostname=webp1 >>> ip_address=172.16.10.181 >>> netmask=255.255.255.0 >>> protocol_ipv6=no >>> default_route=10.1.14.130 >>> } >>> security_policy=NONE >>> name_service=NONE >>> timezone=US/Eastern >>> timeserver=localhost >>> nfs4_domain=dynamic >>> root_password="yEB135fOEQHts" >>> service_profile=limited_net >>> >>> >>> SunOS Release 5.11 Version snv_111a 64-bit >>> Copyright 1983-2009 Sun Microsystems, Inc. All rights reserved. >>> Use is subject to license terms. >>> Hostname: web1 >>> Reading ZFS config: done. >>> Mounting ZFS filesystems: (6/6) >>> network_interface=web1 {primary >>> web1 is not a valid network interface line 3 position 19 >>> Creating new rsa public/private host key pair >>> Creating new dsa public/private host key pair >>> Configuring network interface addresses: web1 webp1. >>> >>> web1 console login: >>> >>> >>> >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/crossbow-discuss/attachments/20090527/f760b99e/attachment.html>