Comments (4)
Hello Max!
Thank you very much for your help
I use the following command:
docker run --cpus 3 --privileged --rm --volume "$(pwd):/data" --user $(id -u):$(id -g) deserializeme/pxeless -a -k -u user-data.basic -s ubuntu-22.04.2-live-server-amd64.iso -d unatended.iso -x /data
from pxeless.
Thanks for letting me know that there was an issue, I'll look into this after work today. 👍
Could you share the command you used to generate your image?
from pxeless.
Thanks for providing this and my apologies for the delay, work is rough this week but tomorrow is a national holiday here in The Netherlands so I'll have the time to test a fix 👍
from pxeless.
@agusserraa98 I tried to run the command you provided:
docker run --cpus 3 --privileged \
--rm --volume "$(pwd):/data" \
--user $(id -u):$(id -g) \
deserializeme/pxeless -a -k -u user-data.basic -s ubuntu-22.04.2-live-server-amd64.iso -d unatended.iso -x /data
and it failed with a permissions error:
sudo: you do not exist in the passwd database
This prompted me to do some experimenting and it looks like I made an error in the documentation due to some incorrect assumptions about the permissions required to mount a squashfs in a container. Please accept my apologies for not catching that issue earlier 😅
It turns out that we cannot use --user $(id -u):$(id -g)
when also using the -x
option because your user id is not in the sudoers file of the container, and we need to use sudo to mount the squashfs. This could be fixed by me adding a user account to the container that has been granted password-less sudo access and then explicitly running the docker command with that user's id and group - but that's work i will have to do at a later date. Ive opened a ticket for myself here: #34
For now, I slightly modified the command to remove the option mentioned previously, and ran it using the latest
and v0.0.7
image tags:
docker run --cpus 16 --privileged \
--rm --volume "$(pwd):/data" \
deserializeme/pxeless -a -k -u user-data.basic -s ubuntu-22.04.2-live-server-amd64.iso -d unatended.iso -x /data
I was able to install the ISO and login using the basic profile credentials
I also now see that we don't need to use --privileged
to mount the squashfs in the container, only sudo. So that flag can also be dropped. 😅
If that still does not work for you, and you are using a USB drive and not a VM - try another USB drive. I have had multiple instances where a drive has failed to properly hold an ISO when imaged via dd/rufus/etcher towards the end of its life. Ive also had this happen with some drives I ordered in bulk from ali-express, so if you have a spare - try it out.
Let me know if you still have issues 👍
from pxeless.
Related Issues (15)
- Not a bug, just an FYI to anyone using subdirectories HOT 7
- Working examples with Ubuntu 22.04.1 Desktop? HOT 4
- Update dockerhub readme HOT 1
- Versioned docker images HOT 1
- Wrong module in user-data.advanced file HOT 3
- GUIDE: Testing your ISO with QEMU HOT 1
- BUG: extra files not copied to live system during install when using `-x` HOT 4
- [Question] Offline package installation HOT 2
- [FEATURE] Add a user account with sudo access in container
- Make sudo conditional to user/env HOT 1
- stat /data/image-create.sh: no such file or directory: unknown. HOT 6
- [FEATURE] Customize boot parameters HOT 2
- An issue within the readme example HOT 5
- switch combinations HOT 2
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 pxeless.