Add support for LXC containers #138

Closed
opened 2021-07-12 11:44:39 -04:00 by JoshuaBoniface · 3 comments
JoshuaBoniface commented 2021-07-12 11:44:39 -04:00 (Migrated from git.bonifacelabs.ca)

It seem pretty trivial to use Libvirt to manage LXC containers in addition to VMs, e.g. https://gist.github.com/scottslowe/7647800, so I think adding these is useful.

There are a few things to work out:

  1. How PVC should treat these (still call them "VM"s? Make a new category?)

  2. Whether Libvirt can live-migrate containers between hosts (is this a thing?).

  3. How to do storage so that RBD is leveraged rather than host files.

  4. How to handle multiple virtual networks.

  5. How to provision LXC containers (lxc-create only way?) using the provisioner.

It seem pretty trivial to use Libvirt to manage LXC containers in addition to VMs, e.g. https://gist.github.com/scottslowe/7647800, so I think adding these is useful. There are a few things to work out: 1. How PVC should treat these (still call them "VM"s? Make a new category?) 1. Whether Libvirt can live-migrate containers between hosts (is this a thing?). 1. How to do storage so that RBD is leveraged rather than host files. 1. How to handle multiple virtual networks. 1. How to provision LXC containers (`lxc-create` only way?) using the provisioner.
JoshuaBoniface commented 2021-07-23 22:45:47 -04:00 (Migrated from git.bonifacelabs.ca)
  1. I think this should probably be a new API category/CLI group lxc rather than treating them exactly like VMs.

  2. Seems like it is possible. This study investigated timing https://www.diva-portal.org/smash/get/diva2:1085809/FULLTEXT02.pdf and seems to indicate this is possible, but would need to be tested.

3-5 would need to be investigated.

1. I think this should probably be a new API category/CLI group `lxc` rather than treating them exactly like VMs. 2. Seems like it is possible. This study investigated timing https://www.diva-portal.org/smash/get/diva2:1085809/FULLTEXT02.pdf and seems to indicate this is possible, but would need to be tested. 3-5 would need to be investigated.
JoshuaBoniface commented 2021-09-13 02:06:06 -04:00 (Migrated from git.bonifacelabs.ca)

Did more investigation, and this seems to be a pretty involved change that's quite a bit out of scope. Going to close.

Did more investigation, and this seems to be a pretty involved change that's quite a bit out of scope. Going to close.
JoshuaBoniface commented 2021-09-13 02:06:06 -04:00 (Migrated from git.bonifacelabs.ca)

closed

closed
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: parallelvirtualcluster/pvc#138
No description provided.