Comments (4)
how long ago was this 13.2 container created? ? if it was created more than a year ago, most likely this is a known issue/error and it has already been fixed. For example, if you create a new container on latest CBSD:
cbsd jcreate jname=xxx runasap=1 ver=13.2
and try to perform upgrade:
cbsd jstop jname=xxx
cbsd jset ver=14.0 jname=xxx
cbsd jstart xxx
will there be a problem with cbsd etcupdate ?
PS: also cbsd etcupdate should create a backup in ~cbsd/jails-system/jail/etcupdate/. Additionally, cbsd suggests using the "mode=diff" params first so you can see what the script will try to change (remove) before applying it.
from cbsd.
@olevole @mergar
Thanks for 1st class support!
You were right, I can chroot there so I tried syncing pam.d.
It worked!
So for others here's what I did:
- Update base and start jail
cbsd jset jname=xxx ver=14.0
cbsd etcupdate mode=resolve jname=xxx
cbsd jstart xxx
-
Should be there, but you can create quick backup of
/etc/pam.d
just in case
rsync -avhSP ~cbsd/jails/jails/xxx/etc/pam.d /somwhere
-
Sync it with new base
rsync -avhSP ~cbsd/basejail/base_amd64_amd64_14.0/etc/pam.d/ ~cbsd/jails/xxx/etc/pam.d/
-
Now you can login to jail
cbsd jlogin xxx
-
Fix pkg and ABI changes
pkg-static bootstrap -f
pkg update
pkg upgrade
- Restart and you are good to go
If I could only suggest documenting it somehow?
Thank you so much!
from cbsd.
@michalszmidt This is most likely due to changes to pam.d in 14.x. Yes, etcupdate
should have corrected the situation, but I can’t say anything without logs.
You can make sure that the problem is not in the ABI by trying to execute 'chroot', instead of 'jlogin':
chroot ~cbsd/jails/jails/<jname> /bin/csh
if it works try syncing /etc/pam* from host (e.g. ~cbsd/basejail/base_amd64_amd64_14.0/etc/pam.d ) into jail's /etc
Most likely the etcupdate
did not work as expected in your case ( please post cbsd etcupdate jname=xxx from=13.2 to=14.0 mode=diff
).
In my tests ( cbsd etcupdate jname=dnsmasq mode=update from=13.2 to=14.0 ): https://pastebin.com/9j2gEE33
from cbsd.
@michalszmidt thanks for the documentation/info. However, I felt like an etcupdate
should handle things like this. I'll try to double check when I have time!
from cbsd.
Related Issues (20)
- jexec jname='*' висит HOT 5
- Jail Rebuilding Sqlite DB Config File
- Jail kernel "broken" after version bump HOT 3
- bhyve instance fails to start if hda audio is enabled HOT 1
- User-directories missing in jail after upgrade FreeBSD 13.1 to 13.2 HOT 3
- Also No Issue, Thanks, But.... HOT 1
- Can't start VM after restart HOT 1
- CBSD 13.2.6 does not create mount-point for /usr/home HOT 1
- Been Running cbsd for about 3 years now - I see hints there is a webui in development. HOT 1
- Debugging VM that doesn't start HOT 9
- Module installation inside a jail HOT 1
- "unexpected operator" when executed in folder with space HOT 1
- Semi broken jail after base upgrade HOT 4
- Страница недосягаема кода использую префикс в настройках клетки HOT 3
- cpu-topology corrupt HOT 2
- Invalid content inside state_time HOT 1
- Error Running: cbsd module mode=install clonos-database HOT 1
- Problem with importing archive img to bhyve HOT 3
- custom jail creation profile is not listed in jconstruct-tui HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cbsd.