Sponsored Content
Operating Systems Solaris Cannot read MAC in a Zone Container Post 302291205 by potro on Wednesday 25th of February 2009 02:39:54 AM
Old 02-25-2009
Cannot read MAC in a Zone Container

Hi,

I have an app which reads MAC address. I read that Solaris 10 8/07 offers the solution to set MAC address for each container but I cannot find how to do that in any docs I found on Sun Smilie do you know how ?

True that installed I only have Solaris 10 5/08. In a container zone it generates errors:

bash-3.00# ifconfig -a
lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 172.16.151.101 netmask ffffff00 broadcast 172.16.151.255

bash-3.00# ./myapp
open device fail = /dev/e1000g
Error:[Error] Can't get any mac address infomation. check your network card.

bash-3.00# ls -al /dev/e1000g*
crw-rw-rw- 1 root root 87, 1 Feb 24 18:21 /dev/e1000g0
bash-3.00#

The network card is e1000g0 not e1000g

Logged in as global:
[X4200-Sol10(root):/dev] ls -al e1000g*
lrwxrwxrwx 1 root root 32 Aug 21 2008 e1000g -> ../devices/pseudo/clone@0:e1000g
lrwxrwxrwx 1 root root 56 Aug 21 2008 e1000g0 -> ../devices/pci@0,0/pci1022,7450@1/pci8086,1011@1:e1000g0
lrwxrwxrwx 1 root root 58 Aug 21 2008 e1000g1 -> ../devices/pci@0,0/pci1022,7450@1/pci8086,1011@1,1:e1000g1
lrwxrwxrwx 1 root root 56 Aug 21 2008 e1000g2 -> ../devices/pci@0,0/pci1022,7450@1/pci8086,1011@2:e1000g2
lrwxrwxrwx 1 root root 58 Aug 21 2008 e1000g3 -> ../devices/pci@0,0/pci1022,7450@1/pci8086,1011@2,1:e1000g3

When I created the zone:
zonecfg:xenon-zone> add net
zonecfg:xenon-zone:net> set address=172.16.151.101
zonecfg:xenon-zone:net> set physical=e1000g0
zonecfg:xenon-zone:net> end
zonecfg:xenon-zone> add device
zonecfg:xenon-zone:device> set match=/dev/e1000g0
zonecfg:xenon-zone:device> end


Thanks,
Bianca

Last edited by potro; 02-25-2009 at 05:15 AM..
 

7 More Discussions You Might Find Interesting

1. Solaris

Memory usage, free and used, using sar, top and vmstat in Solaris zone/container

Hi all, I have a server running an Oracle database that is part of a Solaris M5000 container. Presumably this is referred to as a zone within a cluster, not sure if I get the terminology right. Anyway, a third-party manages the zone and unfortunately is not "helpful/friendly" to assist me on... (1 Reply)
Discussion started by: newbie_01
1 Replies

2. Solaris

Differences of Solaris zone and Solaris Container

Hi everyone! I am in dire need to know what are the differences between a solaris zone and a solaris container.. Explanations over the net are very confusing. Please help. Thanks! (8 Replies)
Discussion started by: arah
8 Replies

3. Solaris

Zone failes to boot due to mount issue, dir exists in zone.

I have two physical servers, with zones that mount local storage. We were using "raw device" in the zonecfg to point to a metadevice on the global zone (it was not mounted in the global zone at any point). It failed to mount on every boot because the directory existed in the zone. I... (6 Replies)
Discussion started by: BG_JrAdmin
6 Replies

4. Solaris

showing 2 different time zones in global zone and nonglobal zone

can some one help me out as it is showing 2 different time zones in global zone and nonglobal zone .In global zone it is showing in GMT while in nonglobal zone i it showing as PDT. System in running with solaris 10 (3 Replies)
Discussion started by: ravijanjanam12
3 Replies

5. Solaris

Can you set the MAC address in a zone

Hello, On our Solaris 10 servers we have shared NIC interfaces. We have a program that is having issues talking to the all zones because they have the same MAC address. Is there a way with zonecfg or ifconfig to change the MAC on the zones? Other wise we need to rewire the servers and I don't... (4 Replies)
Discussion started by: bitlord
4 Replies

6. UNIX for Advanced & Expert Users

Solaris 10: I forgot to detach a zone before zpool export. Uninstall zone?

Dear all, recently, I migrated a solaris zone from one host to another. The zone was inside of a zpool. The zpool cotains two volumes. I did the following: host1: $ zlogin zone1 shutdown -y -g0 -i0 #Zone status changes from running to installed $ zpool export zone1 host2: $ zpool... (2 Replies)
Discussion started by: custos
2 Replies

7. Solaris

Solaris 11 zone has no external network access (except to Global Zone)

Hi, hoping someone can help, its been a while since I used Solaris. After creating a NGZ (non global zone), the NGZ can access the GZ (Global Zone) and the GZ can access the NGZ (using ssh, zlogin) However, the NGZ cannot access any other netwqork devices, it can't even see the default router ... (2 Replies)
Discussion started by: GazinLincoln
2 Replies
XVIF(4) 						 BSD/xen Kernel Interfaces Manual						   XVIF(4)

NAME
xvif -- Xen backend paravirtualized network interface SYNOPSIS
pseudo-device xvif DESCRIPTION
The xvif interface forms the backend part of the paravirtualized drivers used by Xen domains to offer network connectivity. When the guest domain is NetBSD, the endpoint of the xvif interface is a xennet(4) interface. In the XenStore, xvif and xennet are identi- fied by ``vif'' (virtual interface) entries. All xvif interfaces follow the ``xvifXiY'' naming convention, where 'X' represents the guest domain identifier, and 'Y' an arbitrary identi- fier; most of the time, it is the frontend interface identifier, e.g. ``xennetY''. For convenience, the MAC address of an xvif interface is chosen by incrementing the third byte of the MAC address of the frontend device. Conceptually, frontends and backends drivers are similar to two Ethernet cards connected via a crossover cable. DIAGNOSTICS
xvif%di%d: can't read %s/mac: %d The MAC address for this interface could not be read from XenStore. xvif%di%d: %s is not a valid mac address The MAC address specified in the configuration file of the newly created guest domain is invalid. xvif%di%d: Ethernet address %s MAC address of the xvif interface. SEE ALSO
ifmedia(4), xennet(4), ifconfig(8) HISTORY
The xvif driver first appeared in NetBSD 4.0. AUTHORS
The xvif driver was written by Manuel Bouyer <bouyer@NetBSD.org>. BSD
April 7, 2011 BSD
All times are GMT -4. The time now is 08:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy