ZFS + LXC issue - can't select the ZFS storage for a container

ok fixed. sorry. bad day here.anyway trying to repost contents of the file.
 
thanks for your patience. here's the original post of my storage.cfg


dir: local
path /var/lib/vz
content images,iso,rootdir,vztmpl
maxfiles 0

zfspool: data1
pool rpool
content rootdir,images

I added and removed containers, which seems to toggle 'rootdir' element in the zfspool entry there (I assume it shouldnt be 'container'). I rebooted as well, and tried to create, no luck.
 
rootdir is for containers, indeed.
what is the output on container creation?

Why don't you try Proxmox 4? Containers are created as a ZFS dataset instead of a loop-mounted ext4.
 
root@tesla:~# pveversion
pve-manager/4.0-48/0d8559d0 (running kernel: 4.2.2-1-pve)

Im following this thread after I tried to create a container and got exactly the same as this thread:

https://forum.proxmox.com/threads/23884-Can-t-create-LXC-container-on-ZFS-local

which led me to here. Maybe im doing things totally wrong, tho there isnt much to be done:

click create CT, give ctid# name password, leave it on local storage, choose template I uploaded, click create, then see that error. Then i followed this thread and created a new ZFS storage area and try to select it in the Template (2nd tab ) of the CT create process but cant choose it.

This box is totally new (kinda a test case) so I can reinstall/upgrade to a later version etc tho I think im on it already.

addition: it might be notable that i installed on a zfs raid 1 mirror (two ssd's)

it does seem better to have the container as a zfs dataset, how is that done..?

ok something's changed, i seem to be able to select root on data1 now... will report how it goes.
 
Last edited:
You cannot store templates on ZFS storage. You need to have the templates on a "dir" storage (e.g. local). That is not the tab where the container will be created, it is the tab where you specify the seed image of the container.
Considering that you cannot put templates in a ZFS storage, what template did you expect to find there anyway?

So:
- select template from "local" where you uploaded it
- select "Root Disk" on your ZFS storage
 
yep doing that now. creating... done. lack of sleep and not understanding the new disk system got me into this corner. gentle suggestion of some kind of reminder that 'containers cant be created on default local storage if zfs was used for installation' might be good in the GUI.

thanks again for your help.
 
So did you get it working? Perhaps step by step directions for setting up Proxmox 4 with ZFS and RAID along with adding LXC containers. That would be great. Perhaps a youtube video from ISO install to first container creation?
 
So did you get it working? Perhaps step by step directions for setting up Proxmox 4 with ZFS and RAID along with adding LXC containers. That would be great. Perhaps a youtube video from ISO install to first container creation?

I can create containers. I had installed proxmox from the installation GUI with ZFS RAID 1 on two disks, I didnt do anything post install to the disk layout. Just didnt realise I had to manually create a ZFS pool for containers.
 
I can create containers. I had installed proxmox from the installation GUI with ZFS RAID 1 on two disks, I didnt do anything post install to the disk layout. Just didnt realise I had to manually create a ZFS pool for containers.

Can you describe how you manually created the ZFS pool?
 

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!