Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have tried Zones/Brandz with ZFS and it is veeeeery neat. However I have problems with setting up the network. After messing around in a clone, I got network working sometimes. Other times, not.
For Zones I config network by login with "zlogin -C myzone" and then it starts "sys-unconfig" and asks me questions. Or else I could manually start "sys-unconfig". I can ping and browse the web.
For Brandz, I config network by starting in the Centos clone, the GUI desktop with command:
startx -- /usr/X11R6/bin/Xnest :1
And then the linux desktop starts, and I can configure network via:
start button - system settings - network.
And I can browse the web and ping everything.
But when I reboot Solaris, the network in my zones doesnt work correctly anymore. I can ping each zone on my computer, but I cannot ping an external website.
Why is that? Must I somehow modify the global zone? Must I add all zones in /etc/hosts? Must I enable a service? Is there a list of files to edit, somewhere?
It seems that Ive configured my Solaris network errorneously from the first start. I have DHCP and dynamical IP. Instead of messing with /etc/hosts etc files, I just did an "sys-unconfig" and answered YES on the DHCP question. And everything worked (I tried "ifconfig -a dhcp start" or something similar command).
Regarding Zones, it seems that the network is functioning properly now.
Regarding BrandZ,
Ive struggled around a bit more and can get the network to work when I do a new install and config of CentOS. But when I reboot the computer I have problems with the BrandZ network, it doesnt work. If they are on the same network, I dont know. For my Brandz I chose 192.168.0.210 when configuring it with zonecfg command. When booting it and logging in for the first time with "zlogin -C myzone" I answered yes on DNS name service and configured it.
My global zone has no /etc/sysconfig/network file, here is nsswitch.conf:
passwd: files
group: files
#hosts: files # Commented out by DHCP
hosts: files dns # Added by DHCP
#ipnodes: files # Commented out by DHCP
ipnodes: files dns # Added by DHCP
networks: files
protocols: files
rpc: files
ethers: files
netmasks: files
bootparams: files
publickey: files
# At present there isn't a 'files' backend for netgroup; the system will
# figure it out pretty quickly, and won't use netgroups at all.
netgroup: files
automount: files
aliases: files
services: files
printers: user files
auth_attr: files
prof_attr: files
project: files
tnrhtp: files
tnrhdb: files
and my BrandZ:
/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=myzone
I dont get it. One minute after I posted, I tried to ping from BrandZ again, and now it worked to ping. The network is functioning in BrandZ. Is there some time limit somewhere in Brandz?
Output in the global zone after starting the solaris zone:
ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
zone solariszone1
inet 127.0.0.1 netmask ff000000
vfe0: flags=201004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4,CoS> mtu 1500 index 2
inet 192.168.0.183 netmask ffffff00 broadcast 192.168.0.255
ether 0:b:6a:b8:e0:d5
vfe0:1: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 2
zone solariszone1
inet 192.168.0.210 netmask ffffff00 broadcast 192.168.0.255
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
inet6 ::1/128
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,788
Rep:
You just need to configure the DNS on your zone for this to work.
Have a look at the /etc/resolv.conf and /etc/nsswitch.conf files on the global zone and use them as a reference for your non global zones.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.