Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem: virtual network created by "net-create" disappears after restarting the libvirtd Version-Release number of selected component (if applicable): libvirt-0.10.2-51.el6.x86_64 qemu-kvm-rhev-0.12.1.2-2.457.el6.x86_64 kernel-2.6.32-543.el6.x86_64 How reproducible: 100% Steps to Reproduce: 1.[root@localhost ~]# cat network.xml <network> <name>nat-network</name> <forward dev='eth0' mode='nat'> <interface dev='eth0'/> </forward> <bridge name='virbr1' stp='on' delay='0' /> <ip address='192.168.100.1' netmask='255.255.255.0'> <dhcp> <range start='192.168.100.2' end='192.168.100.254' /> </dhcp> </ip> </network> 2.[root@localhost ~]# virsh net-create network.xml Network nat-network created from network.xml 3.[root@localhost ~]# virsh net-list --all Name State Autostart Persistent -------------------------------------------------- bridge-net inactive no yes default active yes yes nat-network active no no 4.[root@localhost ~]# service libvirtd restart Stopping libvirtd daemon: [ OK ] Starting libvirtd daemon: [ OK ] 5.[root@localhost ~]# virsh net-list --all Name State Autostart Persistent -------------------------------------------------- bridge-net inactive no yes default active yes yes 6.[root@localhost ~]# ll /var/lib/libvirt/network/ total 24 -rw-------. 1 root root 565 Mar 26 14:30 aa.xml -rw-------. 1 root root 579 Mar 26 12:45 default.xml -rw-------. 1 root root 580 Mar 26 13:23 editnet.xml -rw-------. 1 root root 638 Mar 26 14:39 nat-network.xml -rw-------. 1 root root 577 Mar 12 11:39 net-1.xml -rw-------. 1 root root 649 Mar 26 13:31 netboot.xml 7.[root@localhost ~]# ll /var/run/libvirt/network/ total 40 -rw-r--r--. 1 root root 6 Mar 26 14:30 aa.pid -rw-r--r--. 1 root root 6 Mar 26 12:45 default.pid -rw-r--r--. 1 root root 6 Mar 26 13:23 editnet.pid -rw-r--r--. 1 root root 5 Mar 26 12:29 foobar.pid -rw-r--r--. 1 root root 6 Mar 26 14:39 nat-network.pid -rw-r--r--. 1 root root 6 Mar 26 12:05 nattest.pid -rw-r--r--. 1 root root 6 Mar 26 13:31 netboot.pid -rw-r--r--. 1 root root 6 Mar 26 12:15 nettest.pid -rw-r--r--. 1 root root 0 Mar 26 14:40 nwfilter.leases -rw-r--r--. 1 root root 6 Mar 26 12:07 routetest.pid -rw-r--r--. 1 root root 6 Mar 24 16:52 updatenet.pid 8.[root@localhost ~]# ps aux |grep nat-network nobody 13470 0.0 0.0 12892 604 ? S 14:39 0:00 /usr/sbin/dnsmasq --strict-order --pid-file=/var/run/libvirt/network/nat-network.pid --conf-file= --except-interface lo --bind-interfaces --listen-address 192.168.100.1 --dhcp-range 192.168.100.2,192.168.100.254 --dhcp-leasefile=/var/lib/libvirt/dnsmasq/nat-network.leases --dhcp-lease-max=253 --dhcp-no-override --dhcp-hostsfile=/var/lib/libvirt/dnsmasq/nat-network.hostsfile --addn-hosts=/var/lib/libvirt/dnsmasq/nat-network.addnhosts root 13803 0.0 0.0 103252 852 pts/0 S+ 14:40 0:00 grep nat-network Actual results: as steps Expected results: fix it