Hello,
I have a lxdbr0
network and a macvlan
network set up on my LXD. I can launch a new instance and put it on the macvlan network with:
lxc launch ubuntu:22.04 [remote]:test --network macvlan`
and it shows if I look at:
lxc network show [remote]:macvlan
I am trying to find the equivalent configuration to use with OpenTofu/Terraform:
https://registry.terraform.io/providers/terraform-lxd/lxd/latest/docs/resources/instance
The only info in there I could see on configuring the network was:
https://registry.terraform.io/providers/terraform-lxd/lxd/latest/docs/resources/instance#instance-network-access
which didn’t sound like my situation, but I tried anyway:
config = {
"user.access_interface" = "macvlan"
}
and it didn’t work. I suspect I could do it with a profile, but I didn’t want to do that at this stage if I could avoid it. Thanks!