Changeset 1780 in ProjectBuilder


Ignore:
Timestamp:
Jul 30, 2013, 6:41:52 AM (11 years ago)
Author:
Bruno Cornec
Message:
  • Now uses the new qemu syntax for port forwarding (hostfwd)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1749 r1780  
    26732673            }
    26742674            # Always redirect the network and always try to use a 'pb' snapshot
    2675             #$cmd = "$vmcmd $ENV{'PBVMOPT'} -net nic,model=virtio -net user,hostfwd=tcp::$nport-:22 -loadvm pb $vmm"
    2676             $cmd = "$vmcmd $ENV{'PBVMOPT'} -redir tcp:$nport:10.0.2.15:22 $vmm"
     2675            #$cmd = "$vmcmd $ENV{'PBVMOPT'} -net nic,model=virtio -net user,hostfwd=tcp::$nport:22 -loadvm pb $vmm"
     2676            #$cmd = "$vmcmd $ENV{'PBVMOPT'} -redir tcp:$nport:10.0.2.15:22 $vmm"
     2677            $cmd = "$vmcmd $ENV{'PBVMOPT'} -net nic -net user,hostfwd=tcp:127.0.0.1:$nport-:22 $vmm"
    26772678        } elsif ($vmtype eq "xen") {
    26782679        } elsif ($vmtype eq "vmware") {
     
    27002701            } else {
    27012702                # Is the SSH port free? if not kill the existing process using it after a build timeout period
    2702                 my $vmssh = pb_check_ps($tmpcmd,"tcp:$nport:10.0.2.15:22");
     2703                my $vmssh = pb_check_ps($tmpcmd,"tcp:127.0.0.1:$nport-:22");
    27032704                if ($vmssh) {
    27042705                    my $buildtm = $ENV{'PBVMTMOUT'};
     
    38023803            }
    38033804        }
    3804         pb_log(2,"theorlist : ".Dumper(%theorlist)."\n");
     3805        pb_log(2,"theorlist initial: ".Dumper(%theorlist)."\n");
     3806        pb_log(2,"archlist: ".Dumper(%archlist)."\n");
    38053807    }
    38063808    if ($antype eq "Announce") {
     
    38773879            $theorlist{$p} = $theorlist{$p} + 1;
    38783880        }
    3879         pb_log(2,"theorlist : ".Dumper(%theorlist)."\n");
     3881        pb_log(2,"theorlist after check: ".Dumper(%theorlist)."\n");
    38803882    }
    38813883    close(LOG);
     
    39023904                    $package = $arch;
    39033905                    # TODO: If both arch have failed, we just make the last one
    3904                     $arch = $archlist{$t};
     3906                    $arch = $archlist{$t} if (defined $archlist{$t});
    39053907                }
    39063908                my $pbos = pb_distro_get_context("$os-$ver-$arch");
     
    41794181        ($void1, $vmexist, $vmport) = split(/ +/,$_,3);
    41804182        pb_log(2,"pb_check_ps $vmport\n");
    4181         $vmport =~ s/.*\stcp\:([0-9]+)\:10.0.2.15:22.*/$1/;
     4183        $vmport =~ s/.*=tcp\:127\.0\.0\.1\:([0-9]+)-:22.*/$1/;
    41824184        chomp($vmport);
    41834185        pb_log(2,"pb_check_ps found a VM $vmexist using port $vmport\n");
Note: See TracChangeset for help on using the changeset viewer.