public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: msliu@reynoldstocks.com, libvir-list@redhat.com, kvm@vger.kernel.org
Subject: Re: [libvirt] networking problem
Date: Thu, 2 Nov 2017 09:31:35 +0000	[thread overview]
Message-ID: <20171102093135.GE32533@redhat.com> (raw)
In-Reply-To: <20171102092422.GA5130@stefanha-x1.localdomain>

On Thu, Nov 02, 2017 at 09:24:22AM +0000, Stefan Hajnoczi wrote:
> On Sun, Oct 29, 2017 at 04:07:09AM -0700, msliu@reynoldstocks.com wrote:
> > I have performed following steps:
> > 
> > $ virsh net-destroy default
> > $ virsh net-undefine default
> > 
> > Now I couldn't start guest with following warning popup:
> > Error starting domain: Network not found: no network with matching name
> > 'default'
> > 
> > Please advise how to re-create 'default' instead of reinstalling all
> > guests.
> 
> This is a libvirt question.  I have CCed the libvirt mailing list so you
> can continue discussion there.
> 
> On Red Hat-based distros try reinstalling the
> libvirt-daemon-config-network package.  On Debian-based distros try
> reinstalling the libvirt-daemon-system package.  This should restore the
> /etc/libvirt/qemu/networks/default.xml file that you are missing.

No need to re-install those RPMs - Libvirt leaves a copy of the stock XML
file at /usr/share/libvirt/networks/default.xml.  So just run

  virsh define /usr/share/libvirt/networks/default.xml
  virsh start default


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

  reply	other threads:[~2017-11-02  9:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-29 11:07 networking problem msliu
2017-11-02  9:24 ` Stefan Hajnoczi
2017-11-02  9:31   ` Daniel P. Berrange [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-11-02 15:20 [libvirt] " msliu
2017-11-02 16:39 msliu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171102093135.GE32533@redhat.com \
    --to=berrange@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=libvir-list@redhat.com \
    --cc=msliu@reynoldstocks.com \
    --cc=stefanha@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox