[libvirt] persistent virtual networks

I seem to remember that, if you use net-define, the network will be persistent and, if you use net-create, the network will not be persistent. I am now running libvirt-1.0.2 on Fedora 18. When I use net-define a network from a template and then do a net-list --all, the network is NOT marked as persistent. If I restart libvirtd.service, then the defined networks are persistent. I noticed that the libvirt-1.0.2 announcement included: - network: bridge: Fix regression when defining persistent networks (Peter Krempa) Do I have a bug to report? Gene

Quoting Gene Czarcinski (gene@czarc.net):
I seem to remember that, if you use net-define, the network will be persistent and, if you use net-create, the network will not be persistent.
I am now running libvirt-1.0.2 on Fedora 18.
When I use net-define a network from a template and then do a net-list --all, the network is NOT marked as persistent. If I restart libvirtd.service, then the defined networks are persistent.
I noticed that the libvirt-1.0.2 announcement included: - network: bridge: Fix regression when defining persistent networks (Peter Krempa)
Do I have a bug to report?
Sounds like it, though I can confirm that the commit you cite above fixed it for me, and 1.0.2 does the right thing here. -serge

On 01/31/13 16:42, Gene Czarcinski wrote:
I seem to remember that, if you use net-define, the network will be persistent and, if you use net-create, the network will not be persistent.
I am now running libvirt-1.0.2 on Fedora 18.
When I use net-define a network from a template and then do a net-list --all, the network is NOT marked as persistent. If I restart libvirtd.service, then the defined networks are persistent.
I noticed that the libvirt-1.0.2 announcement included: - network: bridge: Fix regression when defining persistent networks (Peter Krempa)
Do I have a bug to report?
I tested it again and it seems to work for me. Could you please provide more info? Steps to reproduce, the network XML and possibly debug logs would be great. Thanks Peter
participants (3)
-
Gene Czarcinski
-
Peter Krempa
-
Serge Hallyn