Update firewall iptables file during VM start
This commit is contained in:
		
							parent
							
								
									45f84b1713
								
							
						
					
					
						commit
						0a8249d83f
					
				@ -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:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user