From 0a8249d83fe922b1c61ad4588d7891721c30d6cd Mon Sep 17 00:00:00 2001 From: Tomasz Sterna Date: Wed, 2 Mar 2011 15:04:11 +0100 Subject: [PATCH] Update firewall iptables file during VM start --- dom0/qvm-core/qubes.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index cad42f47..b82df6c8 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -552,9 +552,15 @@ class QubesVm(object): self.force_shutdown() raise OSError ("ERROR: Cannot attach to network backend!") + #if verbose: + # print "--> Updating FirewallVMs rules..." + #for vm in qvm_collection.values(): + # if vm.is_fwvm(): + # vm.write_iptables_xenstore_entry() + if verbose: print "--> Starting the VM..." - xend_session.session.xenapi.VM.unpause (self.session_uuid) + xend_session.session.xenapi.VM.unpause (self.session_uuid) # perhaps we should move it before unpause and fork? if debug_console: