After:
- Enabling Microsoft Hyper-V, as explained here:
https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v
Temporarily disabling my Anti-Virus software (Avast)
Starting my command line program in Admin mode (eg. "Run as Administrator"),
Starting up Vagrant (2.2.3) with a Hyper-V instance:
$ vagrant up
using the following sample Vagrantfile:
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.provider "hyperv"
config.vm.network "public_network"
config.vm.synced_folder ".", "/vagrant", type: "smb"
config.vm.provider "hyperv" do |h|
h.enable_virtualization_extensions = true
h.linked_clone = true
end
end
Selecting
External Virtual Switch
for theswitch to attach to the Hyper-V instance
,Entering my Windows (Admin) user's username and password when prompted by Vagrant during the startup of the Hyper-V instance
I got the following error:
Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The command attempted was:
mount -t cifs -o uid=1000,gid=1000,sec=ntlm,credentials=/etc/smb_creds_e706...e431 //10.124.157.30/e706...e431 /vagrant
The error output from the last command was:
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
How to fix?
config.vm.network "public_network"
as "networking configurations in the Vagrantfile are completely ignored with Hyper-V" vagrantup.com/docs/hyperv/limitations.html – Ronironica