How to automatically start virtual Networks using virsh?

8,884

Autostarting networks is very easy and similar to autostarting domains: simply run net-autostart instead of net-start.

virsh net-autostart default
Share:
8,884

Related videos on Youtube

Jens Erat
Author by

Jens Erat

Technology savvy, with love of getting (and keeping) large systems running. Convinced of free/libre software. Nerd in computer sciences, but find me outdoors or practicing martial arts in my spare time. Also find me on Xing and LinkedIn.

Updated on September 18, 2022

Comments

  • Jens Erat
    Jens Erat almost 2 years

    Following this answers, configuring domains to autostart using virsh is easy; set aside they fail with following error message:

    error: Failed to start domain [name]
    error: internal error Network 'default' is not active.
    

    I can start this network manually by running virsh net-start default after restarting the host. How to also autostart the "default" network?