Bug 9962 - Zone Preconfiguration Fails with root_password keyword set
: Zone Preconfiguration Fails with root_password keyword set
Status: CLOSED TRACKEDINBUGSTER
Product: opensolaris
software
: 200906
: ANY/Generic OpenSolaris
: P3 normal (vote)
: ---
Assigned To: osol/software watcher
:
:
: BugsterCR=6863728
:
:
:
  Show dependency treegraph
 
Reported: 2009-07-10 04:28 UTC by Brian Leonard
Modified: 2009-07-23 09:55 UTC (History)
1 user (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Brian Leonard 2009-07-10 04:28:54 UTC
If you are using a sysidcfg file to preconfigure a zone, the process will fail
if the root_password is set. I believe this has to do with the longer string
used in etc/shadow for the password.

For example, I have the following:

cat /etc/shadow
zoneroot:$5$0f0chTkD$HoqIcn3fO0VWUHhKYXqObtArfO7e1TiSLovfHsd70M0:14433::::::<
br />

Therefore I've set the root_password in sysidcfg to the following:

root_password=$5$0f0chTkD$HoqIcn3fO0VWUHhKYXqObtArfO7e1TiSLovfHsd70M0

This is what happens when I try to boot the zone using that setting:

bleonard@opensolaris:~$ pfexec zlogin -C myzone
[Connected to zone 'myzone' console]
69/69
Reading ZFS config: done.
Mounting ZFS filesystems: (5/5)
root_password=$5$0f0chTkD$HoqIcn3fO0VWUHhKYXqObtArfO7e1TiSLovfHsd70M0
syntax error line 8 position 15
Creating new rsa public/private host key pair
Creating new dsa public/private host key pair
Configuring network interface addresses: e1000g0.
root_password=$5$0f0chTkD$HoqIcn3fO0VWUHhKYXqObtArfO7e1TiSLovfHsd70M0
syntax error line 8 position 15
root_password=$5$0f0chTkD$HoqIcn3fO0VWUHhKYXqObtArfO7e1TiSLovfHsd70M0
syntax error line 8 position 15
root_password=$5$0f0chTkD$HoqIcn3fO0VWUHhKYXqObtArfO7e1TiSLovfHsd70M0
syntax error line 8 position 15
root_password=$5$0f0chTkD$HoqIcn3fO0VWUHhKYXqObtArfO7e1TiSLovfHsd70M0
syntax error line 8 position 15
root_password=$5$0f0chTkD$HoqIcn3fO0VWUHhKYXqObtArfO7e1TiSLovfHsd70M0
syntax error line 8 position 15
System identification is completed.

As noted by Bernd Finger (
http://opensolaris.org/jive/message.jspa?messageID=319318 ), the workaround is
to use an /etc/shadow value from Solaris 10 (or SXCE is assume).
Comment 1 Rich Burridge 2009-07-23 09:55:26 UTC
In order to get the attention of the Solaris engineers, I've
opened a bug in the Sun Bugster database, and am closing this one
as TRACKEDINBUGSTER.

If the Bugster bug is now in a public category/sub-category, the
URL of the new bug at bugs.opensolaris.org will be:

http://bugs.opensolaris.org/view_bug.do?bug_id=6863728

(This will happen the next time the new Bugster bug information
is pushed to bugs.opensolaris.org).

I've added the bug submitter to the Bugster interest list. If you'd
like to be removed, just let me know (by adding a comment to this bug).

If anybody else would like to be added to the cc: of the Bugster bug,
again just let me know (by adding a comment to this bug).

Note that there is currently no easy way for external-to-Sun
people to update the Bugster bug. That's been worked on. In the
meantime, if a Bugster evaluator asks you for further information
and you are external-to-Sun, then I suggest emailing that person
directly.

Thanks.