The provider 'vmware_desktop' could not be found on macos m1 - vagrant

install both vagrant and vmware via homebrew
brew install --cask vagrant
brew install --cask vmware-fusion
verify that everything is installed
➜ ~ vmrun -T ws list
Total running VMs: 0
➜ ~ vagrant -v
Vagrant 2.3.0
set the default provider as vmware_desktop in my .zshrc (and "sourced" it)
export VAGRANT_DEFAULT_PROVIDER=vmware_desktop
initialize a folder and add a box following official get started
vagrant init hashicorp/bionic64
vagrant box add hashicorp/bionic64
and select the option 3) vmware_desktop
finally run vagrant up from the initialised folder and observe the error
The provider 'vmware_desktop' could not be found, but was requested to
back the machine 'default'. Please use a provider that exists.
Vagrant knows about the following providers: docker, hyperv, virtualbox
did I make some mistake in the setup

You miss to install the Vagrant VMWare plugin
First you need to install Vagrant VMware Utility
Then you can install the plugin
vagrant plugin install vagrant-vmware-desktop

Related

Not able to install vagrant and vm

As a part of my course I have to install Virtual Box and Vagrant. So I started by running this in terminal:
sudo apt-get install virtualbox
sudo apt-get install vagrant
Then I downloaded Vagrentfile from this link. Now when I am running vagrant up it is showing this error:
.
you have to enable Intel VT-x or AMD-V virtualization hardware extensions in BIOS. By default it is disabled.
you can take help of this answer

vagrant up failing because of PPA: libapache2-mod-php5

When I try to launch a new development environment running Ubunut in virtualbox I save my framework to a directory in Sites on my mac, then open terminal and cd to the directory with the Vagrantfile before running "vagrant up". After an initial start I get several errors that end in the environment not starting. The error is:
The following packages have unmet dependencies:
libapache2-mod-php5 : Depends: apache2-api-20120211 but it is not installable. PreDepends: apache2 (>= 2.4)
When I try to upgrade the PPA, for example running the code:
sudo add-apt-repository ppa:ondrej/php5
sudo apt-get update
I get the error that add-apt and/or get-app command not found! I do not know what to do.
Vagrantfile and Provision script

GuestAdditions version mismatch

when I use this command:
vagrant up
I obtain this error:
[machine1] GuestAdditions versions on your host (4.3.36) and guest (5.0.10) do not match.
how can I update guest addition from ubuntu shell?
Use the vagrant vbguest plugin
Install the plugin:
vagrant plugin install vagrant-vbguest
Let vagrant up it will install the virtual box client if needed.
If you want to force the installation you can run vagrant vbguest --do install
You need to upgrade your VBoxGuestAdditions ISO either by:
installing/upgrading the package by running:
sudo apt-get install virtualbox-guest-additions-iso
or by downloading ISO file from this Downloads page.
Example for macOS:
sudo wget -O /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso http://download.virtualbox.org/virtualbox/5.0.10/VBoxGuestAdditions_5.0.10.iso
where version of VBoxGuestAdditions (5.0.10) should match installed VirtualBox binaries.
See: How to upgrade to VirtualBox Guest Additions?
Consider also upgrading your VM box by:
vagrant box update
For Linux Ubuntu, also check this page: Setting up VirtualBox Guest Additions.

vagrant up fails with cannot load winrm

I am trying to run a Vagrant box with SQL Server for local development. I am running Fedora 23. The box in question is this.
vagrant up fails with the following error message:
/usr/share/vagrant/plugins/communicators/winrm/shell.rb:9:in `require':
cannot load such file -- winrm (LoadError)
I have tried to install winrm with gem install winrm, and it installs just fine, but vagrant still fails.
The following ruby script runs without errors:
require "winrm"
puts "hello world"
Does anyone know how to fix this?
The winrm and winrm-fs gems are not packaged with Fedora or Debian. You can run:
$ vagrant plugin install winrm
$ vagrant plugin install winrm-fs
(i.e. vagrant plugin install, not gem install).
Note: Using Vagrant version 1.8.1, the winrm gem failed to install and this fixed it:
$ vagrant plugin install winrm --plugin-version 1.8.1
$ vagrant plugin install winrm-fs
Had the same issue:
With Ubuntu Ubuntu 20.04.1 LTS running ruby 2.7.0p0 and Vagrant 2.2.6
The solution that worked for me -
$ vagrant plugin install winrm
$ vagrant plugin install winrm-fs
$ vagrant plugin install winrm-elevated (this additional error showed after the first two were installed)
Not sure what the problem was, but I fixed it by uninstalling vagrant with dnf, and installing the latest version from vagrantup.com. Seems winrm is included in the latest vagrant version.
Same resolution as here: https://groups.google.com/forum/#!topic/vagrant-up/mBYMUHm-YBI
So this is an issue with the Debian packaged version of Vagrant. Installing the DEB package from https://www.vagrantup.com/downloads.html works (both for 1.6.5 and 1.7+).
780036 has been raised with Debian to track this issue.

Is it possible to use Cloudera-Quickstart VM using Vagrant

Is it possible to use the Cloudera Quickstart VM using Vagrant? If possible then how to configure the Vagrantfile?
Assume that in your system you have installed vagrant and VirtualBox from Oracle.
You can either install a vagrant "box" that contains a cloudera quickstart vm or install a, for example, an ubuntu 14.04 vagrant box, and later install the standalone CDH.
Option 1: (recommended) install a ubuntu 14.04 vagrant box, log in the box, install java, and then install CDH:
1) Install vagrant ubuntu 14.04:
> vagrant init ubuntu/trusty64
> vagrant up
2) Log in the machine vagrant ssh
Install Oracle JAVA. I did it in this way:
>sudo apt-get update
>sudo apt-get install python-software-properties
>sudo add-apt-repository ppa:webupd8team/java
>sudo apt-get update
>sudo apt-get install oracle-java8-installer
3) Install CDH. Follow the instructions step by step as here:
http://www.cloudera.com/content/www/en-us/documentation/enterprise/latest/topics/cdh_qs_yarn_pseudo.html
Option 2: You need to install a vagrant "box" that contains a cloudera quickstart vm inside.
Usually, nice experts would already create one for you. Go to
https://atlas.hashicorp.com/boxes/search
and search for "cloudera quickstart". Right now I obtain:
https://atlas.hashicorp.com/quickstart/boxes/cdh
Then, in the machine where you have installed vagrant and virtual box, simply run the command:
vagrant init quickstart/cdh;
vagrant up --provider virtualbox
here "quickstart/cdh" is the name of the box, and can change, depends on your search box results.

Resources