Zones and the Package Manager GUI

After getting a basic GUI to run from a zone, of course I was curious if I could run something more substantial. I don't normally use the Package Manager GUI, but I thought it would be a nice visual way to see what limited packages are installed in a zone. So I started by installing SUNWipkg-gui:

bleonard@myzone:~$ pfexec pkg install SUNWipkg-gui
DOWNLOAD                                    PKGS       FILES     XFER (MB)
Completed                                  48/48 12066/12066 132.02/132.02 

PHASE                                        ACTIONS
Install Phase                            14466/14466 
Deleting content cache

But the Package Manager fails to launch, w/out any reason as to why:

bleonard@myzone:~$ pfexec packagemanager
bleonard@myzone:~$

So I then tried installing the Python support libraries for GNOME:

bleonard@myzone:~$ pfexec pkg install SUNWgnome-python-libs
DOWNLOAD                                    PKGS       FILES     XFER (MB)
Completed                                  12/12   2203/2203   24.19/24.19 

PHASE                                        ACTIONS
Install Phase                              2918/2918 
Deleting content cache
bleonard@myzone:~$ pfexec packagemanager
process 2077: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
  D-Bus not built with -rdynamic so unable to print a backtrace
Abort (core dumped)

That's pretty ugly, but at least we have some feedback. Now I'll install the D-Bus service. Although the D-Bus service isn't designed to run in a local zone, it will give us the /var/lib/dbus/machine-id that the Package Manger is looking for (there's no need to actually start the D-Bus service):

bleonard@myzone:~$ pfexec pkg install SUNWdbus
DOWNLOAD                                    PKGS       FILES     XFER (MB)
Completed                                    1/1       28/28     0.38/0.38 

PHASE                                        ACTIONS
Install Phase                                  69/69 
Deleting content cache
bleonard@myzone:~$ pfexec packagemanager
/usr/bin/packagemanager:284: PangoWarning: No fonts found:
This probably means that the fontconfig
library is not correctly configured. You may need to
edit the fonts.conf configuration file. More information
about fontconfig can be found in the fontconfig(3) manual
page and on http://fontconfig.org
  w_tree_main = gtk.glade.XML(self.gladefile, "mainwindow")
/usr/bin/packagemanager:559: PangoWarning: failed to find shape engine, expect ugly output. engine-type='PangoRenderFc', script='latin'
  self.w_main_window.show_all()
/usr/bin/packagemanager:559: PangoWarning: No fonts found:
This probably means that the fontconfig
library is not correctly configured. You may need to
edit the fonts.conf configuration file. More information
about fontconfig can be found in the fontconfig(3) manual
page and on http://fontconfig.org
  self.w_main_window.show_all()
/usr/bin/packagemanager:559: PangoWarning: file pango-engine.c: line 85: assertion `PANGO_IS_FONT (font)' failed
  self.w_main_window.show_all()
/usr/bin/packagemanager:559: PangoWarning: failed to find shape engine, expect ugly output. engine-type='PangoRenderFc', script='common'
  self.w_main_window.show_all()
/usr/bin/packagemanager:3808: PangoWarning: file pango-engine.c: line 85: assertion `PANGO_IS_FONT (font)' failed
  gtk.main_iteration(False)
/usr/bin/packagemanager:3741: PangoWarning: file pango-engine.c: line 85: assertion `PANGO_IS_FONT (font)' failed
  gtk.main()

Hey, now that's progress. Let's add the fonts and try that again:

bleonard@myzone:~$ pfexec pkg install FSWxorg-fonts-core
DOWNLOAD                                    PKGS       FILES     XFER (MB)
Completed                                    1/1   1442/1442   20.42/20.42 

PHASE                                        ACTIONS
Install Phase                              1466/1466 
Deleting content cache
bleonard@myzone:~$ pfexec packagemanager


And now we have something usable. If you're really picky and want the Nimbus theme, we can even get that. This time I will install it using the Package Manager GUI:

And then restart the Package Manager:

One thing you'll notice is that there are only 123 packages installed in a zone (including the ones we just installed). Compare this to the global zone which has over 600 packages initially installed.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

The Observatory is a blog for users of Oracle Solaris. Tune in here for tips, tricks and more as we explore the Solaris operating system from Oracle.

Connect with Oracle Solaris:


Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today