[SailfishDevel] Qt creator fails to connect to virtual machines

Martin Kampas martin.kampas at jolla.com
Thu Nov 2 07:41:06 UTC 2017


Hello Peter,

Unfortunately this is because your OS is too "stable" :) VirtualBox 4.x support has been broken since Sailfish OS SDK 1707.

As a workaround until this is fixed you can create the following wrapper for VBoxManage:

cat > ~/SailfishOS/bin/VBoxManage <<END
#!/bin/bash

real=$(which -a "$(basename "$0")" |sed -n 2p)
if [[ ! $real ]]; then
    echo "Broken PATH?" >&2
    exit 1
fi

if [[ $1 == "showvminfo" ]]; then
    "$real" "$@" |sed '/^Session type:/ { p; s/type:/name:/ }'
else
    "$real" "$@"
fi
END
chmod +x ~/SailfishOS/bin/VBoxManage

And then use this to launch the IDE

PATH="$HOME/SailfishOS/bin:$PATH" ~/SailfishOS/bin/qtcreator

BR,
Martin

________________________________________
From: Devel [devel-bounces at lists.sailfishos.org] on behalf of Peter Albrecht [pa-dev at gmx.de]
Sent: Wednesday, November 01, 2017 6:36 PM
To: devel at lists.sailfishos.org
Subject: [SailfishDevel] Qt creator fails to connect to virtual machines

Hello list,

I wanted to work on SailfishOS applications, so I installed the "SailfishOS
Application SDK" on my linux desktop.
Everything went fine, but when I wanted to start "Sailfish OS Build Engine" or
"Sailfish OS Emulator" from within Qt Creator, the "General Messages"-Tab of Qt
Creator tells me:

* Error connecting to "Sailfish OS Build Engine" virtual machine: Failed to
  start virtual machine "Sailfish OS Build Engine"
* Error connecting to "Sailfish OS Emulator" virtual machine: Failed to start
  virtual machine "Sailfish OS Emulator"

In file "~/.xsession-errors" I can read:

* MerConnection: "Failed to start virtual machine \"Sailfish OS Build Engine\""
* MerConnection: "Failed to start virtual machine \"Sailfish OS Emulator\""

But nothing more about the Application SDK.


The virtual machines seem to start up:
VirtualBox is telling me that they are running.
The emulator is showing me a SailfishOS GUI, which I can use by swiping like my
Jolla device. And to the Build Engine I can connect via ssh using:
> ssh -i /opt/sailfishos-sdk/vmshare/ssh/private_keys/engine/root -p 2222 root at localhost


Do you have any ideas, what might be the problem? Or which log-files to check?


Versions in use:

 * SDK: SailfishOSSDK-Beta-1709-Qt5-linux-64-offline.run
 * Debian Linux 8 Jessie
 * VirtualBox 4.3.36

Regards,
        Peter
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org


More information about the Devel mailing list