Skip to contentSkip to conversation

virt: Add more flexible way to specify comm ports host -> guest

PATCH New Lucas Meneghel Rodrigues 1 participant 1 message Jul 1, 2011 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virt: Add more flexible way to specify comm ports host -> guest

When running the virt guest windows tests using the (now default) autotest private bridge, noticed that some ports needed for host and guest communication weren't specified. So, add a config file knob to allow people to specify additional ports to be added to the default firewall configuration. The config tracks some important ports used on tests, such as the remote shell ports and remote shell file transfer ports.

---
 client/tests/kvm/tests_base.cfg.sample |    3 ++
 client/virt/virt_test_setup.py         |   47 +++++++++++++++++++++----------
 2 files changed, 35 insertions(+), 15 deletions(-)
client/tests/kvm/tests_base.cfg.sample +3 -0
index 5313da1..1a86265 100644
@@ -64,6 +64,9 @@ bridge = private
 # be a specific bridge
 # name, such as 'virbr0'
 #bridge = virbr0
+# If you need more ports to be available for comm between host and guest,
+# please add them here
+priv_bridge_ports = 53 67
 run_tcpdump = yes
 
 # Misc
client/virt/virt_test_setup.py +32 -15

53 lines not on this page · raw message

Signature · 1 line
1.7.5.4