- Timestamp:
- Jul 30, 2013, 6:41:52 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r1749 r1780 2673 2673 } 2674 2674 # 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" 2677 2678 } elsif ($vmtype eq "xen") { 2678 2679 } elsif ($vmtype eq "vmware") { … … 2700 2701 } else { 2701 2702 # 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"); 2703 2704 if ($vmssh) { 2704 2705 my $buildtm = $ENV{'PBVMTMOUT'}; … … 3802 3803 } 3803 3804 } 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"); 3805 3807 } 3806 3808 if ($antype eq "Announce") { … … 3877 3879 $theorlist{$p} = $theorlist{$p} + 1; 3878 3880 } 3879 pb_log(2,"theorlist : ".Dumper(%theorlist)."\n");3881 pb_log(2,"theorlist after check: ".Dumper(%theorlist)."\n"); 3880 3882 } 3881 3883 close(LOG); … … 3902 3904 $package = $arch; 3903 3905 # TODO: If both arch have failed, we just make the last one 3904 $arch = $archlist{$t} ;3906 $arch = $archlist{$t} if (defined $archlist{$t}); 3905 3907 } 3906 3908 my $pbos = pb_distro_get_context("$os-$ver-$arch"); … … 4179 4181 ($void1, $vmexist, $vmport) = split(/ +/,$_,3); 4180 4182 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/; 4182 4184 chomp($vmport); 4183 4185 pb_log(2,"pb_check_ps found a VM $vmexist using port $vmport\n");
Note:
See TracChangeset
for help on using the changeset viewer.