Ask / Submit
2

Sailfish OS SDK "offline" installer & VirtualBox 6

asked 2019-02-02 03:28:53 +0300

ratijas gravatar image

updated 2019-02-02 13:55:52 +0300

Shortly, they crash together. Apparently installer uses VirtualBox to roll out all the packages, and while doing that I'm getting this error every time I try, after which installer undoes all changes and shuts down:

[268397] perform org.merproject.mersdk operation: Execute
[268397]        - arguments: /bin/vboxmanage, modifyvm, Sailfish OS Build Engine, --ostype, Linux26, --memory, 512, --vram, 10, --ioapic, on, --pae, on, --nic1, nat, --cableconnected1, on, --nictype1, virtio, --natpf1, guestssh,tcp,127.0.0.1,2222,,22, --natpf1, guestwww,tcp,127.0.0.1,8080,,9292, --nic2, intnet, --cableconnected2, on, --intnet2, , --nictype2, virtio, --macaddress2, 08005A11F155
[268399] /bin/vboxmanage" started, arguments: "modifyvm Sailfish OS Build Engine --ostype Linux26 --memory 512 --vram 10 --ioapic on --pae on --nic1 nat --cableconnected1 on --nictype1 virtio --natpf1 guestssh,tcp,127.0.0.1,2222,,22 --natpf1 guestwww,tcp,127.0.0.1,8080,,9292 --nic2 intnet --cableconnected2 on --intnet2  --nictype2 virtio --macaddress2 08005A11F155
[268535] Warning: VBoxManage: error: Empty or null internal network name is not valid
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component NetworkAdapterWrap, interface INetworkAdapter, callee nsISupports
VBoxManage: error: Context: "COMSETTER(InternalNetwork)(Bstr(ValueUnion.psz).raw())" at line 1691 of file VBoxManageModifyVM.cpp

[268535] Done
[268536] Operation \"Execute\" with arguments \"/bin/vboxmanage; modifyvm; Sailfish OS Build Engine; --ostype; Linux26; --memory; 512; --vram; 10; --ioapic; on; --pae; on; --nic1; nat; --cableconnected1; on; --nictype1; virtio; --natpf1; guestssh,tcp,127.0.0.1,2222,,22; --natpf1; guestwww,tcp,127.0.0.1,8080,,9292; --nic2; intnet; --cableconnected2; on; --intnet2; ; --nictype2; virtio; --macaddress2; 08005A11F155\" failed: Не удалось исполнить (неожиданный код завершения: 1): «/bin/vboxmanage modifyvm Sailfish OS Build Engine --ostype Linux26 --memory 512 --vram 10 --ioapic on --pae on --nic1 nat --cableconnected1 on --nictype1 virtio --natpf1 guestssh,tcp,127.0.0.1,2222,,22 --natpf1 guestwww,tcp,127.0.0.1,8080,,9292 --nic2 intnet --cableconnected2 on --intnet2  --nictype2 virtio --macaddress2 08005A11F155»
[268536] Created warning message box "installationErrorWithRetry": "Ошибка программы установки", "Ошибка во время процесса установки (org.merproject.mersdk): Не удалось исполнить (неожиданный код завершения: 1): «/bin/vboxmanage modifyvm Sailfish OS Build Engine --ostype Linux26 --memory 512 --vram 10 --ioapic on --pae on --nic1 nat --cableconnected1 on --nictype1 virtio --natpf1 guestssh,tcp,127.0.0.1,2222,,22 --natpf1 guestwww,tcp,127.0.0.1,8080,,9292 --nic2 intnet --cableconnected2 on --intnet2  --nictype2 virtio --macaddress2 08005A11F155»"

full log available here: https://pastebin.com/99Ju1YRr

  • Sailfish OS SDK: both 1.23 and 1.24
  • VirtualBox: 6.0.4
  • OS: Arch Linux
  • Kernel: x86_64 Linux
  • 4.20.6-arch1-1-ARCH
edit retag flag offensive close delete

Comments

Considering SDK requires VirtualBox version at least 4.1.18, chances are there were incompatible changes to CLI since then. On the other hand, there is clearly --intnet2 option with an empty argument following it (it is there but empty).

ratijas ( 2019-02-02 03:31:13 +0300 )edit

So far, clearly the problem is the presence of the second "incomplete" internet adapter. I wonder, where comes from anyway. Are there installer sources lying around, so I can take a look?

ratijas ( 2019-02-02 14:37:49 +0300 )edit

So, yeah. I ended up writing a wrapper for vboxmanager which removes empty --intnet2 option from arguments. It's ugly but it works.

ratijas ( 2019-02-02 17:06:12 +0300 )edit

I was not able to reproduce this with Ubuntu 18.04 + VirtualBox 6.0.4

vige ( 2019-02-04 09:10:03 +0300 )edit

@vige, good for u.

ratijas ( 2019-02-18 12:29:46 +0300 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2019-02-04 09:47:57 +0300

vige gravatar image

The intnet2 parameter should be the installer value ConfigVariant, i.e. "SailfishOS-SDK". It is also used in other places, and your log shows that the value is empty in also those places.

You are using a custom script (install_rules.js); I believe this is the reason ConfigVariant is not set. Please run the installer without using the script.

edit flag offensive delete publish link more

Comments

Maybe somehow probably it is possible that the problem indeed in using custom rules (well, they worked before, as far as I can tell from the popularity of the AUR package). But I've made a workaround, so I'm good for the time being, and I'm not going through that again.

ratijas ( 2019-02-18 12:34:42 +0300 )edit
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2019-02-02 03:28:53 +0300

Seen: 187 times

Last updated: Feb 02