Distrobox failing to start box

I've uploaded the distrobox enter parrot-os -v log. Here's the distrobox.ini file:
[parrot-os]
image=parrotsec/security:latest
pull=true
replace=true
start_now=false
home=/home/nathaniel/boxes/parrotos
[parrot-os]
image=parrotsec/security:latest
pull=true
replace=true
start_now=false
home=/home/nathaniel/boxes/parrotos
Solution:
YO it's the home one
Jump to solution
74 Replies
Raevenant
RaevenantOPā€¢2mo ago
@tulip I ping you due to you mentioning in the past that I can ping you for help, but don't take it as a rush request šŸ™
wolfyreload
wolfyreloadā€¢2mo ago
Maybe try this with the /var/home instead of the symbolic link of just using /home
[parrot-os]
...
home=/var/home/nathaniel/boxes/parrotos
[parrot-os]
...
home=/var/home/nathaniel/boxes/parrotos
Raevenant
RaevenantOPā€¢2mo ago
trying now. It did successfully create the location and put stuff in it, but maybe only part of the process respects symlinks for whatever reason
wolfyreload
wolfyreloadā€¢2mo ago
I've seen weird things before with symlinks. Might or might not work but it's it's simple to try
Raevenant
RaevenantOPā€¢2mo ago
yep simple to try, but didnt work same error, not a new one
tulipšŸŒ·
tulipšŸŒ·ā€¢2mo ago
sending a message here so i remember to check this im out noe, ikl answer this later @Raevenant what is exactly your issue? i think its something to do with the base image, do you mind testing out some other one? like, just change the base to ubuntu:latest on your distrobox.ini
Raevenant
RaevenantOPā€¢5w ago
Yeah gimme a min ok yeah it's the base image that isn't working. Is distrobox not able to use all docker images as bases? so it's weird too, because I can enter the container just fine with -it flags just using podman itself, so idk what distrobox puts on top of all that actually tbh, I don't think I want parrot running as a distrobox lmao I actually want the sandboxing that distrobox works around Actually ignore that šŸ‘† there are still good reasons to use distro box for this, so if youve got any ideas for how to make it work, I'm all ears It works just fine when I run it with podman -it and I can mount volumes n stuff, so idk why distrobox specifically doesn't work Oh, I never answered this, my b. It assembles just fine, but when I do distrobox start parrot-os it fails towards the end and can't finish setting up the box However as mentioned, if I run it directly, it runs just fine. However some of the niceties that distrobox gives like re-assembling with a command would be super helpful oh but running it with podman run -it doesn't save anything installed the way that distrobox does, so I actually do need to figure this out
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
i think the parrotOS image has some /etc/profile.d hook that makes it so you cant login to the distrobox im sorry i was out all day today and yesterdayh lemme see if i can reproduce your issue also, you can add some sandboxing if you want to on distrobox
Raevenant
RaevenantOPā€¢5w ago
that would be awesome too
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
i do this on my distroboxes
No description
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
distrobox create fedorabox -Y --no-entry --unshare-process --unshare-devsys --image registry.fedoraproject.org/fedora:rawhide --addit ional-packages "git git-delta just nu helix meson clang ccache "
Raevenant
RaevenantOPā€¢5w ago
my ideal scenario would be to put it back to fully sandboxed, but with a volume so I can put files into the box
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
oh you absolutely can do that
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
No description
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
just unshare everything but netns
Raevenant
RaevenantOPā€¢5w ago
I assume all of those flags can be put someplace in the distrobox.ini too ye?
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
no idea, never used those on distrobox assemble šŸ˜­ lemme see
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
yup
No description
Raevenant
RaevenantOPā€¢5w ago
awesome
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
i highly recommend doign unshare_devsys if you are doing something funky
Raevenant
RaevenantOPā€¢5w ago
what's it do? I'm almost always doing something funky šŸ˜‚
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
it shares your devices to /dev on the distrobox /dev/sda... dd if=image of=/dev/sda would work
Raevenant
RaevenantOPā€¢5w ago
oh! Ok, I haven't done anything that funky, but that's good to know
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
you know whats funny, podman has a lot more namespaces but distrobox doesnt expose them podman, that being the linux kernel actually
Raevenant
RaevenantOPā€¢5w ago
wait wait wth @tulip using your flags worked what the hell
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
The Sigma THIS IS SO FUNNY THO WHY DID IT WORK LMAO
Raevenant
RaevenantOPā€¢5w ago
distrobox create parrotsec -Y --no-entry --unshare-process --unshare-devsys --image parrotsec/security:latest that works
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
@Niklas āš” another thing fixed without me doing shit. its the magical hands
Niklas āš”
Niklas āš”ā€¢5w ago
LMAO see i told you šŸ¤£
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
GALINHA WHATSAPP LES GOOOOOOOOOOOOOOOOOOO
Raevenant
RaevenantOPā€¢5w ago
look, we all know that in the world of software and engineering, the tech only respects whichever technomancer has the highest level
Raevenant
RaevenantOPā€¢5w ago
tulip just had to stare at my machine and glare it into submission šŸ˜‚
Niklas āš”
Niklas āš”ā€¢5w ago
we call it the "magic hands" fixed an issue of mine too lmao
Raevenant
RaevenantOPā€¢5w ago
you know, if it works it works
Niklas āš”
Niklas āš”ā€¢5w ago
yeah lol
Raevenant
RaevenantOPā€¢5w ago
dude @tulip I can't reproduce it now either at all it literally wasn't your flags, it was just you watching šŸ˜‚
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
LOL @Niklas āš” even better now theres no way LOL like why did it not work before
Raevenant
RaevenantOPā€¢5w ago
beats me, it's mega weird
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
you can check the logs with podman logs parrothing
Raevenant
RaevenantOPā€¢5w ago
I'm trying with one more flag
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
aight lets see
Raevenant
RaevenantOPā€¢5w ago
the only flag left is the home one
Solution
Raevenant
Raevenantā€¢5w ago
YO it's the home one
Raevenant
RaevenantOPā€¢5w ago
ok, so what ways are there to sandbox this properly then?
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
i wonder whats goin on then?
Raevenant
RaevenantOPā€¢5w ago
apparently moving home breaks something cause like, it doesn't sandbox when you do that, it just moves it
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
if you want to truly sandbox this you can run it as a different user all together
Raevenant
RaevenantOPā€¢5w ago
so maybe some links or smth are breking
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
what you think?
Raevenant
RaevenantOPā€¢5w ago
yeh, lets try a full sandbox and see what happens
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
do useradd mynewuser then sudo -u mynewuser distrobox assemble -f whatver
Raevenant
RaevenantOPā€¢5w ago
oh shoot, like a new user on my host?
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
the new user wont have access to your home tho yes.
Raevenant
RaevenantOPā€¢5w ago
hmmmmmm is there a way to make distrobox act otherwise like a normal container? Sandboxed, but without access to /home/ or anything else? I'd like to be able to mount a volume that's in my user's home
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
why dont you just run a normal container then?
Raevenant
RaevenantOPā€¢5w ago
it dissappears when I exit out
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
podman create mycoolthing with the image you are running it with podman --rm podman ps -a should show it if you arent running with rm
Raevenant
RaevenantOPā€¢5w ago
no, I mean any changes I make don't stick around if I install programs, etc
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
are you on bazzite?
Raevenant
RaevenantOPā€¢5w ago
ye
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
damn this would be the perfect time to use incus
Raevenant
RaevenantOPā€¢5w ago
what's incus?
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
stateful containers like distrobox but without podman its more made to actually work statefully
Raevenant
RaevenantOPā€¢5w ago
oh huh
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
you can use systemd-nspawn on bazzite tho i think i know what we can do mind creating a $HOME/machines folder?
Raevenant
RaevenantOPā€¢5w ago
yeah sure
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
also maybe this should be a separate thread? this is showing up publically on answeroverflow LOL
Raevenant
RaevenantOPā€¢5w ago
maybe a thread in #šŸŽ®bazzite OH LMAO
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
what happened?
Raevenant
RaevenantOPā€¢5w ago
nono, just I didn't know this was all public outside discord lmao
tulipšŸŒ·
tulipšŸŒ·ā€¢5w ago
YUP

Did you find this page helpful?