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•4mo 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•4mo 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•4mo 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•4mo ago
I've seen weird things before with symlinks. Might or might not work but it's it's simple to try
Raevenant
RaevenantOP•4mo ago
yep simple to try, but didnt work same error, not a new one
tulip🌷
tulipšŸŒ·ā€¢4mo 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•4mo 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šŸŒ·ā€¢4mo 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•4mo ago
that would be awesome too
tulip🌷
tulipšŸŒ·ā€¢4mo ago
i do this on my distroboxes
No description
tulip🌷
tulipšŸŒ·ā€¢4mo 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•4mo 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šŸŒ·ā€¢4mo ago
oh you absolutely can do that
tulip🌷
tulipšŸŒ·ā€¢4mo ago
No description
tulip🌷
tulipšŸŒ·ā€¢4mo ago
just unshare everything but netns
Raevenant
RaevenantOP•4mo ago
I assume all of those flags can be put someplace in the distrobox.ini too ye?
tulip🌷
tulipšŸŒ·ā€¢4mo ago
no idea, never used those on distrobox assemble 😭 lemme see
tulip🌷
tulipšŸŒ·ā€¢4mo ago
yup
No description
Raevenant
RaevenantOP•4mo ago
awesome
tulip🌷
tulipšŸŒ·ā€¢4mo ago
i highly recommend doign unshare_devsys if you are doing something funky
Raevenant
RaevenantOP•4mo ago
what's it do? I'm almost always doing something funky šŸ˜‚
tulip🌷
tulipšŸŒ·ā€¢4mo ago
it shares your devices to /dev on the distrobox /dev/sda... dd if=image of=/dev/sda would work
Raevenant
RaevenantOP•4mo ago
oh! Ok, I haven't done anything that funky, but that's good to know
tulip🌷
tulipšŸŒ·ā€¢4mo 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•4mo ago
wait wait wth @tulip using your flags worked what the hell
tulip🌷
tulipšŸŒ·ā€¢4mo ago
The Sigma THIS IS SO FUNNY THO WHY DID IT WORK LMAO
Raevenant
RaevenantOP•4mo ago
distrobox create parrotsec -Y --no-entry --unshare-process --unshare-devsys --image parrotsec/security:latest that works
tulip🌷
tulipšŸŒ·ā€¢4mo ago
@Niklas ⚔ another thing fixed without me doing shit. its the magical hands
Niklas ⚔
Niklas āš”ā€¢4mo ago
LMAO see i told you 🤣
tulip🌷
tulipšŸŒ·ā€¢4mo ago
GALINHA WHATSAPP LES GOOOOOOOOOOOOOOOOOOO
Raevenant
RaevenantOP•4mo 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•4mo ago
tulip just had to stare at my machine and glare it into submission šŸ˜‚
Niklas ⚔
Niklas āš”ā€¢4mo ago
we call it the "magic hands" fixed an issue of mine too lmao
Raevenant
RaevenantOP•4mo ago
you know, if it works it works
Niklas ⚔
Niklas āš”ā€¢4mo ago
yeah lol
Raevenant
RaevenantOP•4mo 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šŸŒ·ā€¢4mo ago
LOL @Niklas ⚔ even better now theres no way LOL like why did it not work before
Raevenant
RaevenantOP•4mo ago
beats me, it's mega weird
tulip🌷
tulipšŸŒ·ā€¢4mo ago
you can check the logs with podman logs parrothing
Raevenant
RaevenantOP•4mo ago
I'm trying with one more flag
tulip🌷
tulipšŸŒ·ā€¢4mo ago
aight lets see
Raevenant
RaevenantOP•4mo ago
the only flag left is the home one
Solution
Raevenant
Raevenant•4mo ago
YO it's the home one
Raevenant
RaevenantOP•4mo ago
ok, so what ways are there to sandbox this properly then?
tulip🌷
tulipšŸŒ·ā€¢4mo ago
i wonder whats goin on then?
Raevenant
RaevenantOP•4mo ago
apparently moving home breaks something cause like, it doesn't sandbox when you do that, it just moves it
tulip🌷
tulipšŸŒ·ā€¢4mo ago
if you want to truly sandbox this you can run it as a different user all together
Raevenant
RaevenantOP•4mo ago
so maybe some links or smth are breking
tulip🌷
tulipšŸŒ·ā€¢4mo ago
what you think?
Raevenant
RaevenantOP•4mo ago
yeh, lets try a full sandbox and see what happens
tulip🌷
tulipšŸŒ·ā€¢4mo ago
do useradd mynewuser then sudo -u mynewuser distrobox assemble -f whatver
Raevenant
RaevenantOP•4mo ago
oh shoot, like a new user on my host?
tulip🌷
tulipšŸŒ·ā€¢4mo ago
the new user wont have access to your home tho yes.
Raevenant
RaevenantOP•4mo 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šŸŒ·ā€¢4mo ago
why dont you just run a normal container then?
Raevenant
RaevenantOP•4mo ago
it dissappears when I exit out
tulip🌷
tulipšŸŒ·ā€¢4mo 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•4mo ago
no, I mean any changes I make don't stick around if I install programs, etc
tulip🌷
tulipšŸŒ·ā€¢4mo ago
are you on bazzite?
Raevenant
RaevenantOP•4mo ago
ye
tulip🌷
tulipšŸŒ·ā€¢4mo ago
damn this would be the perfect time to use incus
Raevenant
RaevenantOP•4mo ago
what's incus?
tulip🌷
tulipšŸŒ·ā€¢4mo ago
stateful containers like distrobox but without podman its more made to actually work statefully
Raevenant
RaevenantOP•4mo ago
oh huh
tulip🌷
tulipšŸŒ·ā€¢4mo 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•4mo ago
yeah sure
tulip🌷
tulipšŸŒ·ā€¢4mo ago
also maybe this should be a separate thread? this is showing up publically on answeroverflow LOL
Raevenant
RaevenantOP•4mo ago
maybe a thread in #šŸŽ®bazzite OH LMAO
tulip🌷
tulipšŸŒ·ā€¢4mo ago
what happened?
Raevenant
RaevenantOP•4mo ago
nono, just I didn't know this was all public outside discord lmao
tulip🌷
tulipšŸŒ·ā€¢4mo ago
YUP

Did you find this page helpful?