Antsle Forum
Welcome to our Antsle community! This forum is to connect all Antsle users to post experiences, make user-generated content available for the entire community and more.
Please note: This forum is about discussing one specific issue at a time. No generalizations. No judgments. Please check the Forum Rules before posting. If you have specific questions about your Antsle and expect a response from our team directly, please continue to use the appropriate channels (email: [email protected]) so every inquiry is tracked.
unbuntu LXC antlet & snap
Quote from verena.ruff on April 9, 2019, 12:41 pmHi,
I tried to install a snap package on an ubuntu LXC antlet. I manually upgraded to bionic and installed snapd. But while trying to install the hello-world snap I get the following error:
error: system does not fully support snapd: cannot mount squashfs image using "squashfs": mount:
/tmp/sanity-mountpoint-270681490: mount failed: Operation not permitted.Did anyone manage to install snaps on an antlet?
Hi,
I tried to install a snap package on an ubuntu LXC antlet. I manually upgraded to bionic and installed snapd. But while trying to install the hello-world snap I get the following error:
error: system does not fully support snapd: cannot mount squashfs image using "squashfs": mount:
/tmp/sanity-mountpoint-270681490: mount failed: Operation not permitted.
Did anyone manage to install snaps on an antlet?
Quote from TheGarnet on January 5, 2021, 2:34 pmUnfortunately I am hitting this too. I have Nano, and want to use free "Let's Encrypt" certs to protect website on a CentOS7 antlet, and Let's Encrypt wants me to install Certbot, which requires snapd to be installed. It appears like I have installed snapd with yum, but attempting to use snap gets this error:
snap install core
error: system does not fully support snapd: cannot mount squashfs image using "squashfs": mount:
/tmp/sanity-squashfs-170670053: failed to setup loop device: No such file or directory
This may have something to do with loopback devices not compiled into the kernel. If loopback devices were install, this should show something, but it doesn't:
ls /dev/loop*
ls: cannot access /dev/loop*: No such file or directory
Unfortunately I am hitting this too. I have Nano, and want to use free "Let's Encrypt" certs to protect website on a CentOS7 antlet, and Let's Encrypt wants me to install Certbot, which requires snapd to be installed. It appears like I have installed snapd with yum, but attempting to use snap gets this error:
snap install core
error: system does not fully support snapd: cannot mount squashfs image using "squashfs": mount:
/tmp/sanity-squashfs-170670053: failed to setup loop device: No such file or directory
This may have something to do with loopback devices not compiled into the kernel. If loopback devices were install, this should show something, but it doesn't:
ls /dev/loop*
ls: cannot access /dev/loop*: No such file or directory
Quote from lancem on January 6, 2021, 8:17 amThis is for ChromeOS, but maybe it will work?
https://stackoverflow.com/questions/60859806/chromeos-error-system-does-not-fully-support-snapd-cannot-mount-squashfs-imag
I recommend doing a snapshot of your antlet first!
This is for ChromeOS, but maybe it will work?
I recommend doing a snapshot of your antlet first!
Quote from infobro on February 24, 2023, 3:45 pmHere's what I found works on edgeLinux 2.0.0, mindful that this is recently, like a couple of days ago.
1. Spin up your LXC container, such as an Ubuntu 20.04 template
Install some fuse tools and snap
# apt install squashfuse fuse
...install snap core, may install some other required packages
# apt install snapd# mkdir /lib/modules
2. Logon to the Antsle host, i.e., myantsle.local
3. edit the LXC configuration using virsh:
virsh -c lxc:///system edit myguest4. Add a filesystem entry, e.g., a lxc.mount.entry; for /dev/fuse on your LXC guest
...
<filesystem type='mount' accessmode='passthrough'>
<source dir='/dev/fuse'/>
<target dir='/dev/fuse'/>
</filesystem>
...5. Save the update and restart the guest. Your edgeLinux host /dev/fuse should now be shown in the antlet as /dev/fuse
Clean up the install and do it again:
# apt-get -y purge snapd squashfs-tools libsquashfuse0 squashfuse fuse
# apt install squashfuse fuse
...install snap core, may install some other required packages
# apt install snapd
...install the test application
# snap install hello-world
...run the test
# hello-worldI think this will survive a reboot of the edgeLinux and on the antlet configuration, I have not tested that so YMMV. I did get it to work and install certbot though.
If there is a problem you can use the following to clean up.
# apt-get -y purge snapd squashfs-tools libsquashfuse0 squashfuse fuse
Here's what I found works on edgeLinux 2.0.0, mindful that this is recently, like a couple of days ago.
1. Spin up your LXC container, such as an Ubuntu 20.04 template
Install some fuse tools and snap
# apt install squashfuse fuse
...install snap core, may install some other required packages
# apt install snapd
# mkdir /lib/modules
2. Logon to the Antsle host, i.e., myantsle.local
3. edit the LXC configuration using virsh:
virsh -c lxc:///system edit myguest
4. Add a filesystem entry, e.g., a lxc.mount.entry; for /dev/fuse on your LXC guest
...
<filesystem type='mount' accessmode='passthrough'>
<source dir='/dev/fuse'/>
<target dir='/dev/fuse'/>
</filesystem>
...
5. Save the update and restart the guest. Your edgeLinux host /dev/fuse should now be shown in the antlet as /dev/fuse
Clean up the install and do it again:
# apt-get -y purge snapd squashfs-tools libsquashfuse0 squashfuse fuse
# apt install squashfuse fuse
...install snap core, may install some other required packages
# apt install snapd
...install the test application
# snap install hello-world
...run the test
# hello-world
I think this will survive a reboot of the edgeLinux and on the antlet configuration, I have not tested that so YMMV. I did get it to work and install certbot though.
If there is a problem you can use the following to clean up.
# apt-get -y purge snapd squashfs-tools libsquashfuse0 squashfuse fuse
Quote from daniel.luck on February 24, 2023, 7:22 pmHi @infobro
Thanks for sharing!
Thank you,
antsle Support
Hi @infobro
Thanks for sharing!
Thank you,
antsle Support
Quote from drewcampbell on April 12, 2023, 6:40 pmQuote from drift hunters on January 6, 2021, 8:17 amThis is for ChromeOS, but maybe it will work?
https://stackoverflow.com/questions/60859806/chromeos-error-system-does-not-fully-support-snapd-cannot-mount-squashfs-imag
I recommend doing a snapshot of your antlet first!
Thanks for sharing!
Quote from drift hunters on January 6, 2021, 8:17 amThis is for ChromeOS, but maybe it will work?
I recommend doing a snapshot of your antlet first!
Thanks for sharing!
Quote from stumble guys on November 1, 2023, 6:47 pmThanks for the useful information from your article moto x3m
Thanks for the useful information from your article moto x3m