-
as17
hi. i've installed a sparse zone on omnios and later on installed nginx into the global zone. now i can't see the service for nginx in the sparse zone. what do i have to do?
-
as17
related question: i wasn't able to install nginx in the sparse zone directly, due to files listed in a exclude list. is there a recommended way to do this?
-
andyf
You should be able to install nginx into the sparse zone, that's the kind of intended use case.
-
andyf
Do you have the output?
-
andyf
Generally I don't install many packages in the GZ at all
-
as17
andyf that was my plan, just a moment, i will send the output.
-
andyf
You have to be generally careful with sparse zones because they don't have their own `/usr` for example, but things like `nginx` should install under `/opt`
-
andyf
and if not, we've got it wrong
-
as17
-
andyf
It isn't obvious, but that means you need to install library/libxslt in the GZ
-
andyf
It looks like a warning too, so nginx should have been installed
-
as17
should be the nginx from the extras repository. this is a 151038 lts that was freshly upgraded to 151046. didnt run nginx before and the zone was created after the upgrade
-
as17
i have installed libxslt in the gz after i saw the warning, but it didn't disappear. nor is nginx installed in the sparse zone.
-
as17
as@kvm2:~$ pfexec pkg install library/libxslt
-
as17
Für dieses Abbild sind keine Updates erforderlich.
-
andyf
What do you get for `pkg property exclude-policy`?
-
andyf
(in the zone)
-
as17
root@reproxy:~# pkg property exclude-policy
-
as17
PROPERTY VALUE
-
as17
exclude-policy reject
-
as17
root@reproxy:~#
-
as17
nothing?
-
andyf
Ok, it's set to reject, let's change that
-
andyf
pkg set-property exclude-policy ignore
-
andyf
Then try again to install nginx in the zone, and add `-v`, so `pkg install -v nginx`
-
andyf
I'm surprised if the default is still reject, we should probably change that.
-
andyf
(I thought we had)
-
as17
-
as17
looks good to me?
-
andyf
Yes, and `svcs nginx` should hopefully show the service now
-
as17
indeed it does :) can i safely remove the nginx install on the gz?
-
andyf
Yes you can
-
as17
thank you very much!
-
andyf
and you can also do `pkg list -rM` to see if it pulled in anything else for you, although you'll need to keep them if they are core packages from /usr
-
andyf
That shows packages which were automatically installed, and are removable (as in, have no dependents)
-
as17
ooce/server/nginx-common (extra.omnios) 1.0.0-151046.0 i--
-
as17
(is one of them)
-
andyf
I'd probably remove that too in the GZ
-
as17
i guess openssl i there to stay?
-
as17
is*
-
andyf
it just adds a user I think, but might as well clean it up
-
as17
great. thank you again :)
-
andyf
Plain openssl versus openssl-3? It is just a simple package that pulls in the real openssl-3 so it does no harm.
-
andyf
You're welcome
-
andyf
I'll take a look at why it defaulted to reject
-
andyf
-
as17
i used zadm to create the zone. but that shouldn't make a difference?
-
as17
(0.14.3)
-
andyf
It just uses zoneadm to do that. I can try and replicate over the weekend anyway.