The virtual networks are only available to the system libvirt
instance.
Signed-off-by: Daniel P. Berrangé <berrange(a)redhat.com>
---
guests/lcitool | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/guests/lcitool b/guests/lcitool
index 0f60704..9d17f1a 100755
--- a/guests/lcitool
+++ b/guests/lcitool
@@ -511,9 +511,12 @@ class Application:
facts["install_disk_size"],
facts["install_storage_pool"],
)
- network_arg = "network={},model=virtio".format(
- facts["install_network"],
- )
+ if os.geteuid() == 0:
+ network_arg = "network={},model=virtio".format(
+ facts["install_network"],
+ )
+ else:
+ network_arg = "user,model=virtio"
# Different operating systems require different configuration
# files for unattended installation to work, but some operating
--
2.21.0