We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

Sailfish SDK Can't Get VirtualBox To work

Tracked by Jolla

asked 2019-10-15 04:07:45 +0200

nshiell gravatar image

updated 2020-02-13 16:15:35 +0200

jiit gravatar image

When I install the SDK on Linux when I create a project on Qt Creator

When I click on either of the 2 buttons on the bottom right I see:

No virtual machine with the name "Sailfish OS Build Engine" found. Check your installation.

I did uninstall and reinstall

N.B.

SailfishSDK-2.2.4-linux64-offline.run

Linux saturn 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Other VMs work fine

edit retag flag offensive close delete

Comments

What does command "vboxmanage list vms" say?

Ville Nummela ( 2019-10-15 07:15:42 +0200 )edit

What does command "vboxmanage list vms" say?:

"exTern OS" {c2f5023a-88a9-444f-8808-5cb746c79e5f}

"Kubuntu" {e2c263b1-d39b-4f92-ae5b-a379a55f10bb}

What version of Virtualbox are you using?:

Oracle VM VirtualBox Manager 5.2.34_Ubuntu

nshiell ( 2020-02-13 03:06:03 +0200 )edit
1

So it's clear that neither the build engine or emulator vms are not there.

Could you paste the output of command 'grep -m 1 -A 10 "Build Engine" ~/SailfishOS/InstallationLog.txt" - it might give us some hint on what has went wrong?

Ville Nummela ( 2020-02-13 07:51:49 +0200 )edit

Thanks for the reply, I did install sailfish to /opt/SailfishOS instead of ~/SailfishOS, could that be an issue?

Output of grep -m 1 -A 10 "Build Engine" /opt/SailfishOS/InstallationLog.txt

[162997] - arguments: /usr/bin/VBoxManage, createvm, --name, Sailfish OS Build Engine, --register, --basefolder, /opt/SailfishOS/mersdk, UNDOEXECUTE, /usr/bin/VBoxManage, unregistervm, --delete, Sailfish OS Build Engine, errormessage=Please shutdown the "Sailfish OS Build Engine" VM

[162997] Done

[162998] perform org.merproject.mersdk operation: Execute

[162998] - arguments: /usr/bin/VBoxManage, createvm, --name, Sailfish OS Build Engine, --register, --basefolder, /opt/SailfishOS/mersdk, UNDOEXECUTE, /usr/bin/VBoxManage, unregistervm, --delete, Sailfish OS Build Engine, errormessage=Please shutdown the "Sailfish OS Build Engine" VM

[162998] /usr/bin/VBoxManage" started, arguments: "createvm --name Sailfish OS Build Engine --register --basefolder /opt/SailfishOS/mersdk

[163098] Done

[163098] backup org.merproject.mersdk operation: Execute

[163098] - arguments: /usr/bin/VBoxManage, modifyvm, Sailfish OS Build Engine, --description, ATTENTION: This virtual machine is managed by the Sailfish SDK. Do not try to alter it!

[163098] Done

[163098] perform org.merproject.mersdk operation: Execute

[163098] - arguments: /usr/bin/VBoxManage, modifyvm, Sailfish OS Build Engine, --description, ATTENTION: This virtual machine is managed by the Sailfish SDK. Do not try to alter it!

nshiell ( 2020-02-13 16:41:33 +0200 )edit

4 Answers

Sort by » oldest newest most voted
0

answered 2020-02-17 09:59:52 +0200

HWGe gravatar image

seems so, so when you have SDK installed under /opt, it request sudo permission every time when you access it. Re-install it under default path should solve the problem.

edit flag offensive delete publish link more
0

answered 2020-02-18 18:57:27 +0200

decon gravatar image

I had similar problems with the virtual machines not showing up after installation even though installation finished without errors. After some investigation I found out that it was due to a random number generator bug in the microcode for AMD Ryzen 3000 CPU. Updating the BIOS solved this problem for me. link

edit flag offensive delete publish link more
0

answered 2020-02-18 19:03:51 +0200

nshiell gravatar image

I have got it to work by installing it under my home directory.

There is something wrong because it should work from under /opt <-- that's a reasonable place to install apps.

Installing software inside a home directory on Linux or a Mac is a bad idea.

May have something to do with AppArmor - possibility

edit flag offensive delete publish link more
0

answered 2020-02-19 11:02:06 +0200

martyone gravatar image

tl;dr Sailfish SDK must be installed (somewhere) under user home directory. ~/.local/SailfishSDK is likely to work well.

/opt is a location for system-wide app installation. Sailfish SDK supports per-user installations only and as such it shouldn't use any system-wide location.

One reason for not supporting system-wide installations is that the issue of sharing VirtualBox VMs between users would have to be sorted out somehow. For each VM, there would have to be one system-wide template and per-user writable clones. In most cases there would be just one user on the machine, so all it would add would be wasting disk space a lot.

Furthermore, installing Sailfish SDK outside user home directory is not supported due to the limitations dictated by VirtualBox (in its default configuration).

You should be able to install Sailfish SDK e.g. under $HOME/.local/SailfishSDK if you want to keep your home directory clean.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2019-10-15 04:07:45 +0200

Seen: 795 times

Last updated: Feb 19 '20