diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2015-07-02 18:25:05 +0200 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2015-07-02 18:26:37 +0200 |
commit | 7a7e1e92c322113c3dca9816dd62bbcfb6db783e (patch) | |
tree | 82859b0ec2615368c15ce93b0ca5f3d48c4cc0d9 | |
parent | 7bcf291638705541cf11eb01a091d8f95c8ae21c (diff) |
migrate: open up firewall-cmd on receive side if existsfixmigrate
-rwxr-xr-x | kvm-wrapper.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kvm-wrapper.sh b/kvm-wrapper.sh index dc2cfc1..d303e6d 100755 --- a/kvm-wrapper.sh +++ b/kvm-wrapper.sh @@ -894,6 +894,8 @@ function kvm_receive_migrate_here_vm () { local PORT="$2" + test_exec "$(which firewall-cmd)" && firewall-cmd --add-port $2/tcp --timeout=1h + # KVM_ADDITIONNAL_PARAMS+=" -incoming unix:$RUN_DIR/migrate-$VM_NAME.sock" KVM_ADDITIONNAL_PARAMS+=" -incoming ${KVM_MIGRATE_TRANSPORT:-tcp}:`get_cluster_host $(hostname -s)`:$PORT" FORCE="yes" |