manage disk in guest LXC

StickMonster

New Member
Nov 7, 2016
1
0
1
55
I have a spare disk and I want to use it exclusively for a LXC guest. I'd really like to manage it entirely from the guest--create/manage zfs pools, or at least datasets, from within the guest. Is that possible (in a relatively straight forward way)?

It seems like "device mounts points" is close to what I want, but I couldn't work out how to make it behave like I wanted.

Suggestions?
 
LXC is limited VPS and you cannot do everything. You have to use KVM to manage ZFS or others FS inside it.

while this is incorrect (it is possible, but not advisable to lift the default restrictions on what containers are allowed to do), it is a good idea to use "real" VMs for such use cases - containers are restricted for a reason (because of the shared kernel which offers a lot of attack surface).
 
Can you post sources of LXC and custom FS control inside it ?

I don't know what you mean by that.. but if you want to run such an unsupported custom configuration, I suggest checking out the LXC documentation ;)
but again: changing the default security properties of a container should only be done if you really know what you are doing and accept the risks!