How to create a Solaris local zone with an exclusive NIC?
I'm trying to migrate a Solaris 10 flar archive from a Sun M3000 to a T4-1. When I first created the zone I followed the Oracle instructions here: Transitioning an Oracle Solaris 10 Instance to an Oracle Solaris 11 System - Transitioning From Oracle Solaris 10 to Oracle Solaris 11 That worked OK, in the sense that I was able to boot the zone and access it via ssh and vncviewer. However, I did not realize that without an exclusive NIC, my zone would not be able to do DHCP which means the Sun Ray server would not work, and I have to have that.
Now the T4-1 has four gigabit NICS, labeled on the back net0 - net3. I had one cable connected to net0. So I added a second cable from a free port on my switch to net1 and tried to reconfigure my zone to use it instead of net0. That's when all hell broke loose. I can still talk to the global zone over my LAN but my local zone will no longer even boot.
Here's a few possibly relevant pieces:
Attempting to turn on net1 and boot the zone, I get this:
It doesn't like the global zone having net1? OK, so we try
My zone is already configured? So where is it?
Rather than continuing thrashing about in the dark, I figure it's time to ask for help. I freely admit to having no clue what I'm doing.
Looks like you are mixing ldoms and zones on the same box ?
This is doable, but ill advised.
Create a LDOM first, then zone inside or restore flar archive directly into a LDOM.
As for exclusive / shared IP stack in zone, the basic difference is that exclusive stack operates on L2 (MAC layer), while shared stack on L3 (IP layer).
That means in real life that if you have, say, net0 interface....
You create exclusive zone, it will create additional interface with new MAC address, called VNIC, this is default dladm show-vnic
This interface to outside world is a fully functional L2 interface, and network configuration is done in non-global zone.
You create shared zone, it will share net0 with global zone, creating virtual IP over a net0 and give it to the zone.
This interfaces shares MAC address with global zone interface, and network configuration is done via zonecfg command from global zone.
Global zone can be ran on bare metal or inside ldoms, but do not mix zones with oracle vm server for sparc on same box.
Two options :
[METAL <--> GLOBAL ZONE] [NON-GLOBAL ZONE (shared or exclusive)]
[METAL <--> ORACLE VM] [LDOM/GLOBAL ZONE] [NON-GLOBAL ZONE (shared or exclusive)]
While configuring ldom you need to add (or set) your vnet in this fasion :
Which will allow zones running in ldom to have up to 2 additional MAC address interfaces or vnics on vnet0 interface.
Looks like you are mixing ldoms and zones on the same box ?
This is doable, but ill advised.
Unfortunately I did not know that when I started. Yes, I have Solaris 11.4 installed on the T4-1 bare metal. Under the 11.4 global zone I have an LDOM running Linux for SPARC. That's working properly. Then I created a local zone under the global zone to run my Solaris 10 image. That zone is not running in the LDOM, it's side-by-side with it. I'd rather keep it this way than having to create another LDOM which would eat up more host memory and more CPU's, unless it just won't work at all. In any case, I finally got the zone to boot by saying this:
Notice that now how the listing has changed. net1 is listed last and there's two entires for s10zone. However, when the zone boots, it tries to connect to bge0 which was the NIC on the M3000 where this image was created. Of course it can't find it so it goes into maintenance mode immediately.
And there's a device inside the zone for igb1 now:
But when I try to plumb it I get
# ifconfig igb1 plumb
ifconfig: cannot plumb igb1: Datalink does not exist
#
This seems to be the missing link (sorry). If I could get the s10zone to plumb igb1, all might be well. Is there perhaps some magic word I need to give in zonecfg:net?
OK, hold everything. I decided to check the zonecfg for s10zone:
The clue is the line that says net0 is physical:net1. So I went back to the zone and instead of trying to plumb igb1 I said
And this time it worked! Unfortunately, it did not survive a reboot. So I edited /etc/hosts, /etc/netmasks, and /etc/hostname.net0. Now I have networking when I reboot but it's still not working right:
If something does not work you can always poweroff and delete ldom to reclaim resources.
Do not mix both on same box ....
Yikes. That looks even more complicated than what I'm trying to do now. I'm also not sure how to do ldmp2v with an existing flar. Nor did I see anything about how to use my net1 interface instead of net0.
Hi
We took the reboot of server/global zone after that Solaris 11 share local zone not able to ping the default gateway but global zone able to ping same default gateway. I check/compare the before activity logs of global zone and local zones which looks fine to me, further IP and netmask of... (6 Replies)
I want a solaris zone,wich can get ip from dhcp external server
i configure my zone
net:
address not specified
allowed-address not specified
configure-allowed-address: true
physical: vnic1
defrouter not specified
vnic is linked to net0
dladm
net0 ... (6 Replies)
I couldn't install my nic in solaris 10. I compiled and added
the driver but failed to attach the driver and ifconfig output
shows only loopback dev. Please see the following output and tell
me whether my nic has been detected and why the driver failed to
attach?
My nic is detected in linux... (0 Replies)
Hi All,
does any body know how to create Virtual NIC in Solaris 10
if any one have good article or reference
kindly provide me
i try to Google
but i didn't find good one (7 Replies)
Dears,
I would like to convert solaris 10 x86 and solaris 10 sparc (Global Zones) physical servers into Local zones.
i found a document which seems to be helpful but i'm stuck @ the 1st step.
to test this i want to do it 1st on x86 system running under vmware ESXi and if it succeeds i will... (1 Reply)
Hello,
I have a V120 server with two network interfaces. I would like to use one of them in my non global zone. I set the "ip-type=exclusive" as described here Solaris 10 8/07: Exclusive-IP Non-Global Zones (System Administration Guide: Solaris Containers-Resource Management and Solaris Zones) -... (2 Replies)
Hi Gurus
I am not able to ping the local zone from global zone
when i am trying to ping i am getting below
ICMP Host Unreachable from gateway zone ( 192.268.35.210)
for icmp from zone ( 192.168.35.210) to sun1 ( 192.168.35.210)
However i can ping local zone from global
please... (12 Replies)