turtle0x1 / LxdMosaic

Web interface to manage multiple instance of lxd
http://lxdmosaic.com
GNU General Public License v3.0
595 stars 61 forks source link

override devices on container creation #566

Open aivanise opened 11 months ago

aivanise commented 11 months ago

would it be possible to add device overriding when creating new containers, in lxd 5.19 they introduced storage mode specifying at creation time

https://discourse.ubuntu.com/t/lxd-5-19-has-been-released/39590

basically, I need to be able to do an equivalent of

lxc launch ubuntu:22.04 c1 --device root,initial.zfs.block_mode=true --device root,initial.block.filesystem=ext4

I used to do it with having a separate profile and a separate storage pool just for block mode containers, but this is a lot of overhead now that they have an option to do it at creation time

maybe as extra parameter(s) to machine types?

turtle0x1 commented 11 months ago

Been a while, based on your PP looks like your doing well :smile:

Just regained access Github, so odd timing on the request - i'll try to take a look.

Are you sticking with LXD over Incus? I'm half tempted to switch or support both but i'd be interested in hearing what the community is thinking.

aivanise commented 11 months ago

Heh, I had a haircut couple of months ago to look half decent on the new company website, but alas, the hair grew back and the website is still nowhere in sight ;)

Anywayy, we are still on lxd, mostly due to inertia, right now we're so swamped with work, I don't think anyone even had a proper look if incus already has anything worth looking at. As far as I can see, Stephane is porting everything from lxd to back to incus as soon as it is out, so not sure what is there to support?

scubamuc commented 9 months ago

@turtle0x1

Are you sticking with LXD over Incus? I'm half tempted to switch or support both but i'd be interested in hearing what the community is thinking.

I'm with @aivanise... but "never say never".

The UI that they're all working on is just not what I'm used to. Personally I'd stay with LxdMosaic and would love to see a great Project be continued.

turtle0x1 commented 9 months ago

@scubamuc Thank you for your kind words :smile:

This project isn't abandoned by any means I just haven't had much time to dedicate to it. I do have some ideas that might kick-start my motivation and tick some boxes at work, just hard to find the time - if there is a sec issue or something I'd be happy to fix that immediately.

With this particular request it just seemed quite involved and I haven't had time to review the LXD changes / scope out the changes I need to make.

scubamuc commented 9 months ago

@turtle0x1 thank you for a great project.

The greatest feature of LxdMosaic for my use case is snap. Having LxdMosaic available as a snap together with LXD as a snap is decisive. The ability to install LxdMosaic snap standalone on any machine for administering LXD on a dedicated machine tips the scale.