Dietpi (stretch) Virtualbox image will not import?

Having issues with your DietPi installation, or, found a bug? Post it here.
User avatar
MichaIng
Site Admin
Posts: 2294
Joined: Sat Nov 18, 2017 6:21 pm

Re: Dietpi (stretch) Virtualbox image will not import?

Post by MichaIng »

Did I understand, setting keyboard layout via dietpi-config and reboot did not have any effect?
If yes, could you try and paste here to output of following commands, choosing you desired layout in the GUI:

dpkg-reconfigure keyboard-configuration
invoke-rc.d keyboard-setup start
cat /etc/default/keyboard

Your VM network settings look like they should, bridged network to host interface/adapter, which allows internet and local SSH to guest, virtio virtual network adapter for guest, no promiscuous mode.
I am not sure, if my VM export includes the host WLAN adapter, that I use here during creation. I am not able to unselect the host adapter, without changing network type or completely disable. But I would keep the settings mentioned above, as they allow all kind of network you usually want. The only thing that needs to be chosen by end user, is the correct host network adapter/interface that provides internet access, if there are more than one available. Of course we can't predict here, as it totally depends on OS etc. etc.

Are there more issues you face with this VM image?
- The keyboard layout issue should be not related to the VM, as the methods to change are the same for all devices. So we will check separately.
- About the default VM network settings, I am open for improvements. Would be great if you could compare the settings you need with the ones your find in our VM image.
User avatar
kaptain_zero
Posts: 39
Joined: Tue Apr 12, 2016 2:51 am

Re: Dietpi (stretch) Virtualbox image will not import?

Post by kaptain_zero »

The linked screenshot shows the results of those commands. The second command showed NO response at all. It appears for some reason that my image is using the "de" layout on the correct keyboard, even though it is set to "us" in dietpi.txt.

The link: https://www.dropbox.com/s/rsat8q9mpl0pd ... d.png?dl=0


The network does work properly, it just asks me to select a different interface name as the one defaulted to in the image is not available on my mahcines.... I only noted that this did not happen with thie older OVA.
User avatar
MichaIng
Site Admin
Posts: 2294
Joined: Sat Nov 18, 2017 6:21 pm

Re: Dietpi (stretch) Virtualbox image will not import?

Post by MichaIng »

Okay, I realized one issue with my image, will upload a new one.

I though during DietPi-Prep, at least as first run setup, "gb" will be set automatically as keyboard layout. But actually it is only overwritten, if something different than "gb" is set in "dietpi.txt": https://github.com/Fourdee/DietPi/blob/ ... 855-L13862

For easier creation I used my native "de" layout, which will then not be overwritten without changing "dietpi.txt" to something different.

But you say now that even setting layout via dietpi.txt to "us" and manually running "dpkg-reconfigure keyboard-configuration", selecting keyboard model and language there, does both not have an effect? I just tested it here on VM and both worked well, even when accessing just via VM (so no physical keyboard attached).
Do you see any error messages during "dpkg-reconfigure keyboard-configuration"?

Does it work with:

Code: Select all

sed -i '/XKBLAYOUT=/c XKBLAYOUT="'"us"'"' /etc/default/keyboard
and reboot?
User avatar
kaptain_zero
Posts: 39
Joined: Tue Apr 12, 2016 2:51 am

Re: Dietpi (stretch) Virtualbox image will not import?

Post by kaptain_zero »

Is there something missing in the command: sed -i '/XKBLAYOUT=/c XKBLAYOUT="'"us"'"' /etc/default/keyboard

I had to CTRL-C to get the prompt back, it never completed.

The new *.OVA still will not import into Virtualbox that is running on a Ubuntu 16.04 system. The error is as before:
Failed to import appliance /home/chris/Desktop/DietPi_VirtualBox-x86_64-(Stretch).ova.

Seeking within the archive failed (VERR_TAR_UNEXPECTED_EOS).

Result Code: VBOX_E_IPRT_ERROR (0x80BB0005)
Component: ApplianceWrap
Interface: IAppliance {8398f026-4add-4474-5bc3-2f9f2140b23e}
https://www.dropbox.com/s/z971nnbu57mcd ... m.png?dl=0

While I am able to import the appliance on a Manjaro Linux system, in Ubuntu, this does not work for me. Another fellow, who attempted it and who let me know about this, is also running Ubuntu Mate 16.04, so the new image you uploaded, did not make any difference with that issue. The old image made with raspbian (?!?!) had no such problem. As this is two separate computers, locations and operators... it appears it is not isolated on just *my* Ubuntu install. I have no problems importing other *.OVA from other sources.... It is an odd error.

As mentioned, the dietpi-config script was able to set the keyboard and language in the end, so it is working now.

Regards

Christian
baz123
Posts: 166
Joined: Thu Jan 12, 2017 9:23 pm

Re: Dietpi (stretch) Virtualbox image will not import?

Post by baz123 »

Have you tried the VirtualBox forums? As the image works on some platforms and not on others, it seems possible it is an underlying issue with VirtualBox on Ubuntu or at least they might know if a particular option is required.
User avatar
MichaIng
Site Admin
Posts: 2294
Joined: Sat Nov 18, 2017 6:21 pm

Re: Dietpi (stretch) Virtualbox image will not import?

Post by MichaIng »

@kaptain_zero:
First of all, the new image is not yet online, sorry for confusion. I granted access to them for Fourdee, who needs to review and upload to: http://dietpi.com/downloads/images/ Then you will find images for VirtualBox and VMware dated 12+. March.
They contain a fix for the first run keyboard layout issue. Apologize for this, at least it worked as expected via dietpi-config.

About the import error, I just found:
https://forums.virtualbox.org/viewtopic.php?f=6&t=77528
https://groups.google.com/forum/#!topic ... WazrlOGz9s
https://stackoverflow.com/questions/484 ... irtual-box

It could be related to wrapping, transferring, storing on different systems/servers, unwrapping somehow.
- First of all try to upgrade your VirtualBox to the latest version. They seem to handle this kind of "EOS" (End Of Stream) issues better with current versions.
- If it does not help, try to extract the .ova file with 7zip and import via 3 extracted files.
- If error still occurs, we need to check if it is related to ovf file format (I use 1.0) or something else, maybe Fourdee did something different there for the older images.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Dietpi (stretch) Virtualbox image will not import?

Post by Fourdee »

MichaIng wrote:If error still occurs, we need to check if it is related to ovf file format (I use 1.0) or something else, maybe Fourdee did something different there for the older images.
New images you created are up (thanks Micha) https://dietpi.com/#download

I believe I may of used OVF 2.0 previously. Hopefully the 1.0 will fix it with older version of VirtualBox?
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
kaptain_zero
Posts: 39
Joined: Tue Apr 12, 2016 2:51 am

Re: Dietpi (stretch) Virtualbox image will not import?

Post by kaptain_zero »

I downloaded the new image, same problem.

Ubuntu is updated to the latest packages in the repos and clicking "about Virtualbox" shows:
5.0.40_Ubuntu r115130

And in my Manjaro install:
5.2.8 r120774 (Qt5.10.1)

For my personal use, I have sworn off Ubuntu and switched to Manjaro, but this does not help other Ubuntu users.

I have created an account on the Virtualbox forums and will be posting some questions there. In the meantime I may remove the Ubuntu sanctioned version of VB and replace it with a virgin copy from Oracle and see if that clears things up.... the only problem is finding the time. <groan>
User avatar
kaptain_zero
Posts: 39
Joined: Tue Apr 12, 2016 2:51 am

Re: Dietpi (stretch) Virtualbox image will not import?

Post by kaptain_zero »

Just a small update.

The new image installs fine in Manjaro and all I have to change at first boot is the wired interface which is dead easy to do (the correct interface is your only option!). Once up, I was able to select the correct keyboard, lanquage and timezone with no issues using dietpi-config.
baz123
Posts: 166
Joined: Thu Jan 12, 2017 9:23 pm

Re: Dietpi (stretch) Virtualbox image will not import?

Post by baz123 »

Did you try downloading the deb from the virtualbox site rather than doing an apt-get? They have a 5.2.8 package or add the virtualbox rep to your sources.
Post Reply