lxc and squashfs

more info.

the lxc is Ubuntu 16.04.3 LTS made from pve template

I am trying to install nextcoud using snap
Code:
# snap install nextcloud
error: cannot perform the following tasks:
- Mount snap "core" (2898) ([start snap-core-2898.mount] failed with exit status 1: Job for snap-core-2898.mount failed. See "systemctl status snap-core-2898.mount" and "journalctl -xe" for details.
Code:
# systemctl status snap-core-2898.mount
* snap-core-2898.mount - Mount unit for core
   Loaded: loaded (/etc/systemd/system/snap-core-2898.mount; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2017-09-24 13:17:33 UTC; 7min ago
    Where: /snap/core/2898
     What: /var/lib/snapd/snaps/core_2898.snap
  Process: 598 ExecMount=/bin/mount /var/lib/snapd/snaps/core_2898.snap /snap/core/2898 -t squashfs -o nodev,ro (code=exited, status=32)

Sep 24 13:17:33 nextcloud systemd[1]: Mounting Mount unit for core...
Sep 24 13:17:33 nextcloud mount[598]: mount: /snap/core/2898: mount failed: Unknown error -1
Sep 24 13:17:33 nextcloud systemd[1]: snap-core-2898.mount: Mount process exited, code=exited status=32
Sep 24 13:17:33 nextcloud systemd[1]: Failed to mount Mount unit for core.
Sep 24 13:17:33 nextcloud systemd[1]: snap-core-2898.mount: Unit entered failed state

I searched web before and after posting, and could not find an answer, just others with similar issue.

So I'll install nextcloud another way.
 
same issue here, but I guess no solution so far, I did install it on my lxd host using snap and still running perfectly when I tried to install it on PVE CT it fails to mount the snap core, why not on PVE and yes in Ubuntu Server 16.04 running the latest lxd version?

JC
 
you have to use the lates pve-container.

I'm using pve-container 2.0-29.

To use neasted feature within the container, I had to make sure that the neasted feature is available:

echo "options kvm-intel nested=Y" > /etc/modprobe.d/kvm-intel.conf
modprobe -r kvm_intel
modprobe kvm_intel (or reboot the node)

after that

cat /sys/module/kvm_intel/parameters/nested => Y

In addition I had to add the following to the lxc container config file.


features: mount=1,nesting=1
lxc.mount.entry = /dev/fuse dev/fuse none bind,create=file,optional
# Mount proc and sys in rw to get snaps working
lxc.mount.auto=
lxc.mount.auto=proc:rw sys:rw

And I h


In my case I had to create create the /lib/modules directory within the container.

After that, I was able to install nextcloud using snap in an unprivileged ubuntu-18.04 container
 
the nested KVM kernel module parameter and nested LXC feature flag are entirely unrelated.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!