My problem is that some images exported form LXD causes a problem with file ownership. It works if I use a image from linuxcontainers.org and upload it directly to proxmox, but not if I start the image on my workstation, export it and then upload the image to proxmox. (some images works just fine in both situations)
To recreate:
Output form ls / -la:
What can be the reason behind this file ownership problem?
To recreate:
- Install lxd(fast to install)
- lxc launch images:ubuntu/xenial/amd64 test
- lxc publish test --alias my-image --force
- lxc image export my-image .
- tar -xvzf <hash>.tar.gz
- cd rootfs/
- tar -zcvf ../ubuntu-16.04_my-image.tar.gz .
- Upload the image(ubuntu-16.04_my-image.tar.gz) to Proxmox and start a container.
Output form ls / -la:
Code:
drwxr-xr-x 21 root root 21 Apr 29 20:12 .
drwxr-xr-x 21 root root 21 Apr 29 20:12 ..
drwxr-xr-x 2 ubuntu ubuntu 131 Apr 29 04:05 bin
drwxr-xr-x 2 ubuntu ubuntu 2 Apr 12 20:14 boot
drwxr-xr-x 7 root root 480 Apr 29 20:12 dev
drwxr-xr-x 65 ubuntu ubuntu 129 Apr 29 20:12 etc
drwxr-xr-x 3 ubuntu ubuntu 3 Apr 29 04:06 home
drwxr-xr-x 11 ubuntu ubuntu 12 Apr 29 04:05 lib
drwxr-xr-x 2 ubuntu ubuntu 3 Apr 29 04:05 lib64
drwxr-xr-x 2 ubuntu ubuntu 2 Apr 29 04:05 media
drwxr-xr-x 2 ubuntu ubuntu 2 Apr 29 04:05 mnt
drwxr-xr-x 2 ubuntu ubuntu 2 Apr 29 04:05 opt
dr-xr-xr-x 908 root root 0 Apr 29 20:12 proc
drwx------ 3 ubuntu ubuntu 5 Apr 29 20:12 root
drwxr-xr-x 10 root root 360 Apr 29 20:12 run
drwxr-xr-x 2 ubuntu ubuntu 114 Apr 29 04:06 sbin
drwxr-xr-x 2 ubuntu ubuntu 2 Apr 29 04:05 srv
dr-xr-xr-x 13 root root 0 Apr 29 18:59 sys
drwxrwxrwt 7 root root 7 Apr 29 20:37 tmp
drwxr-xr-x 10 ubuntu ubuntu 10 Apr 29 04:05 usr
drwxr-xr-x 11 ubuntu ubuntu 13 Apr 29 04:05 var
What can be the reason behind this file ownership problem?