Hi,
I am building a new server to migrate my current setup to newer hardware.
Old setup was a linux proxmox based hypervisor with 2 linux and 2 freebsd VMs.
I am building the new one as a freebsd hypervisor. The 2 linux VMs will stay as is. What I am wondering is what would be the best way to deal with the FreeBSD ones.
Services in the FreeBSD VMs are set up in jails. Which means I could easily migrate them to jails on the new host directly, without resorting to virtualization. Should I?
Here's what I have though of so far:
Pros of jails vs VM
- more lightweight, less performance and storage overhead
- better integrated with the host (esp. ZFS) so better performance
Cons
- Isolation is not as good. If I crash the kernel, like I did recently playing with unionfs, I crash the whole host, including the linux VMs.
- That's also a concern security-wise, given some services are Internet-facing.
- Services from both VMs would be mixed on the same management level, although they do not belong to the same users / management. (I manage both but some other admins also manage one VM, but not the other where it's only me.)
A palliative for last point could be the use of hierarchical jails. But that means giving up on fine devfs filtering in service jails (unsupported).
What do you think? How would you do it and why?
I am building a new server to migrate my current setup to newer hardware.
Old setup was a linux proxmox based hypervisor with 2 linux and 2 freebsd VMs.
I am building the new one as a freebsd hypervisor. The 2 linux VMs will stay as is. What I am wondering is what would be the best way to deal with the FreeBSD ones.
Services in the FreeBSD VMs are set up in jails. Which means I could easily migrate them to jails on the new host directly, without resorting to virtualization. Should I?
Here's what I have though of so far:
Pros of jails vs VM
- more lightweight, less performance and storage overhead
- better integrated with the host (esp. ZFS) so better performance
Cons
- Isolation is not as good. If I crash the kernel, like I did recently playing with unionfs, I crash the whole host, including the linux VMs.
- That's also a concern security-wise, given some services are Internet-facing.
- Services from both VMs would be mixed on the same management level, although they do not belong to the same users / management. (I manage both but some other admins also manage one VM, but not the other where it's only me.)
A palliative for last point could be the use of hierarchical jails. But that means giving up on fine devfs filtering in service jails (unsupported).
What do you think? How would you do it and why?