2017-04-03 7 views
0

私はsysprepされたイメージを使用しているので、起動時間が非常に長くなります。私はconfig.vm.boot_timeoutがVirtualBoxでは動作していないが、デバッグで使用中の値を見つけることができませんでした。今朝はHyper-Vを試してみましたが、それは待ち時間を報告しています。設定しようとしているのではありません。非常に小さなVagrantfile(つまり、VirtualBoxプロバイダーと私のすべてのプロビジョナーなし)でシナリオを再作成しました。ウィンドウ上の不快なウィンドウconfig.vm.boot_timeoutが適用されていません

ここ
Vagrant.configure(2) do |config| 
    config.vm.box = 'cdaf/WindowsServerStandard' 
    config.vm.box_check_update = false 
    config.vm.guest = :windows 
    config.vm.communicator = 'winrm' 
    config.vm.boot_timeout = 600 # 10 minutes 
    config.vm.provider 'hyperv' do |hyperv, override| 
    hyperv.memory = 1024 
    hyperv.cpus = 2 
    end 
end 

放浪アップからの出力は、(タイムアウト注意:120秒)である

Bringing machine 'default' up with 'hyperv' provider... 
==> default: Verifying Hyper-V is enabled... 
==> default: Configured startup memory is 1024 
==> default: Configured cpus number is 2 
==> default: Importing a Hyper-V instance 
    default: Cloning virtual hard drive... 
    default: Creating and registering the VM... 
    default: Successfully imported a VM with name: WindowServerStandardGUI 
==> default: Starting the machine... 
==> default: Waiting for the machine to report its IP address... 
    default: Timeout: 120 seconds 
Hyper-V failed to determine your machine's IP address within the 
configured timeout. Please verify the machine properly booted and 
the network works. To do this, open the Hyper-V manager, find your 
virtual machine, and connect to it. 

プラットフォーム

  • ホストゲストがベイグラント1.9.2
  • たWindows 10でWindows Server 2016

答えて

0

ハイパー-vプロバイダの「タイムアウト:120秒」を誤解していました.WiRMタイムアウトではなく、VMがIPアドレスを報告するタイムアウトです。つまり、これを使用して4分に増やすことができます。

hyperv.ip_address_timeout = 240 
関連する問題