Skipping sys-unconfig on Zone Creation
I guess I haven't created a new zone in awhile, just be using the 5 that I'd had for ages. I recently created a new Zone and fired it up but was supprised when I could log into it. When connecting to the console I was greeted with the familiar CURSES inferface for initial network setup. Are Zones now sys-unconfig'ing themselves during the install or ready phases? Is there a way to avoid having to do this?
I guess I haven't created a new zone in awhile, just
be using the 5 that I'd had for ages. I recently
created a new Zone and fired it up but was supprised
when I could log into it. When connecting to the
console I was greeted with the familiar CURSES
inferface for initial network setup. Are Zones now
sys-unconfig'ing themselves during the install or
ready phases? Is there a way to avoid having to do
this?See sysidcfg(4) -- you can place such a file in the zone (at /path/to/zone/root/etc/sysidcfg) before you boot it for the first time, and the sysid tools will pick up the settings from it.
- jonathan
Similar Messages
-
Zone install failing on sys-unconfig
Hi,
I am building 6 virtualised servers from flash archives of existing machines for a dev environment.
I am running solaris 10 on the host machine and i am installing solaris 9 branded zones for the guests.
So far i have installed three of them successfully by following the documentation.
This one particular host gets up to *"Postprocess: Performing zone sys-unconfig"* and just sits there doing nothing.
I have checked things like disk space and have re created the flash archive three times.
The command i am running is : zoneadm -z vm3-dev install -u -a /storage/flash/vm3_20110208.flar
I have used zlogin to access the guest OS and can see an apparently hung sys-unconfig. I have left the install running for 24hrs and eventually just killed the install.
I'm not sure where to go from here to troubleshoot this issue. It is puzzling to me that basically identical machines should install fine using the same steps.
what should i do to progress this install.
Cheers,
ram.check ptree of zone install command and see if you can kill the child sys-unconfig command. post us ptree of zone install and also truss -fp on zone install process when it hungs.
-
Newbie: DHCP, HostName, sys-unconfig
Sun Ultra 5
Solaris 8
Linksys BEFSR41 Router
Background:
I am configuring my first Sun system.
I installed Solaris 8 (02/02) and have the system running. This is actually my second install on this machine due to a problem (caused by me).
Problem:
The system reports that there is no hostname. I have looked at the online documentation and have run sys-unconfig several times.
When I run sys-unconfig, as root, I open a console, type sys-uncofig, and then answer y to reboot. The system reboots (usually -- sometimes there is a RPC error and the system halts. I press STOP + A to regain access and then type boot at the ok prompt). When the system reboots, I get a language question, IPv6 question, and usually a DHCP question. I answer yes to IPv6 andselect DHCP. Then I usuallly get an error after confirming all prompts indicating that since the machine booted from the network, DHCP was not available. My problem is (probably many), I am never prompted for a hostname. I also never seem to complete the sys-uncofig scripts without some type of error. Oddly, my previous install did not have this problem and I was able to set my hostname previously.
I have referred to the online documentation (recommending using sys-uncofig to reset the hostname). There is no /etc/nodename file on the machine currently so I cannot just change this file.
Any help would be appreciated. I am concerned that the sys-unconfig never seems to prompt me for the appropriate questions.
Shannon BrownThank you for the help.
The problem does seem to be due to my selection of
DHCP first. I probably got confused following the
first installation. I thought that I did this before
(select DHCP right away) but may not have. I will try
the suggestions and post the results.The problem here, which I have as well with this Linksys router, is the DHCP server. It does serve IP addresses but not hostnames. It's really TurboLinux inside the router, you'd think one could specify hostnames as well but there is no way to configure such things. The Sun box simply gets an IP without the hostname.
I tried changing the two files specified previously, I don't believe this works. I had CDE going crazy trying to associate unknown with loopback or something. Try setting these, then selecting Host->This Host. No go. -
Solaris 8 and sys-unconfig problem
I have an older Solaris 8 E450 machine that I wanted to rejoin to a different domain etc...so I used sys-unconfig but now am experiencing major problems! I need some help;
What happened was after the machine rebooted, it prompted that it was discovering the network then came to the Solaris Installation screen but with garbed options. I could make out "F2 to continue" tried to hit it to continue but the terminal keyboard was locked. After waiting about 15 minutes with no change in system state, I rebooted.
Now when the machine boots I get as far as Sun Copyright info, then get the message "INIT: Cannot create /var/adm/utmpx" then the text runs off the right hand side of the screen and the machine 'stops'. The only way to get back to the ok prompt is to 'break'. I am a relative newbie to Solaris so any and all help would be GREATLY appreciated, I really do not want to re-install...
Thanks in advance!
ErnieOn some systems, especially if you are using a VT you have to press and hold esc&2 before it will proceed, but regardless of this, my advice would be to
1) boot in single user mode (ok>boot -s)
2) cd /etc (#cd /etc)
3) rm ./hostname.<interface> (eg hostanem.hme0)
4) reboot
You should now have a system that has started without network traffic. Change all relevant netwokr files (/etc/hosts, /etc/netmasks) and you can now config a new device. To do this just vi the /etc/hostname.<interface> (as above) and enter a hostname, add this hostname to your /etc/hosts file and remember to put the tab betweeen entries, and reboot again, should be cool. -
Will zones inherit security/hardening settings made prior to zone creation?
Hi guys.
So the scenario is I've just finished hardening Solaris 10: disabling of services, configuring tcp wrappers and the such. I would now like to create a zone or zones but there are a few things I would like to make sure of, before proceeding.
The questions are:
i) After creating a zone, whether it's sparse or whole, will the non-global zone inherit the hardening settings that I have setup prior? Or is it a seperate entity that requires me to harden it.
ii)I understand that patching the global zone will patch the rest of the other zones. Does this include whole-root zone since it does not mount any filesystem outside its zone.
Thank you.
N.No, except for the packages that get installed at zone creation time, they're separate.
Patches are applied to all zones. A zone may be temporarily booted just to apply a patch. Even though a whole-root zone may not mount external filesystems, that doesn't mean that it's independent. For instance, it's kernel files aren't actually loaded, since it doesn't have an independent kernel. When the global zone's kernel is patched, all others are as well. So the files within the zone will be patched as well to maintain consistency.
Darren -
Removing Packages "added" by zone creation
The search feature on these forums is limited. Scrolling back about 8 months I think I know the answer to this question, but I would like to be certain.
I have a solaris 10 global zone with SUNWut (sunray services) installed.
When I create my non-global zones, Solaris is "kind" enough to install the sunray services into the non-global zones as they get created. This leads to multiple instance of the sunray software running.
When I created the non global zones the first time, I went into the non--global zones and I removed the SUNWut packages using pkgrm.
Is there a way to tell the zone creation to not install the SUNWut package when the non global zone is created? I have to rebuild this machine and I would love to create the zones in a more efficient manner.
Looking through the posts I saw that people were dealing with my problem the same way I did. Once the non global zone is running, go in and do a pkgrm on it.
I just want to verify that this is the way other people are handling it.
Thanks,
EricThe zones are a typical sparse root model (inherited-pkg-dir's are /lib/ /platform/ /sbin/ and /usr/). There is no nfs mounting or such.
Once the non-global zone is installed, If you go to /opt in the non-global zone the SUNWut directory is there. If you do a ps command you can see that there is a sunray server is running in each zone.
Thinking about it I suppose that the install script for SUNWut may be at fault. Perhaps it is telling the zone install that it is a base package when it is not. This would make sense because I was using a SRSS 3.0 install patched by my sun engineers to install on my sol10 system. Perhaps I will not run into the same issue now that I have the official 3.1 sunray s/w.
Only time will tell. But I appreciate the reply so that I know if it does happen that I am handling the problem in the correct manner (using pkgrm on SUNWut).
I will report back if this issue comes up again when I redo the system.
Thanks,
Eric -
Sunblade 1500 rebooting after giving sys-unconfig command
hello gurus,
As I am facing problem since the sunblade 1500 is not booting after I gave sys-unconfig command, I edited all the files related to N/ws, domain name, hostname etc..and rebooted the system.
But again system boots and hostname is taken and when it come to
configuring interface bge0: kernel crashes and reboots..
but I am able to go to single user mode and when i gave ifconfig -a, address is assigned and system is also pinging in the LAN..
Pls help me out with the problem.
thanksIn order to find out about the problem I have restarted another fresh install but inside a VM this time so I can take notes and snapshots.
I found that the following official package will break my Gnome 3.6 pretty easily:
- pygtksourceview2 : this one instantly crashes Gnome and you are no longer able to log in.
- pycups and pysmbc : doesn't crash immediately but after 10s you get the oops.
Let's remove them from the real install to see if it fixes the problem.
[EDIT] Tried again to install the above three package inside a fresh Gnome install living into a VM and it didn't crash. See post above regarding my broken Gnome which was related to fingerprint-gui package from AUR.
Last edited by alphazo (2012-11-20 14:35:08) -
How to change IP address and subnet mask without using the sys-unconfig ?
I have Solaris 10 x86. I've ran into problems using the sys-unconfig command
to change hostname and IP address.
How to I manually change the IP address and subnet mask values on Solaris 10 manually?
Thanks.We just switched over a DNS server by using ifconfig, (same subnet), and killing named. seems to be working fine, anything I should look out for ?
steps:
Prep -
- change name in /etc/hostname.e1000g0
- change name and IP in /etc/hosts and /etc/nodename
- # uname -S dnsint02
Activate
- unplug old dnsint02
# ifconfig e1000g0 192.168.2.80
# kill -9 [PID of named]
Cleanup
- Remove old key on clients I SSH from.
- reconfigure backup software for new name/server combo.
Edited by: HarryC on Jun 25, 2009 9:29 AM -
Problem with zone creation in Solaris 10 6/06
Hi,
I have configured and installed a non-global zone following the example given in the guide http//www.sun.com/software/solaris/howtoguides/posgresqlhowto.jsp. My zone has the following configuration:
# zonecfg -z pg_zone
zonecfg:pg_zone> info
zonepath: /export/zones/pg_zone
autoboot: true
pool:
fs:
dir: /pg_log
special: /dev/dsk/c1d0s0
raw: /dev/rdsk/c1d0s0
type: ufs
options: []
net:
address: 192.168.10.100/24
physical: bge0
zonecfg:pg_zone> exit
The installation completed but I got the following errors:
# zoneadm -z pg_zone install
Preparing to install zone <pg_zone>.
Creating list of files to copy from the global zone.
Copying <130101> files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize <1059> packages on the zone.
Initialized <1059> packages on zone.
Zone <pg_zone> is initialized.
Installation of these packages generated errors: <SUNWgnome-a11y-libs-share>
Installation of <63> packages was skipped.
The file </export/zones/pg_zone/root/var/sadm/system/logs/install_log> contains a log of the zone installation.
When examined the logs there were several messages like this:
SUNW_PKG_THISZONE=true in the pkginfo file.
*** package <SUNWamutl> was not installed:
The package <SUNWamutl> is registered to be installed in the
global zone only. The package may have been installed in the global
zone using the pkgadd '-G' option, or the package may contain a
request script, or the package may directly set the package attribute
SUNW_PKG_THISZONE=true in the pkginfo file.
*** package <SUNWiimdv> was not installed:
The package <SUNWiimdv> is either not fully installed in the
global zone, or the package contains a request script. Only packages
that are fully installed in the global zone and that do not contain a
request script can be installed when a new zone is created. If this
package does not contain a request script, you can correct this
problem by removing and reinstalling the package in the global zone.
And when I try to boot the zone I get this error:
# zoneadm -z pg_zone boot
zoneadm: zone 'pg_zone': "/usr/lib/fs/lofs/mount -o zonedevfs /export/zones/pg_zone/dev /export/zones/pg_zone/root/dev" failed with exit code 33
zoneadm: zone 'pg_zone': call to zoneadmd failed
Any suggestion how to solve this problem?
thanksTo answer your question wangzh: Yes I did. I actually followed exactly the procedure on the how-to-uides: http://www.sun.com/software/solaris/howtoguides/containersLowRes.jsp.
I think the problem here might reside in the script supplied in the solaris distribution for creating zones. For example, in the default configuration script, the package directories /lib /platform /var and /usr are by default set to be automatically imported. But when I try to create a zone using these defaults settings, it ends up with an mounting error that prevents the installation of the zone. only when I remove manually those directories from the configuration then the installation continues.
And during the installation process there are number of packages that are by default imported via the installation script and this is some of those packages that cause the errors here. I also tried to exclude the offending packages as suggested by henryC but I couldn't find all of them and the creation still fails at the booting. -
Still at the beginning of the learning curve here....
I am looking to create a Solaris 10 failover zone in my 3.2 Cluster.
I see documents claiming both ways that the zone can or cannot have its zonepath on a globally shared file system.
So, do I
Create equivalent zones on the local drives, then add a pointer in the zone to a file system on the global area, then go forward with my cluster resource creation from there
-or-
No, just create the zone on the shared storage area once from node 1, the delete it and create it from node 2, then bring in HAStorageplus, etc.
Thanks.I've been trying to configure a failover zone on my cluster and I'm having a terrible time. I do remember seeing somewhere that zones needed to be on a local filesystem, but I can't find that now.
I'm following these instructions: http://docs.sun.com/app/docs/doc/819-3059/6n5aafjor?a=view
Everything goes as expected and I have this:
$ clrg status
Cluster Resource Groups ===
Group Name Node Name Suspended Status
nfs-rg stnv240a No Online
stnv240b No Offline
web-rg stnv240a No Online
stnv240b No Online
zone-rg stnv240b No Online
stnv240a No Offline
$ clrs status
Cluster Resources ===
Resource Name Node Name State Status Message
cluster stnv240a Online Online - LogicalHostname online.
stnv240b Offline Offline
nfs-stor stnv240a Online Online
stnv240b Offline Offline
nfs-res stnv240a Online Online - Service is online.
stnv240b Offline Offline
web-stor stnv240a Online Online
stnv240b Online Online
zone-rs stnv240b Online Online
stnv240a Offline Offline
$ zonecfg -z cwm -f cwm-failover.cfg
$ zonecfg -z cwm info
zonename: cwm
zonepath: /global/nfs/zones/cwm
brand: native
autoboot: false
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
net:
address: 204.155.141.145
physical: bge0
defrouter not specified
But then I can't boot. I got a similar error trying to configure a sparse zone. Install fails there, as it can't mount /lib
$ zoneadm -z cwm boot
zoneadm: zone 'cwm': "/usr/lib/fs/lofs/mount -o zonedevfs /global/nfs/zones/cwm/dev /global/nfs/zones/cwm/root/dev" failed with exit code 33
zoneadm: zone 'cwm': call to zoneadmd failed
Any help or ideas here?
Solaris 10 10/08 s10s_u6wos_07b SPARC
Solaris Cluster 3.2 u1 but patched so I have sczonecluster. -
Zone creation(zonecfg) fails
I had created a few zones as root, and now when i try to create zones as a non-root user , it errors out
#/usr/sbin/zonecfg -z zone-appconfig
WARNING: you do not have write access to this zone's configuration file;
going into read-only mode.
zonecfg:zone-appconfig> create
zone-appconfig: cannot create in read-only mode.
#id
uid=150(user) gid=1(other)
Following are the zones that i had created as root
#/usr/sbin/zoneadm list -cv
ID NAME STATUS PATH
0 global running /
1 zone-small running /export/home/zone-small
- zone-whole configured /export/home/zone-wholeOk..i could reach one more step by doing the following
.../etc/zones wasnt setup as world writable
# ls -l |grep zones
drwxr-xr-x 2 root sys 512 Jan 2 13:25 zones
# chmod g+w zones
# chmod o+w zones
# ls -l |grep zones
drwxrwxrwx 2 root sys 512 Jan 2 13:25 zones
zone-appconfig: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:zone-appconfig> create
zonecfg:zone-appconfig> set zonepath=/home/abc
zonecfg:zone-appconfig> verify
zonecfg:zone-appconfig> exit
zone-appconfig: Problem updating index file
Configuration not saved; really quit (y/[n])? n
zonecfg:zone-appconfig> commit
zone-appconfig: Problem updating index file
zonecfg:zone-appconfig>
This is probably index file somewhere which isnt writable by my non-user account :(
Any help is appreciated...thx!! -
Solaris10 branded zone creation error on Solaris 11.1
Hello,
We are having the problem in creating the Solaris10 branded zone on the solaris 11.1 version. We are trying to install this branded zone using the solaris10 VM template. Please can some one through some pointers ?
The installation steps stops at "Waiting for boot to complete" but never successfully boots even waiting for long times. We can see that Zone status in configured only.
root@localhost:~# /home/solaris-10u10-sparc.bin -p /solaris10 -i net0 -a xxx.xxx.xxx.xxx -z zone10
This is an Oracle VM Template for Oracle Solaris Zones.
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
This software and related documentation are provided under a license
agreement containing restrictions on use and disclosure and are
protected by intellectual property laws. Except as expressly
permitted in your license agreement or allowed by law, you may not
use, copy, reproduce, translate, broadcast, modify, license,
transmit, distribute, exhibit, perform, publish, or display any
part, in any form, or by any means. Reverse engineering,
disassembly, or decompilation of this software, unless required by
law for interoperability, is prohibited.
Checking disk-space for extraction
Ok
Extracting in /root/bootimage.dnaqaD ...
100% [===============================>]
Checking data integrity
Ok
Checking platform compatibility
The host and the image do not have the same Solaris release:
host Solaris release: 5.11
image Solaris release: 5.10
Will create a Solaris 10 branded zone.
IMAGE: /home/solaris-10u10-sparc.bin
ZONE: zone10
ZONEPATH: /solaris10/zone10
INTERFACE: net0
VNIC: vnicZBI6783
MAC ADDR: 2:8:20:5c:92:f5
IP ADDR: xxx.xxx.xxx.xxx
NETMASK: 255.0.0.0
DEFROUTER: # # This file is deprecated. Default routes will be created for any router # addresses specified here, but they will not change when the underlying # network configuration profile (NCP) changes. For NCP-specific static # routes, the '-p' option of the route(1M) command should be used. # # See netcfg(1M) for information about network configuration profiles. #
TIMEZONE: Asia/Kolkata
Checking disk-space for installation
Ok
Installing in /solaris10/zone10 ...
100% [===============================>]
Using a static exclusive-IP
./setupSysidcfgStaticIP[50]: file/sysidcfg.zone10: cannot create [No such file or directory]
cp: cannot access file/sysidcfg.zone10
chmod: WARNING: can't access file/sysidcfg.zone10
Attaching zone10
Booting zone10
zoneadm: zone 'zone10': must be installed before boot.
Waiting for boot to complete
booting...
booting...
booting...
root@localhost:# zoneadm list -cv
ID NAME STATUS PATH BRAND IP
0 global running / solaris shared
4 zone1 running /zone1 solaris excl
5 zone2 running /zone2 solaris excl
- zone10 configured /solaris10/zone10 solaris10 excl
root@localhost:#
I have installed the package pkg:/system/zones/brand/brand-solaris10 on the system.
# cat /etc/release
Oracle Solaris 11.1 SPARC
Copyright (c) 1983, 2012, Oracle and/or its affiliates. All rights reserved.
Assembled 19 September 2012Sorry, please ignore my previous message about the wrong ip address (I assume you entered a valid ip address).
The problem you are facing is related to the defaultrouter, and I assume you are running Solaris 11 update 1.
If so, to workaround the problem for the time being you may edit the /etc/defaultrouter file in the global-zone and enter the ip address of the default router (you can remove this change when the template deployment is completed).
If you have no idea about the default router ip address, just rename /etc/defaultrouter (e.g. to /etc/defaultrouter.orig) so that it cannot be found by the template. Again, you can undo the change when deployment is complete.
Thierry -
Hi
I am building a whole root zone running Solaris U9 I noticed the zone does not get installed with some updated packages from global zone like the openssl installed in global zone does not get installed in the non global zone and it also requires sshd user to be defined This results the ssh not starting in the new zone I want to know if this is the default behaviour of whole root zone installation process and how can we get the zone to be installed with all the currently running packages of the global zone Are there any post installation steps that need to be followed for the zone to boot up correctly. I have run the post post installation configuration steps as well
TIAThanks Walter
I was wondering since most of the packages installations at least require one interaction where it asks for confirmation. how the other packages are getting installed. But mostly that might be the reason
There is also the SUNW_PKG_ALLZONES and other related variables which control this but since here the packages which are already installed on global zome are getting installed on NG zone , how these parameters can be changed I could not found any of these parameters in any pkginfo file in the global zone -
Hi,
My machine is x86 , OS is winxp
Iam using solaris10 running on VMware player. I have created a test zone on solaris10 using solaris9 container and down loaded solaris9-image.flar and saved on Apps folder. But iam unable to install solaris9-image.flar to test zone.
#zonecfg -z testzone info
zonepath: /zones/testzone
autoboot:true
pool:
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
net:
address:
Physical:
#zoneadm -z testzone install -u -a /Apps/solaris9-image.flar
-u: illegal option --u
usage: install
install the configuration on to the system
As iam new in solaris can anyone help on regard this......Thanks in advance.
Arunii2one more thing, I just noticed, that you are using X86 solaris. so have a look at this:
"A Solaris 9 branded zone (solaris9) is a complete runtime environment for Solaris 9 applications on *SPARC* machines running the Solaris 10 8/07 Operating System or later."
http://docs.sun.com/app/docs/doc/820-4490/gfjbk?a=view
so, you won't be able to test those things on x86 machine.
Laszlo -
How to skip password demands during DB creation with shel scripts from DBCA
When Generating a Database automatically with scripts from DBCA passwords are asked 2 times 1 at begining and 1 at ora.ini DB initialization.
Should I replace lines like
connect "SYS"/"&&sysPassword" as SYSDBA
with the real password since its a public password for testing databases.
P.S.
If such small questions are not apropriate and a burden to the cmmunity you may inform me.
Till now if I can't find something on common search keywords, I add it, believing its a contribution to the Oracle communities knowledge baseI found the solution. As MarkDPowell pointed out, the input prompt happens cause of ACCEPT so have to comment it out.
And I can pass my own public password as a variable with DEFINE - http://docs.oracle.com/cd/B10501_01/server.920/a90842/ch13.htm#1008884
P.S.
I try not leaving non-Answered threads.
Maybe you are looking for
-
How to set our own main application titlewindow background color ?
Hi guys i stuck in a problem . i wanna change the background color of titlebar in adobe air . i am unable to set it by changing the systemchrome to none and transparent to true . in flash builder 4 . Thanks and regards Mohit
-
Using a trigger on update. In the code for the trigger I want to do the following: Update a table in another database on the same server using a database link. Update a table in another database on a remote server using a database link. Delete the ro
-
I'm having problems with connectivy with my iPod Touch 4.
I'm having problems with my iPod Touch 4th generation. Bluetooth doesn't work at all with any cellphone nor with a computer with built in Bluetooth. I've tried to upgrade/restore to a newer firmware to see if the problem is fixed via hittin shift+res
-
Tracking changes in a customized database table
Hi All, I have made a customized Z table having the following technical attributes: Data class APPL1 Transaction data, transparent tables Size category 0 Data records expected: 0 to 40,000 \/ Log data changes(ticked). I have mad
-
How to check the channel limit on my airport extreme
my air port extreme is limiting me to only 2 devices at a time can any one help