Skip to content

override devices on container creation #566

Description

@aivanise

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions