Actually, there are 2 issues about "default" network/storage pool on git hub.
So when starting kimchi we just need to make sure the default network/storage pool are active.
And activate them if needed.
For nested virtualization, the default network will fail to activate as the address is already in use.
In this case, we can get the properly error and automatically edit the default network for the user to get an unused address.So the steps to close issue #302 are:
1) Check if libvirt creates the default network/storage pool by default
1.1) If so, remove this code from kimchi code
2) On Kimchi start up, make sure default network/storage pool are active.
2.1) If network activate fails because of the address is already in use, kimchi automatically update the network address and start it.
-- Thanks and best regards! Sheldon Feng(冯少合)<shaohef@linux.vnet.ibm.com> IBM Linux Technology Center