Menu

ERROR (1) occured while enabling console..

2016-05-31
2016-06-01
  • Albert Calero

    Albert Calero - 2016-05-31

    Hi, I am attempting to open a VM's console through vEMan 0.9.6 but I get "ERROR (1) occured while enabling console..". I see VNC is set to true if I execute "esxcli network firewall ruleset list" in my ESXi server (version 5.1.0) and I also added the following three lines into the VM's .vmx file:

    RemoteDisplay.vnc.enabled = "TRUE"
    RemoteDisplay.vnc.port = "5900"
    RemoteDisplay.vnc.password = "ESXiRootPassword"

    And this is my ~/.vEMan/vEMan.log file:


    This is vEMan v0.9.6_BETA


    DEBUG: included >F_CHKESXVER< successfully
    DEBUG: included >F_MGUSR< successfully
    DEBUG: included >F_ADDUSR< successfully
    DEBUG: included >F_MSG< successfully
    DEBUG: included >F_CHGUSR< successfully
    DEBUG: included >F_USERMGR< successfully
    DEBUG: included >F_REVIEWER< successfully
    DEBUG: included >F_NOTREADY< successfully
    DEBUG: included >F_SCANNET< successfully
    DEBUG: included >F_SCANDS< successfully
    DEBUG: included >F_HOSTMGR< successfully
    DEBUG: included >F_SAVEOVFSET< successfully
    DEBUG: included >F_VERSION< successfully
    DEBUG: included >F_HELP< successfully
    DEBUG: included >F_SNAPMGR< successfully
    DEBUG: included >F_VMEDITOR< successfully
    DEBUG: included >F_VMMGR< successfully
    DEBUG: included >F_POWERACT< successfully
    DEBUG: included >F_MAINLOOP< successfully
    DEBUG: included >F_ACTIONS< successfully
    DEBUG: included >F_AUTH< successfully
    DEBUG: included >F_CHKCFG< successfully
    DEBUG: included >F_CONSOLEMGR< successfully
    DEBUG: included >F_CRTCOOKIE< successfully
    DEBUG: included >F_CRTVMLIST< successfully
    DEBUG: included >F_DEPLOVF< successfully
    DEBUG: included >F_DEPLVMX< successfully
    DEBUG: included >F_DETECTVNC< successfully
    DEBUG: included >F_DISABLEVNC< successfully
    DEBUG: included >F_ENABLEVNC< successfully
    DEBUG: included >F_ERR< successfully
    DEBUG: included >F_ESXMGR< successfully
    DEBUG: included >F_GETCFG< successfully
    DEBUG: included >F_GETFREEPORT< successfully
    DEBUG: included >F_GETVMMANUAL< successfully
    DEBUG: included >F_GETVMPATH< successfully
    DEBUG: included >F_LOGIN< successfully
    DEBUG: included >F_MKCFG< successfully
    DEBUG: included >F_MKOVFCFG< successfully
    DEBUG: included >F_OPENCONSOLE< successfully
    DEBUG: included >F_POWER< successfully
    DEBUG: included >F_SELECTVM< successfully
    DEBUG: included >F_SPACECONV< successfully
    DEBUG: included >F_SUSPEND< successfully
    DEBUG: included >F_PARENTF< successfully
    DEBUG: included >F_DEC< successfully
    DEBUG: included >F_DELETEVM< successfully
    DEBUG: checking config...
    DEBUG: checking config reqs..
    DEBUG: Setting file included..
    DEBUG: No source file detected.
    DEBUG: Can't find /home/acalero/.vEMan/10.1.1.10/lastovf.cfg file, nothing to include.
    DEBUG: config reqs checks (F_CHKCFG) finished.
    DEBUG: config ok.
    DEBUG: checking config...
    DEBUG: checking config reqs..
    DEBUG: Setting file included..
    DEBUG: No source file detected.
    DEBUG: Can't find /home/acalero/.vEMan/10.1.1.10/lastovf.cfg file, nothing to include.
    DEBUG: config reqs checks (F_CHKCFG) finished.
    DEBUG: config ok.
    DEBUG: SiemensConvergence
    Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
    DEBUG: FULLVMPATH is:
    DEBUG: woops VM is offline?!
    \C is deprecated in regex; marked by <-- HERE in m/(\C <-- HERE )/ at /usr/lib64/perl5/URI/Escape.pm line 215.
    Possible precedence issue with control flow operator at /usr/share/perl5/VMware/VICommon.pm line 2332.
    length() used on @array (did you mean "scalar(@array)"?) at /usr/lib64/perl5/IO/Compress/Zlib/Extra.pm line 198.
    DEBUG: WOOPS VM seems to be renamed after imported..
    DEBUG: checking config...
    DEBUG: checking config reqs..
    DEBUG: Setting file included..
    DEBUG: No source file detected.
    DEBUG: Can't find /home/acalero/.vEMan/10.1.1.10/lastovf.cfg file, nothing to include.
    DEBUG: config reqs checks (F_CHKCFG) finished.
    DEBUG: config ok.
    Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
    \C is deprecated in regex; marked by <-- HERE in m/(\C <-- HERE )/ at /usr/lib64/perl5/URI/Escape.pm line 215.
    Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
    Possible precedence issue with control flow operator at /usr/share/perl5/VMware/VICommon.pm line 2332.
    length() used on @array (did you mean "scalar(@array)"?) at /usr/lib64/perl5/IO/Compress/Zlib/Extra.pm line 198.
    DEBUG: checking config...
    DEBUG: checking config reqs..
    DEBUG: Setting file included..
    DEBUG: No source file detected.
    DEBUG: Can't find /home/acalero/.vEMan/10.1.1.10/lastovf.cfg file, nothing to include.
    DEBUG: config reqs checks (F_CHKCFG) finished.
    DEBUG: config ok.
    DEBUG: Server Prova.vmx
    DEBUG: FULLVMPATH is:
    DEBUG: woops VM is offline?!
    \C is deprecated in regex; marked by <-- HERE in m/(\C <-- HERE )/ at /usr/lib64/perl5/URI/Escape.pm line 215.
    Possible precedence issue with control flow operator at /usr/share/perl5/VMware/VICommon.pm line 2332.
    length() used on @array (did you mean "scalar(@array)"?) at /usr/lib64/perl5/IO/Compress/Zlib/Extra.pm line 198.
    DEBUG: Detected a VM path (/vmfs/volumes/542d0780-0fc85bae-4f32-0019b9e77647/Server Prova/Server Prova.vmx)
    DEBUG: Detected a VM path (/vmfs/volumes/542d0780-0fc85bae-4f32-0019b9e77647/Server Prova/Server Prova.vmx)
    DEBUG: F_ENABLEVNC - current VNCPORT is
    DEBUG: F_ENABLEVNC - Enforcing console activation without checking...
    DEBUG: checking config...
    DEBUG: checking config reqs..
    DEBUG: Setting file included..
    DEBUG: No source file detected.
    DEBUG: Can't find /home/acalero/.vEMan/10.1.1.10/lastovf.cfg file, nothing to include.
    DEBUG: config reqs checks (F_CHKCFG) finished.
    DEBUG: config ok.
    Doing a full Scan. This will take a while..
    /bin/nc: invalid option -- 'z'
    Ncat: Try `--help' or man(1) ncat for more information, usage options and help. QUITTING.
    Find free port at: 5900
    \C is deprecated in regex; marked by <-- HERE in m/(\C <-- HERE )/ at /usr/lib64/perl5/URI/Escape.pm line 215.
    Possible precedence issue with control flow operator at /usr/share/perl5/VMware/VICommon.pm line 2332.
    Usage: vmware-cmd <options> <vm-cfg-path> <vm-action> <arguments>
    vmware-cmd -s <options> <server-action> <arguments>

     Options:
       Connection Options:
          -H or --server <host>            specifies an ESX host or a vCenter Server
          -h or --vihost <target host>     specifies a target host if host is a virtual center
          -O <port>                        specifies an alternative port
          -Q <protocol>                    specifies an alternative protocol
          -U or --username <username>      specifies a username
          -P or --password <password>      specifies a password
          --sessionfile                    specifies a sessionfile path
          --passthroughauth                specifies a login by sspi option
          --credstore                      specifies to fetch Credential store information
          --encoding                       specifies encoding option
       General Options:
          -h More detailed help.
          -q Quiet. Minimal output
          -v Verbose.
    
     Server Operations:
       vmware-cmd -l
       vmware-cmd -s register <config_file_path> <datacenter> <resource pool>
       vmware-cmd -s unregister <config_file_path>
    
     VM Operations:
       vmware-cmd <cfg> getstate
       vmware-cmd <cfg> start <powerop_mode>
       vmware-cmd <cfg> stop <powerop_mode>
       vmware-cmd <cfg> reset <powerop_mode>
       vmware-cmd <cfg> suspend <powerop_mode>
       vmware-cmd <cfg> setguestinfo <variable> <value>
       vmware-cmd <cfg> getguestinfo <variable>
       vmware-cmd <cfg> getproductinfo <prodinfo>
       vmware-cmd <cfg> connectdevice <device_name>
       vmware-cmd <cfg> disconnectdevice <device_name>
       vmware-cmd <cfg> getconfigfile
       vmware-cmd <cfg> getuptime
       vmware-cmd <cfg> answer
       vmware-cmd <cfg> gettoolslastactive
       vmware-cmd <cfg> hassnapshot
       vmware-cmd <cfg> createsnapshot <name> <description> <quiesce> <memory>
       vmware-cmd <cfg> revertsnapshot
       vmware-cmd <cfg> removesnapshots
    

    Synopsis: /usr/bin/vmware-cmd OPTIONS

    Common VI options:
    --config (variable VI_CONFIG)
    Location of the VI Perl configuration file
    --credstore (variable VI_CREDSTORE)
    Name of the credential store file defaults to <HOME>/.vmware/credstore/vicredentials.xml on Linux and <APPDATA>/VMware/credstore/vicredentials.xml on Windows
    --encoding (variable VI_ENCODING, default 'utf8')
    Encoding: utf8, cp936 (Simplified Chinese), iso-8859-1 (German), shiftjis (Japanese)
    --help
    Display usage information for the script
    --passthroughauth (variable VI_PASSTHROUGHAUTH)
    Attempt to use pass-through authentication
    --passthroughauthpackage (variable VI_PASSTHROUGHAUTHPACKAGE, default 'Negotiate')
    Pass-through authentication negotiation package
    --password (variable VI_PASSWORD)
    Password
    --portnumber (variable VI_PORTNUMBER)
    Port used to connect to server
    --protocol (variable VI_PROTOCOL, default 'https')
    Protocol used to connect to server
    --psc (variable VI_PSC)
    Platform services controller's hostname or IP
    --savesessionfile (variable VI_SAVESESSIONFILE)
    File to save session ID/cookie to utilize
    --server (variable VI_SERVER, default 'localhost')
    VI server to connect to. Required if url is not present
    --servicepath (variable VI_SERVICEPATH, default '/sdk/webService')
    Service path used to connect to server
    --sessionfile (variable VI_SESSIONFILE)
    File containing session ID/cookie to utilize
    --url (variable VI_URL)
    VI SDK URL to connect to. Required if server is not present
    --username (variable VI_USERNAME)
    Username
    --verbose (variable VI_VERBOSE)
    Display additional debugging information
    --version
    Display version information for the script
    Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
    tail: /home/acalero/.vEMan/10.1.1.10/progress.tmp: fichero truncado

    Some help will be appreciated. Many thanks.

    Albert

     

    Last edit: Albert Calero 2016-05-31
  • secure diversITy

    Hi Albert

    you have several issues, first of all please read the FAQ and follow it to get support
    https://sourceforge.net/p/veman/discussion/support/thread/0c98a6f0/
    I need all that information to help you.

    Thanks
    Thomas

     

    Last edit: secure diversITy 2016-06-01

Log in to post a comment.