vagrant box add hashicorp/precise64 --provider hyperv
vagrant up --provider hyperv
vagrant up. Fortunately, you can set up your Vagrantfile to automate things for you. After running
vagrant init, modify your vagrant file with the following:
vagrant initwill create a file that will appear to be full of commented out items. However, there is one line not commented out:
Bringing machine 'default' up with 'hyperv' provider...
==> default: Verifying Hyper-V is enabled...
==> default: Box 'base' could not be found. Attempting to find and install...
default: Box Provider: hyperv
default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'base' (v0) for provider: hyperv
default: Downloading: base
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
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_e70609f244a9ad09df0e760d1859e431 //10.124.157.30/e70609f244a9ad09df0e760d1859e431 /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)
vagrant upis spent cloning the virtual hard drive. A faster way is to use differencing disks with Hyper-V. You can also turn on virtualization extensions, which allow nested virtualization within the VM (i.e. Docker with Hyper-V containers). Here are the lines to add to your Vagrantfile to add these features:
vagrant upthe first time for your new box. Again, VirtualBox doesn't work alongside Hyper-V, so this is a problem.
PS C:\vagrant> vagrant up
==> Provider 'virtualbox' not found. We'll automatically install it now...
The installation process will start below. Human interaction may be
required at some points. If you're uncomfortable with automatically
installing this provider, you can safely Ctrl-C this process and install
==> Downloading VirtualBox 5.0.10...
This may not be the latest version of VirtualBox, but it is a version
that is known to work well. Over time, we'll update the version that
[Environment]::SetEnvironmentVariable("VAGRANT_DEFAULT_PROVIDER", "hyperv", "User")
--provider hypervwhen running
vagrant up. The choice is yours.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.