Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.
This repository was archived by the owner on Apr 29, 2024. It is now read-only.

if initLXD fails with message: network already in use #5

@tpokorra

Description

@tpokorra

this fails:

lxc network delete lxdbr0
lxc network create lxdbr0 ipv6.address=none ipv4.address=10.0.4.1/24 ipv4.nat=true
Error: The network is currently in use
Error: The network already exists

see the solution in https://discuss.linuxcontainers.org/t/cannot-delete-lxdbr0-and-use-a-manually-created-bridge-etc-network-interfaces-once-sudo-lxd-init-has-set-up-lxdbr0-and-a-container-uses-it/750

lxc profile edit default

I removed the lines and later added them back in:

devices:
  eth0:
    name: eth0
    nictype: bridged
    parent: lxdbr0
    type: nic
  root:
    path: /
    pool: default
    type: disk

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