• 0 Posts
  • 11 Comments
Joined 2 years ago
cake
Cake day: June 19th, 2023

help-circle




  • Essentially a container shares the kernel of the host, so uses less resources to run.

    VMs are useful when you need more isolation or a different kernel (or need to add kernel modules).

    For most purposes containers are the easy option.

    I guess I could have a Container with a bind mount to a dataset that I want to be able to share over NFS or SMB, and handle that from whatever OS I put in the Container, right?

    Yep!

    But, I could also have a VM do that, and though it wouldn’t be able to share the data with other VMs, it can do it over NFS, can’t it?

    Also yes, just a more complex setup with more performance penalty due to using NFS to share data into the VM.






  • Migration should be as simple as importing the existing ZFS stuff into the Proxmox OS. Having backups of important data is critical though.

    If I understand correctly, you can specify directories that live on the Proxmox Host, and they appear inside the VM, right?

    Inside a Container, yep. VMs can’t do bind mounts, and would need to use NFS to share existing data from the host to inside the VM.

    How does this compare to using virtual storage?

    Like a VM virtual disk? Those are exclusive to each VM and can’t be shared, so if you want multiple VMs to access the same data then NFS would be needed.

    But containers with bind mounts don’t have that limitation and multiple containers can access the same data (such as media).

    Also, how can I replicate the ZFS pools to an external machine?

    ZFS replication would do that.