Difference between revisions of "MVM FAQs"

From DAVE Developer's Wiki
Jump to: navigation, search
(Q: I can't start make menuconfig. How to fix it?)
(add solution for OpenSSL/TLS error)
Line 50: Line 50:
 
*<code>libncurses5-dev</code>
 
*<code>libncurses5-dev</code>
 
*<code>libncursesw5-dev</code>.
 
*<code>libncursesw5-dev</code>.
===Is it possible to resize the virtual disk?===
+
===Q: Is it possible to resize the virtual disk?===
 
Yes, but you need to convert the image to VDI format first. For example, see [https://www.jamescoyle.net/how-to/2000-convert-virtual-disk-image-vmware-vmdk-to-virtualbox-vdi this page].
 
Yes, but you need to convert the image to VDI format first. For example, see [https://www.jamescoyle.net/how-to/2000-convert-virtual-disk-image-vmware-vmdk-to-virtualbox-vdi this page].
  
 
Once you have the VDI file, follow the procedure described [https://www.howtogeek.com/124622/how-to-enlarge-a-virtual-machines-disk-in-virtualbox-or-vmware/ here].
 
Once you have the VDI file, follow the procedure described [https://www.howtogeek.com/124622/how-to-enlarge-a-virtual-machines-disk-in-virtualbox-or-vmware/ here].
 +
 +
=== Q: I get an OpenSSL error when accessing resources over TLS, e.g. download using wget on https. How to fix this? ===
 +
This errors is caused when an old version of OpenSSL, e.g. like the one present on an non-updated Ubuntu 12.04, is used to access resources using TLS, e.g.:<syntaxhighlight lang="bash">
 +
dvdk@dvdkVM:~$ wget https://github.com/openssl/openssl/archive/master.zip
 +
--2018-11-15 22:59:47--  https://github.com/openssl/openssl/archive/master.zip
 +
Resolving github.com (github.com)... 140.82.118.3, 140.82.118.4
 +
Connecting to github.com (github.com)|140.82.118.3|:443... connected.
 +
OpenSSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
 +
Unable to establish SSL connection.
 +
 +
</syntaxhighlight>To fix this user just have to updates OpenSSL and related libraries, using the following commands:<syntaxhighlight lang="bash">
 +
sudo apt-get update
 +
sudo apt-get install libssl-dev curl wget openssl
 +
</syntaxhighlight>This is the result:<syntaxhighlight lang="bash">
 +
dvdk@dvdkVM:~$ wget https://github.com/openssl/openssl/archive/master.zip
 +
--2018-11-15 23:02:38--  https://github.com/openssl/openssl/archive/master.zip
 +
Resolving github.com (github.com)... 140.82.118.4, 140.82.118.3
 +
Connecting to github.com (github.com)|140.82.118.4|:443... connected.
 +
HTTP request sent, awaiting response... 302 Found
 +
Location: https://codeload.github.com/openssl/openssl/zip/master [following]
 +
--2018-11-15 23:02:39--  https://codeload.github.com/openssl/openssl/zip/master
 +
Resolving codeload.github.com (codeload.github.com)... 192.30.253.120, 192.30.253.121
 +
Connecting to codeload.github.com (codeload.github.com)|192.30.253.120|:443... connected.
 +
HTTP request sent, awaiting response... 200 OK
 +
Length: unspecified [application/zip]
 +
Saving to: `master.zip'
 +
 +
    [    <=>                                                                                                                                ] 652.482      694K/s
 +
</syntaxhighlight>

Revision as of 22:04, 15 November 2018

Info Box
VirtualMachine.png Applies to MVM

Configuration[edit | edit source]

Q: VirtualBox manager reports the "The shared folder 'xyz' could not be set up" when starting the MVM. How to fix it?[edit | edit source]

This kind of error is due to an incorrect path of the folder(s) shared between the host and the guest machines. The following image shows an example of such an error.


MVM shared folders error1.png


To fix it, just remove the erroneous shared folders as depicted in the following image.


MVM shared folders error2.png

Q: How to configure the network interface of the MVM?[edit | edit source]

Please refer to this page.

Q: How to change the keyboard layout of Lightweight X11 Desktop Environment (LXDE)?[edit | edit source]

  • Modify the file ~/.config/lxsession/LXDE/autostart by adding the following line:
setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll <layout>
  • where <layout> refers to the selected layout (it for Italian, ru for Russian, etc.)
  • Logout and restart the session.

Q: How to use the USB devices connected to the host machine?[edit | edit source]

By default, the USB controller of the MVM (guest machine) is not enabled. To enable it, in the VM VirtualBox Manager right click on the selected MVM end open the Settings item. Them, select the USB item and configure it as shown in the following image.

MVM-add-USB-controller.png

The USB devices which are physically connected to the host machine can be connected to the guest machine with the Devices->USB menu, as shown in the following image.

MVM-USB-host-devices.png

Q: I can't start make menuconfig. How to fix it?[edit | edit source]

If the following error is encountered when trying to configure the Linux kernel via menuconfig

dvdk@vagrant-ubuntu-trusty-64:~/lynx/linux$ make O=../linux-build/ menuconfig
  GEN     /home/dvdk/lynx/linux-build/Makefile
 *** Unable to find the ncurses libraries or the
 *** required header files.
 *** 'make menuconfig' requires the ncurses libraries.
 *** 
 *** Install ncurses (ncurses-devel) and try again.
 *** 
make[2]: *** [scripts/kconfig/dochecklxdialog] Error 1
make[1]: *** [menuconfig] Error 2
make: *** [sub-make] Error 2

, required libraries are missing.

Please install the following packages:

  • libncurses5-dev
  • libncursesw5-dev.

Q: Is it possible to resize the virtual disk?[edit | edit source]

Yes, but you need to convert the image to VDI format first. For example, see this page.

Once you have the VDI file, follow the procedure described here.

Q: I get an OpenSSL error when accessing resources over TLS, e.g. download using wget on https. How to fix this?[edit | edit source]

This errors is caused when an old version of OpenSSL, e.g. like the one present on an non-updated Ubuntu 12.04, is used to access resources using TLS, e.g.:

dvdk@dvdkVM:~$ wget https://github.com/openssl/openssl/archive/master.zip
--2018-11-15 22:59:47--  https://github.com/openssl/openssl/archive/master.zip
Resolving github.com (github.com)... 140.82.118.3, 140.82.118.4
Connecting to github.com (github.com)|140.82.118.3|:443... connected.
OpenSSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Unable to establish SSL connection.

To fix this user just have to updates OpenSSL and related libraries, using the following commands:

sudo apt-get update
sudo apt-get install libssl-dev curl wget openssl

This is the result:

dvdk@dvdkVM:~$ wget https://github.com/openssl/openssl/archive/master.zip
--2018-11-15 23:02:38--  https://github.com/openssl/openssl/archive/master.zip
Resolving github.com (github.com)... 140.82.118.4, 140.82.118.3
Connecting to github.com (github.com)|140.82.118.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/openssl/openssl/zip/master [following]
--2018-11-15 23:02:39--  https://codeload.github.com/openssl/openssl/zip/master
Resolving codeload.github.com (codeload.github.com)... 192.30.253.120, 192.30.253.121
Connecting to codeload.github.com (codeload.github.com)|192.30.253.120|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: `master.zip'

    [    <=>                                                                                                                                ] 652.482      694K/s