Jump to content
funtoo forums
Sign in to follow this  
s4uliu5

LXD/LXC container's config file in Funtoo

Recommended Posts

Hello,

where configuration file of LXD/LXC containers is store  in Funtoo?

According to google that such files, in some other LINUX distributions, are stored in /var/lib/lxc/container/<container>/config or /container/<container>/config,

but no such file exists in Funtoo.

I'm asking this so I would be able, for example, to change from

lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0

to

lxc.network.type = macvlan
lxc.network.macvlan.mode = bridge
lxc.network.flags = up
lxc.network.link = eth0

Thank you,

--

Saulius

Share this post


Link to post
Share on other sites

so it is vital not to confuse yourself with lxc when using lxd. LXD is using db to store all config stuff and can be edited or displayed with lxc config show <container> (lxc is a command coming from LXD, all LXC commands have a hyphen lxc-ls ...)

if using LXD don't even go to /var/lib/lxc/ :)

/var/lib/lxd is your directory

network is controlled with

lxc network

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×