From cac866ed1b2ed131b5b49027a299cffad5c11946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 24 Apr 2014 12:57:41 +0200 Subject: [PATCH] core: not not fail network reconnect on HVM without qrexec installed --- core-modules/005QubesNetVm.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core-modules/005QubesNetVm.py b/core-modules/005QubesNetVm.py index 0ead7d43..69af2a86 100644 --- a/core-modules/005QubesNetVm.py +++ b/core-modules/005QubesNetVm.py @@ -154,7 +154,10 @@ class QubesNetVm(QubesVm): # force frontend to forget about this device # module actually will be loaded back by udev, as soon as network is attached - vm.run("modprobe -r xen-netfront xennet", user="root") + try: + vm.run("modprobe -r xen-netfront xennet", user="root") + except: + pass try: vm.attach_network(wait=False)