Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

override devices on container creation #566

Open
aivanise opened this issue Nov 16, 2023 · 5 comments
Open

override devices on container creation #566

aivanise opened this issue Nov 16, 2023 · 5 comments

Comments

@aivanise
Copy link

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
Copy link
Owner

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

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
Copy link
Author

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
Copy link

@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
Copy link
Owner

@scubamuc Thank you for your kind words 😄

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
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants