[SOLVED] local-zfs not available for LXC creation

t0mz

Active Member
Jan 20, 2022
44
9
28
26
I am making my first hooray into ZFS and as part of that wanted to create a LXC container (Debian+samba).
While setting up the container I only get to see "local", but not local-zfs. Was wondering if there is a technical reason for this? Should LXC containers not be on local-zfs?

1773393465341.png

Got 2 500GB in ZFS RAID1 in case that matters.
The currently unused 1TB HDD, sdb, is supposed to become the data drive for SAMBA.

Code:
root@pve:~# lsblk
NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda       8:0    0 465.8G  0 disk
├─sda1    8:1    0  1007K  0 part
├─sda2    8:2    0     1G  0 part
└─sda3    8:3    0   464G  0 part
sdb       8:16   0 931.5G  0 disk
sdc       8:32   0 465.8G  0 disk
├─sdc1    8:33   0  1007K  0 part
├─sdc2    8:34   0     1G  0 part
└─sdc3    8:35   0   464G  0 part
sdd       8:48   1     0B  0 disk
sde       8:64   1     0B  0 disk
sdf       8:80   1     0B  0 disk
sdg       8:96   1     0B  0 disk
sr0      11:0    1  1024M  0 rom
zd0     230:0    0    32G  0 disk
├─zd0p1 230:1    0   100M  0 part
└─zd0p2 230:2    0  31.9G  0 part
 
Last edited:
Hi,

what's your storage configuration (cat /etc/pve/storage.cfg)?
Is "Container" selected for the "Content" dropdown in the storage configuration?
 
I was just typing up all the details you asked for and then realised my little "brain fart" :-)

The first selection was for template storage and not the container. The next screen offers "local-zfs" as expected.
I think it's time for a coffee, thanks for asking the right questions to make the realize. :rolleyes:
 
No worries, good to hear you solved it!

Please just mark the thread as SOLVED by editing the first post - there should be dropdown near the title. This helps others find this thread more easily in the future :)