Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jan 2010 16:06:33 -0500
From:      Michael Madigan <mmadigan@nyit.edu>
To:        "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org>
Subject:   IMUNES on FreeBSD 8.0-RELEASE...
Message-ID:  <9097211CB1FE274DB453E08FB78B4DBC339DAC66F7@OWEXMAILBOX-SRV.admin.nyit.edu>

next in thread | raw e-mail | index | archive | help
Hello,

Has anyone been successful in getting IMUNES to run on FreeBSD 8.0-RELEASE?=
  I have been trying and have had no luck.  I followed the directions from =
the following link exactly:

http://www.mail-archive.com/freebsd-virtualization@freebsd.org/msg00156.htm=
l

I have no problem starting up IMUNES or creating network topologies.  Howev=
er, when I tried  to run a network topology, I would get the following erro=
r:


can't use empty string as operand of "&&"
can't use empty string as operand of "&&"
    while executing
"if { (![info exists mpid] || $mpid =3D=3D "") && $ssh } {
    	set mpid [openFwrd [expr $rmPort + 10] $rmPort $userName@$rHost]
    }"
    (procedure "remoteStart" line 33)
    invoked from within
"remoteStart "
    (procedure "nexec" line 7)
    invoked from within
"nexec id -u"
    (procedure "setOperMode" line 11)
    invoked from within
"setOperMode exec"
    invoked from within
".#menubar.#menubar#experiment invoke active"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list $w invoke active]"
    (procedure "tk::MenuInvoke" line 50)
    invoked from within
"tk::MenuInvoke .#menubar.#menubar#experiment 1"
    (command bound to event)


After searching through some of the tcl files, I tried changing the followi=
ng lines in exec.tcl under the remoteStart procedure from=20


if { (![info exists mpid] || $mpid =3D=3D "") && $ssh } {
    set mpid [openFwrd [expr $rmPort + 10] $rmPort $userName@$rHost]
}
if { (![info exists epid] || $epid =3D=3D "") && $ssh } {
    set epid [openFwrd [expr $rePort + 10] $rePort $userName@$rHost]
}


to


if { (![info exists mpid] || $mpid =3D=3D "") && ($ssh !=3D "") } {
    set mpid [openFwrd [expr $rmPort + 10] $rmPort $userName@$rHost]
}
if { (![info exists epid] || $epid =3D=3D "") && ($ssh !=3D "") } {
    set epid [openFwrd [expr $rePort + 10] $rePort $userName@$rHost]
}


I now get past the previous errors, but now I get the following error:

"Cannot open sockets"

I have never done any tcl programming, so I don't have a clue of where to s=
tart debugging a program like this.  Does anyone have any ideas on how to r=
esolve this?  Maybe I'm missing something?  Any help would be greatly appre=
ciated!! Thanks!!

Regards,
Mike=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9097211CB1FE274DB453E08FB78B4DBC339DAC66F7>