Can not use zone in LDoms on T4-1


 
Thread Tools Search this Thread
Operating Systems Solaris Can not use zone in LDoms on T4-1
# 8  
Old 08-02-2013
so you need a new vnet device for each new zone

so in the primary LDOM:

you need to do

Code:
ldm add-vnet
Usage:
        ldm add-vnet [mac-addr=<num>] [mode=hybrid] [pvid=<pvid>]
                [alt-mac-addrs=auto|<num1>[,auto|<num2>,...]]
                [vid=<vid1,vid2,...>] [mtu=<mtu>] [linkprop=phys-state]
                [id=<networkid>] <if_name> <vswitch_name> <ldom>

for each zone you want to have an interface for...

Then in the LDOM:

prior to zone startup you need to do
Code:
ipadm remove-ip "netname"

That will free up the network interface on the vswitch for the zone.

then either in the zoneconfig set the network physical property or
after boot do
Code:
ipadm create-ip "netname"

then do
Code:
ipadm create-addr
usage:
        create-addr     [-t] [-T static] [-d] -a {local|remote}=addr[/prefixlen]
                                <addrobj>
        create-addr     [-t] -T dhcp [-w <seconds> | forever] [-h <hostname>]
                                <addrobj>
        create-addr     [-t] -T addrconf [-i {local|remote}=interface-id]
                                [-p {stateful|stateless}={yes|no}] <addrobj>

---------- Post updated at 12:23 PM ---------- Previous update was at 12:18 PM ----------

I would also like to add that if these are Solaris 10 zones in a Solaris 11 LDOM the procedure changes.

---------- Post updated at 12:48 PM ---------- Previous update was at 12:23 PM ----------

I reread your original post, yes the problems appear to be related because you don't have a network adapter configured on your config.
This User Gave Thanks to os2mac For This Post:
# 9  
Old 08-04-2013
Sun

Thanks for your detailed reply.

In the meantime, I made some progress slightly differently.

First, my original questions were regarding Solaris 11 LDoms under Solaris 11 primary LDOM.

What I did next was I installed a Solaris 10 LDom and within that I could successfully create zones, just as I had done on old sun4u machine.

Next, on the Solaris 11 LDom, I created a zone where I removed the anet, set the ip to shared and did the "add net" just as I did on Solaris 10, and this time, the zone booted fine.

So, yes, something's missing with my networking settings in Solaris 11 that prevents the zone from booting.

I'd like to try what you suggested, but I got to read and understand it carefully because if I make a mistake on the primary LDom then I'll be stuck.

Thanks again for your help.
# 10  
Old 08-05-2013
What you did will work.

but because it's a shared IP type zone you'll be stuck with doing static IP addresses for all the zone interfaces.


My way allows you to do DHCP like a regular server.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. Solaris

Scripting changes to multiple zone configurations in the same Global Zone

So this is Solaris 11.1. I have a Global zone that has several non-global zones running in it. I want to change the capped-memory.physical resources setting in ALL the zone configs of the running zones. if I were to do this manually here's what I would do: zonecfg -z zone1 select... (2 Replies)
Discussion started by: os2mac
2 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

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

6. Solaris

how to add a default gateway in a zone of different VLAN of global zone

Hi Greetings... I have an issue in connecting the zone from outside the network and it is because of default gateway. I can ping default gateway from inside the zone and not able to ping from global zone due to different VLAN issue. If i add two different gateways and restart network services,... (2 Replies)
Discussion started by: vvpotugunta
2 Replies

7. Solaris

Not able to ping global zone from local zone

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)
Discussion started by: kumarmani
12 Replies

8. Solaris

Solaris Zone : Non global Zone check failed

Hi All , I try to install some packages in my global zone... On the execution of the installion of the script it quits by saying the error "Non global zone check failed" Kindly help me in this regard Thanks in advance, jeganr (7 Replies)
Discussion started by: jegaraman
7 Replies

9. Solaris

Bind zone transfer recategorises zone file?

Hi, I have a primary/slave Bind 9 setup running on a Solaris 10 platform. Everything is hunky dorey, except for when I make a zone file change and up the serial the file that is transferred to the slave looses all its comments, and the entries are place in alphabetical order. I administer many... (1 Reply)
Discussion started by: fulhamfcboy
1 Replies
Login or Register to Ask a Question