MiSTer-devel / mr-fusion

Mr. Fusion - Universal MiSTer SD card image
GNU General Public License v3.0
247 stars 12 forks source link

Vagrant: Unknown configuration section 'disksize'. #9

Closed Phi-Ho closed 3 years ago

Phi-Ho commented 3 years ago

Happy New Year

With the latest Vagrant and VirtualBox and Mr. Fussion, the build process failed, please with the errors messages appended below.

Regards,

phiho

==> default: Successfully added box 'ubuntu/bionic64' (v20210105.0.0) for 'virtualbox'! Installing the 'vagrant-vbguest' plugin. This can take a few minutes... Installed the plugin 'vagrant-vbguest (0.29.0)'! Installing the 'vagrant-vbguest' plugin. This can take a few minutes... Installed the plugin 'vagrant-vbguest (0.29.0)'! Installing the 'vagrant-vbguest' plugin. This can take a few minutes... Installed the plugin 'vagrant-vbguest (0.29.0)'! There are errors in the configuration of this machine. Please fix the following errors and try again:

Vagrant:

michaelshmitty commented 3 years ago

Happy New Year to you too!

You'll need to install the vagrant disk size plugin: https://github.com/sprotheroe/vagrant-disksize

I should review the documentation to include this info. Thanks for opening the issue! Let me know how it goes.

Phi-Ho commented 3 years ago

Hi,

Thank you for the update. I now get this error:

Stderr: VBoxManage.exe: error: WHvCapabilityCodeHypervisorPresent is FALSE! Make sure you have enabled the 'Windows Hypervisor Platform' feature. (VERR_NEM_NOT_AVAILABLE).

FWIW, I am running Windows Server 2019 with HyperV enabled and WSL installed. I also have a couple of Ubuntu VM's under HyperV. In understand that VirtualBox can coexist with HyperV since VirtualBox 6.0, I am running VirtualBox 6.1

Is there any other way I can build Mr Fusion from scratch?

Thank you for your help.

Regards,

phiho

----------------------------------------------- Console output ---------------------------------------------------

PS G:\FPGA\DE10\MisterFPGA\mr-fusion> vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box 'ubuntu/bionic64' version '20210105.0.0' is up to date... ==> default: Clearing any previously set forwarded ports... ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat ==> default: Forwarding ports... default: 22 (guest) => 2222 (host) (adapter 1) ==> default: Running 'pre-boot' VM customizations... ==> default: Booting VM... There was an error while executing VBoxManage, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "c766c64c-c7de-41be-8adb-741b8de2a05d", "--type", "headless"]

Stderr: VBoxManage.exe: error: WHvCapabilityCodeHypervisorPresent is FALSE! Make sure you have enabled the 'Windows Hypervisor Platform' feature. (VERR_NEM_NOT_AVAILABLE). VBoxManage.exe: error: AMD-V is not available (VERR_SVM_NO_SVM) VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole PS G:\FPGA\DE10\MisterFPGA\mr-fusion>

Phi-Ho commented 3 years ago

Hi,

I am trying to build Mr. Fusion from scratch in a Ubuntu 20.04 LTS HyperV VM following the script in Vagrantfile.

apt-get -y update
apt-get -y upgrade
apt-get -y install build-essential git libncurses-dev flex bison

openssl \ libssl-dev dkms libelf-dev libudev-dev libpci-dev libiberty-dev autoconf \ liblz4-tool bc curl gcc git libssl-dev libncurses5-dev lzop make \ unzip exfat-utils

then encountered a problem here:

hph@hph-VM:~$ sudo apt-get build-dep linux Reading package lists... Done E: You must put some 'deb-src' URIs in your sources.list hph@hph-VM:~$

Following the instructions here:

https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel

I added to /etc/apt/sources.list these two lines:

deb-src http://archive.ubuntu.com/ubuntu disco main deb-src http://archive.ubuntu.com/ubuntu disco-updates main

and still get the same errors.

Can you help?

Regards,

phiho

On Thu, Jan 7, 2021 at 2:01 AM Michael Smith notifications@github.com wrote:

Happy New Year to you too!

You'll need to install the vagrant disk size plugin: https://github.com/sprotheroe/vagrant-disksize

I should review the documentation to include this info. Thanks for opening the issue! Let me know how it goes.

On January 6, 2021 10:54:53 PM GMT+01:00, Phi-Ho notifications@github.com wrote:

Happy New Year

With the latest Vagrant and VirtualBox and Mr. Fussion, the build process failed, please with the errors messages appended below.

Regards,

phiho

==> default: Successfully added box 'ubuntu/bionic64' (v20210105.0.0) for 'virtualbox'! Installing the 'vagrant-vbguest' plugin. This can take a few minutes... Installed the plugin 'vagrant-vbguest (0.29.0)'! Installing the 'vagrant-vbguest' plugin. This can take a few minutes... Installed the plugin 'vagrant-vbguest (0.29.0)'! Installing the 'vagrant-vbguest' plugin. This can take a few minutes... Installed the plugin 'vagrant-vbguest (0.29.0)'! There are errors in the configuration of this machine. Please fix the following errors and try again:

Vagrant:

  • Unknown configuration section 'disksize'.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MiSTer-devel/mr-fusion/issues/9#issuecomment-755928121, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDAWSSHN6CQXG7G7TCFW23SYVL4XANCNFSM4VYDVVRQ .

michaelshmitty commented 3 years ago

Hello,

I cannot help you with the Windows related error. I am not familiar with using Vagrant or Virtualbox on that platform. You may have more luck looking into this error on Stack Overflow or the web.

I don't know what is causing the problem when you try to set it up manually on your Ubuntu 20.04 LTS virtual machine. But note that the Vagrantfile uses Ubuntu Bionic Beaver 64-bit which is Ubuntu 18.04 LTS and not 20.04 LTS.

The Vagrantfile for Mr. Fusion uses this Vagrant box: https://app.vagrantup.com/ubuntu/boxes/bionic64 I suggest you try in that particular environment.

Good luck! I will close this issue now because it does not seem to be caused by anything on our end.

Phi-Ho commented 3 years ago

Hello,

Thank you very much for your help.

I found a machine with no HyperV and successfully provision a VM with Vagrant to start learning the process of building Mr Fusion from scratch.

Best regards,

phiho

On Fri, Jan 8, 2021 at 4:39 AM Michael Smith notifications@github.com wrote:

Hello,

I cannot help you with the Windows related error. I am not familiar with using Vagrant or Virtualbox on that platform. You may have more luck looking into this error on Stack Overflow or the web.

I don't know what is causing the problem when you try to set it up manually on your Ubuntu 20.04 LTS virtual machine. But note that the Vagrantfile uses Ubuntu Bionic Beaver 64-bit which is Ubuntu 18.04 LTS and not 20.04 LTS.

The Vagrantfile for Mr. Fusion uses this Vagrant box: https://app.vagrantup.com/ubuntu/boxes/bionic64 I suggest you try in that particular environment.

Good luck! I will close this issue now because it does not seem to be caused by anything on our end.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MiSTer-devel/mr-fusion/issues/9#issuecomment-756655428, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDAWSR3DIOU6OCUZW7LAITSY3HGNANCNFSM4VYDVVRQ .