Hi,
While testing ProxMox 4.2 (and waiting for the proper storage) I used a small SSD (as local storage) and created a few LXCs.
All worked well, no issues. I shut down the LXCs and backed them up with the GUI. Transferred them to new PC via WinSCP.
After I got my new SSDs I removed the small SSD and built ProxMox from scratch (same version or the previous one = 4.2 + the updates available).
I added one of the new SSDs (LV, formatted wiht ext4 and mounted via /etc/fstab)
The old storage was called TempStorage while on the newly built server it is called LocalStorage
I then used WinSCP to move the backed up LXCs form my PC to the newProxMox build.
Next I have used the GUI to restore the backup (only tested one so far).LXC server starts but is doesnt run properly. In the logs (on the LXC and ProxMox) I see these errors:
So while the server starts and I can login, required services are not running due to the above.
Am I doing something wrong? In the forums here it is mentioned that if the LXCs are shut down when backed up they should import on the new server OK. I double checked this as I have the small SSD - LXC run OK, shut down one, back it up, move the file, etc = same errors.
Can I use the old installation and LXCs and attach the new SSD and migrate them somehow?
Thanks for your help.
While testing ProxMox 4.2 (and waiting for the proper storage) I used a small SSD (as local storage) and created a few LXCs.
All worked well, no issues. I shut down the LXCs and backed them up with the GUI. Transferred them to new PC via WinSCP.
After I got my new SSDs I removed the small SSD and built ProxMox from scratch (same version or the previous one = 4.2 + the updates available).
I added one of the new SSDs (LV, formatted wiht ext4 and mounted via /etc/fstab)
The old storage was called TempStorage while on the newly built server it is called LocalStorage
I then used WinSCP to move the backed up LXCs form my PC to the newProxMox build.
Next I have used the GUI to restore the backup (only tested one so far).LXC server starts but is doesnt run properly. In the logs (on the LXC and ProxMox) I see these errors:
Code:
May 13 15:51:03 proxmox kernel: audit: type=1400 audit(1463125863.197:50): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/pstore/" pid=24622 comm="mount" fstype="pstore" srcname="pstore"
May 13 15:51:03 proxmox kernel: audit: type=1400 audit(1463125863.197:51): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/pstore/" pid=24622 comm="mount" fstype="pstore" srcname="pstore" flags="ro"
May 13 15:51:03 proxmox kernel: audit: type=1400 audit(1463125863.245:52): apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxc-container-default" name="/" pid=24824 comm="mount" flags="rw, remount, silent"
May 13 15:51:03 proxmox kernel: audit: type=1400 audit(1463125863.245:53): apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxc-container-default" name="/" pid=24825 comm="mount" flags="rw, remount, relatime"
May 13 15:51:03 proxmox kernel: audit: type=1400 audit(1463125863.261:54): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/run/" pid=24880 comm="mount" flags="rw, nosuid, noexec, remount, relatime"
May 13 15:51:03 proxmox kernel: audit: type=1400 audit(1463125863.261:55): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/run/lock/" pid=24891 comm="mount" flags="rw, nosuid, nodev, noexec, remount, relatime"
May 13 15:51:03 proxmox kernel: audit: type=1400 audit(1463125863.265:56): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/proc/" pid=24898 comm="mount" flags="rw, nosuid, nodev, noexec, remount, relatime"
May 13 15:51:03 proxmox kernel: audit: type=1400 audit(1463125863.265:57): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/" pid=24906 comm="mount" flags="ro, nosuid, nodev, noexec, remount, relatime"
May 13 15:51:03 proxmox kernel: audit: type=1400 audit(1463125863.281:58): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/run/shm/" pid=24972 comm="mount" flags="rw, nosuid, nodev, noexec, remount, relatime"
So while the server starts and I can login, required services are not running due to the above.
Am I doing something wrong? In the forums here it is mentioned that if the LXCs are shut down when backed up they should import on the new server OK. I double checked this as I have the small SSD - LXC run OK, shut down one, back it up, move the file, etc = same errors.
Can I use the old installation and LXCs and attach the new SSD and migrate them somehow?
Thanks for your help.