После:
- Включение Microsoft Hyper-V, как описано здесь:
https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v
Временное отключение моего антивирусного программного обеспечения (Avast)
Запуск программы командной строки в режиме администратора (например, «Запуск от имени администратора»),
Запуск Vagrant (2.2.3) с экземпляром Hyper-V:
$ vagrant up
с использованием следующего примера 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
Выбор External Virtual Switch
для switch to attach to the Hyper-V instance
,
Ввод имени пользователя и пароля моего пользователя Windows (Admin) по запросу Vagrant во время запуска Hyper-Vэкземпляр
Я получил следующую ошибку:
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)
Как исправить?