core: not not fail network reconnect on HVM without qrexec installed

This commit is contained in:
Marek Marczykowski-Górecki 2014-04-24 12:57:41 +02:00
parent 3d14fe38e1
commit cac866ed1b

View File

@ -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)