redK Laptop Bags

Archives

segmentation fault when trying to create a new zone on solaris10 x86 (on vmware fusion on mac os x)

My environment:

mac os x snow leopard 10.6.8

vmware fusion Version 3.1.3 (416484)

solaris 10 x86: SunOS solaris10 5.10 Generic_141445-09 i86pc i386 i86pc

When I tried to create a zone, I got a Segmentation fault:

bash-3.00# zonecfg -z zone01
zone01: No such zone configured
Use ‘create’ to begin configuring a new zone.
zonecfg:zone01> create
Segmentation Fault (core dumped)

I tried various things but could not find the problem.

It was this post that set me in the right direction:
http://mail.opensolaris.org/pipermail/zones-discuss/2010-April/006229.html

What was my LD_LIBRARY_PATH?
I rerun ldd and this time I noticed a clue:

bash-3.00# ldd /usr/sbin/zonecfg
[...]
libz.so.1 =>         /opt/csw/lib/libz.so.1
        libz.so.1 (SUNW_1.1) =>         (version not found)

The day before I had manually set the LD_LIBRARY_PATH in this shell to test a package downloaded from http://www.opencsw.org/. I had forgotten about it.
So I started a new shell and checked with ldd again:

bash-3.00# ldd /usr/sbin/zonecfg
[...]
libz.so.1 =>         /usr/lib/libz.so.1

This looks better, and in fact:

ash-3.00# zonecfg -z zone01
zone01: No such zone configured
Use ‘create’ to begin configuring a new zone.
zonecfg:zone01> create
zonecfg:zone01>

no more segmentation fault.

Share and Enjoy:
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • Add to favorites
  • email
  • Google Buzz
  • LinkedIn
  • Reddit
  • Slashdot

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>