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>

index | next in thread | raw e-mail

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.html

I have no problem starting up IMUNES or creating network topologies.  However, when I tried  to run a network topology, I would get the following error:


can't use empty string as operand of "&&"
can't use empty string as operand of "&&"
    while executing
"if { (![info exists mpid] || $mpid == "") && $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 following lines in exec.tcl under the remoteStart procedure from 


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


to


if { (![info exists mpid] || $mpid == "") && ($ssh != "") } {
    set mpid [openFwrd [expr $rmPort + 10] $rmPort $userName@$rHost]
}
if { (![info exists epid] || $epid == "") && ($ssh != "") } {
    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 start debugging a program like this.  Does anyone have any ideas on how to resolve this?  Maybe I'm missing something?  Any help would be greatly appreciated!! Thanks!!

Regards,
Mike

home | help

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