From e9bd19299f9ebf26c5c88d37b6d99bd40a93309f 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 51a9b60c..6e6fe16f 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: