Failed to create the host-only adapter










0















I have the problem with vagrant up on my system. I have the error, you can see below. I have tried reinstall VBox, Vagrant, turned of the firewall, сhecked VBox networking driver and restarted host system, but it`s dont working.



Thanks all for help.



There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["hostonlyif", "create"]

Stderr: 0%...
Progress state: E_FAIL
VBoxManage.exe: error: Failed to create the host-only adapter
VBoxManage.exe: error: SetupDiCallClassInstaller (DIF_INSTALLDEVICE) failed
(0x00000002)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component
HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdeclhandleCreate(struct
HandlerArg *)" at line 94 of file VBoxManageHostonly.cpp


VBox version
5.2.22



Vagrant version
2.2.0



Host operating system
Win7 x64



Guest operating system
Ubuntu-16.04.5-desktop-amd64



Vagrantfile



dir = File.dirname(File.expand_path(__FILE__))

require 'yaml'
require "#dir/puphpet/ruby/deep_merge.rb"
require "#dir/puphpet/ruby/to_bool.rb"

configValues = YAML.load_file("#dir/puphpet/config.yaml")

provider = ENV['VAGRANT_DEFAULT_PROVIDER'] ? ENV['VAGRANT_DEFAULT_PROVIDER'] : 'local'
if File.file?("#dir/puphpet/config-#provider.yaml")
custom = YAML.load_file("#dir/puphpet/config-#provider.yaml")
configValues.deep_merge!(custom)
end

if File.file?("#dir/puphpet/config-custom.yaml")
custom = YAML.load_file("#dir/puphpet/config-custom.yaml")
configValues.deep_merge!(custom)
end

data = configValues['vagrantfile']

Vagrant.require_version '>= 1.8.1'

Vagrant.configure('2') do |config|
eval File.read("#dir/puphpet/vagrant/Vagrantfile-#data['target']")
end









share|improve this question


























    0















    I have the problem with vagrant up on my system. I have the error, you can see below. I have tried reinstall VBox, Vagrant, turned of the firewall, сhecked VBox networking driver and restarted host system, but it`s dont working.



    Thanks all for help.



    There was an error while executing `VBoxManage`, a CLI used by Vagrant
    for controlling VirtualBox. The command and stderr is shown below.

    Command: ["hostonlyif", "create"]

    Stderr: 0%...
    Progress state: E_FAIL
    VBoxManage.exe: error: Failed to create the host-only adapter
    VBoxManage.exe: error: SetupDiCallClassInstaller (DIF_INSTALLDEVICE) failed
    (0x00000002)
    VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component
    HostNetworkInterfaceWrap, interface IHostNetworkInterface
    VBoxManage.exe: error: Context: "enum RTEXITCODE __cdeclhandleCreate(struct
    HandlerArg *)" at line 94 of file VBoxManageHostonly.cpp


    VBox version
    5.2.22



    Vagrant version
    2.2.0



    Host operating system
    Win7 x64



    Guest operating system
    Ubuntu-16.04.5-desktop-amd64



    Vagrantfile



    dir = File.dirname(File.expand_path(__FILE__))

    require 'yaml'
    require "#dir/puphpet/ruby/deep_merge.rb"
    require "#dir/puphpet/ruby/to_bool.rb"

    configValues = YAML.load_file("#dir/puphpet/config.yaml")

    provider = ENV['VAGRANT_DEFAULT_PROVIDER'] ? ENV['VAGRANT_DEFAULT_PROVIDER'] : 'local'
    if File.file?("#dir/puphpet/config-#provider.yaml")
    custom = YAML.load_file("#dir/puphpet/config-#provider.yaml")
    configValues.deep_merge!(custom)
    end

    if File.file?("#dir/puphpet/config-custom.yaml")
    custom = YAML.load_file("#dir/puphpet/config-custom.yaml")
    configValues.deep_merge!(custom)
    end

    data = configValues['vagrantfile']

    Vagrant.require_version '>= 1.8.1'

    Vagrant.configure('2') do |config|
    eval File.read("#dir/puphpet/vagrant/Vagrantfile-#data['target']")
    end









    share|improve this question
























      0












      0








      0








      I have the problem with vagrant up on my system. I have the error, you can see below. I have tried reinstall VBox, Vagrant, turned of the firewall, сhecked VBox networking driver and restarted host system, but it`s dont working.



      Thanks all for help.



      There was an error while executing `VBoxManage`, a CLI used by Vagrant
      for controlling VirtualBox. The command and stderr is shown below.

      Command: ["hostonlyif", "create"]

      Stderr: 0%...
      Progress state: E_FAIL
      VBoxManage.exe: error: Failed to create the host-only adapter
      VBoxManage.exe: error: SetupDiCallClassInstaller (DIF_INSTALLDEVICE) failed
      (0x00000002)
      VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component
      HostNetworkInterfaceWrap, interface IHostNetworkInterface
      VBoxManage.exe: error: Context: "enum RTEXITCODE __cdeclhandleCreate(struct
      HandlerArg *)" at line 94 of file VBoxManageHostonly.cpp


      VBox version
      5.2.22



      Vagrant version
      2.2.0



      Host operating system
      Win7 x64



      Guest operating system
      Ubuntu-16.04.5-desktop-amd64



      Vagrantfile



      dir = File.dirname(File.expand_path(__FILE__))

      require 'yaml'
      require "#dir/puphpet/ruby/deep_merge.rb"
      require "#dir/puphpet/ruby/to_bool.rb"

      configValues = YAML.load_file("#dir/puphpet/config.yaml")

      provider = ENV['VAGRANT_DEFAULT_PROVIDER'] ? ENV['VAGRANT_DEFAULT_PROVIDER'] : 'local'
      if File.file?("#dir/puphpet/config-#provider.yaml")
      custom = YAML.load_file("#dir/puphpet/config-#provider.yaml")
      configValues.deep_merge!(custom)
      end

      if File.file?("#dir/puphpet/config-custom.yaml")
      custom = YAML.load_file("#dir/puphpet/config-custom.yaml")
      configValues.deep_merge!(custom)
      end

      data = configValues['vagrantfile']

      Vagrant.require_version '>= 1.8.1'

      Vagrant.configure('2') do |config|
      eval File.read("#dir/puphpet/vagrant/Vagrantfile-#data['target']")
      end









      share|improve this question














      I have the problem with vagrant up on my system. I have the error, you can see below. I have tried reinstall VBox, Vagrant, turned of the firewall, сhecked VBox networking driver and restarted host system, but it`s dont working.



      Thanks all for help.



      There was an error while executing `VBoxManage`, a CLI used by Vagrant
      for controlling VirtualBox. The command and stderr is shown below.

      Command: ["hostonlyif", "create"]

      Stderr: 0%...
      Progress state: E_FAIL
      VBoxManage.exe: error: Failed to create the host-only adapter
      VBoxManage.exe: error: SetupDiCallClassInstaller (DIF_INSTALLDEVICE) failed
      (0x00000002)
      VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component
      HostNetworkInterfaceWrap, interface IHostNetworkInterface
      VBoxManage.exe: error: Context: "enum RTEXITCODE __cdeclhandleCreate(struct
      HandlerArg *)" at line 94 of file VBoxManageHostonly.cpp


      VBox version
      5.2.22



      Vagrant version
      2.2.0



      Host operating system
      Win7 x64



      Guest operating system
      Ubuntu-16.04.5-desktop-amd64



      Vagrantfile



      dir = File.dirname(File.expand_path(__FILE__))

      require 'yaml'
      require "#dir/puphpet/ruby/deep_merge.rb"
      require "#dir/puphpet/ruby/to_bool.rb"

      configValues = YAML.load_file("#dir/puphpet/config.yaml")

      provider = ENV['VAGRANT_DEFAULT_PROVIDER'] ? ENV['VAGRANT_DEFAULT_PROVIDER'] : 'local'
      if File.file?("#dir/puphpet/config-#provider.yaml")
      custom = YAML.load_file("#dir/puphpet/config-#provider.yaml")
      configValues.deep_merge!(custom)
      end

      if File.file?("#dir/puphpet/config-custom.yaml")
      custom = YAML.load_file("#dir/puphpet/config-custom.yaml")
      configValues.deep_merge!(custom)
      end

      data = configValues['vagrantfile']

      Vagrant.require_version '>= 1.8.1'

      Vagrant.configure('2') do |config|
      eval File.read("#dir/puphpet/vagrant/Vagrantfile-#data['target']")
      end






      vagrant virtual-machine virtualbox vagrant-windows






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 12 '18 at 8:21









      AndrewLunewAndrewLunew

      11




      11






















          3 Answers
          3






          active

          oldest

          votes


















          0














          Check this link:



          Failed to open/create the internal network Vagrant on Windows10



          If that doesn't work then the comment 20 on this And this suggests on https://www.virtualbox.org/ticket/14545#comment:20



          Doing the following:



          I was able to work around this problem for me with the following steps:
          Open the VirtualBox Manager GUI.
          Go to File -> Preferences -> Network -> Host-only Networks
          Delete all entries in that list
          Run vagrant up again





          share|improve this answer























          • Thanks for answer, but nothing from it dont help me. But seem I understand in what problem. I haven`t VirtualBox Host only adapter in Network Connections Windows. VirtualBox NDIS6 Bridged Networking driver is have only in properties of "Remote NDIS based Internet Sharing Device" joxi.ru/Dr8Bj8gC46OVP2.jpg

            – AndrewLunew
            Nov 12 '18 at 14:32












          • Also I cant create this host adapter in "Host-only Networks" (VirtualBox GUI) error SetupDiCallClassInstaller (DIF_INSTALLDEVICE) failed (0x00000002).

            – AndrewLunew
            Nov 12 '18 at 14:36



















          0














          I did vagrant up on my host!



          After many tries I was reinstall my Windows. The need Virtual Machine host driver (VirtualBox Host-Only Ethernet Adapter in Windows Networking) was installing only on "clean" system that very curiously for me.



          Vagrant also need Windows PowerShell version older then 3, but Win7 default using 2. You need update Windows Net Framework for install 3 and older version on Win7.



          Good luck!






          share|improve this answer






























            0














            I was driving nuts last 2 days with this problem. Finally found a solution.



            1.The Antivirus was causing the issue



            2.You need to disable to Antivirus services on your windows system (You will need Admin access or get this done from your company IT Person)



            3.Reinstall Docker tool box and start it (Admin mode)
            This works






            share|improve this answer
























              Your Answer






              StackExchange.ifUsing("editor", function ()
              StackExchange.using("externalEditor", function ()
              StackExchange.using("snippets", function ()
              StackExchange.snippets.init();
              );
              );
              , "code-snippets");

              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "1"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53258212%2ffailed-to-create-the-host-only-adapter%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              Check this link:



              Failed to open/create the internal network Vagrant on Windows10



              If that doesn't work then the comment 20 on this And this suggests on https://www.virtualbox.org/ticket/14545#comment:20



              Doing the following:



              I was able to work around this problem for me with the following steps:
              Open the VirtualBox Manager GUI.
              Go to File -> Preferences -> Network -> Host-only Networks
              Delete all entries in that list
              Run vagrant up again





              share|improve this answer























              • Thanks for answer, but nothing from it dont help me. But seem I understand in what problem. I haven`t VirtualBox Host only adapter in Network Connections Windows. VirtualBox NDIS6 Bridged Networking driver is have only in properties of "Remote NDIS based Internet Sharing Device" joxi.ru/Dr8Bj8gC46OVP2.jpg

                – AndrewLunew
                Nov 12 '18 at 14:32












              • Also I cant create this host adapter in "Host-only Networks" (VirtualBox GUI) error SetupDiCallClassInstaller (DIF_INSTALLDEVICE) failed (0x00000002).

                – AndrewLunew
                Nov 12 '18 at 14:36
















              0














              Check this link:



              Failed to open/create the internal network Vagrant on Windows10



              If that doesn't work then the comment 20 on this And this suggests on https://www.virtualbox.org/ticket/14545#comment:20



              Doing the following:



              I was able to work around this problem for me with the following steps:
              Open the VirtualBox Manager GUI.
              Go to File -> Preferences -> Network -> Host-only Networks
              Delete all entries in that list
              Run vagrant up again





              share|improve this answer























              • Thanks for answer, but nothing from it dont help me. But seem I understand in what problem. I haven`t VirtualBox Host only adapter in Network Connections Windows. VirtualBox NDIS6 Bridged Networking driver is have only in properties of "Remote NDIS based Internet Sharing Device" joxi.ru/Dr8Bj8gC46OVP2.jpg

                – AndrewLunew
                Nov 12 '18 at 14:32












              • Also I cant create this host adapter in "Host-only Networks" (VirtualBox GUI) error SetupDiCallClassInstaller (DIF_INSTALLDEVICE) failed (0x00000002).

                – AndrewLunew
                Nov 12 '18 at 14:36














              0












              0








              0







              Check this link:



              Failed to open/create the internal network Vagrant on Windows10



              If that doesn't work then the comment 20 on this And this suggests on https://www.virtualbox.org/ticket/14545#comment:20



              Doing the following:



              I was able to work around this problem for me with the following steps:
              Open the VirtualBox Manager GUI.
              Go to File -> Preferences -> Network -> Host-only Networks
              Delete all entries in that list
              Run vagrant up again





              share|improve this answer













              Check this link:



              Failed to open/create the internal network Vagrant on Windows10



              If that doesn't work then the comment 20 on this And this suggests on https://www.virtualbox.org/ticket/14545#comment:20



              Doing the following:



              I was able to work around this problem for me with the following steps:
              Open the VirtualBox Manager GUI.
              Go to File -> Preferences -> Network -> Host-only Networks
              Delete all entries in that list
              Run vagrant up again






              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Nov 12 '18 at 8:52









              malyymalyy

              66748




              66748












              • Thanks for answer, but nothing from it dont help me. But seem I understand in what problem. I haven`t VirtualBox Host only adapter in Network Connections Windows. VirtualBox NDIS6 Bridged Networking driver is have only in properties of "Remote NDIS based Internet Sharing Device" joxi.ru/Dr8Bj8gC46OVP2.jpg

                – AndrewLunew
                Nov 12 '18 at 14:32












              • Also I cant create this host adapter in "Host-only Networks" (VirtualBox GUI) error SetupDiCallClassInstaller (DIF_INSTALLDEVICE) failed (0x00000002).

                – AndrewLunew
                Nov 12 '18 at 14:36


















              • Thanks for answer, but nothing from it dont help me. But seem I understand in what problem. I haven`t VirtualBox Host only adapter in Network Connections Windows. VirtualBox NDIS6 Bridged Networking driver is have only in properties of "Remote NDIS based Internet Sharing Device" joxi.ru/Dr8Bj8gC46OVP2.jpg

                – AndrewLunew
                Nov 12 '18 at 14:32












              • Also I cant create this host adapter in "Host-only Networks" (VirtualBox GUI) error SetupDiCallClassInstaller (DIF_INSTALLDEVICE) failed (0x00000002).

                – AndrewLunew
                Nov 12 '18 at 14:36

















              Thanks for answer, but nothing from it dont help me. But seem I understand in what problem. I haven`t VirtualBox Host only adapter in Network Connections Windows. VirtualBox NDIS6 Bridged Networking driver is have only in properties of "Remote NDIS based Internet Sharing Device" joxi.ru/Dr8Bj8gC46OVP2.jpg

              – AndrewLunew
              Nov 12 '18 at 14:32






              Thanks for answer, but nothing from it dont help me. But seem I understand in what problem. I haven`t VirtualBox Host only adapter in Network Connections Windows. VirtualBox NDIS6 Bridged Networking driver is have only in properties of "Remote NDIS based Internet Sharing Device" joxi.ru/Dr8Bj8gC46OVP2.jpg

              – AndrewLunew
              Nov 12 '18 at 14:32














              Also I cant create this host adapter in "Host-only Networks" (VirtualBox GUI) error SetupDiCallClassInstaller (DIF_INSTALLDEVICE) failed (0x00000002).

              – AndrewLunew
              Nov 12 '18 at 14:36






              Also I cant create this host adapter in "Host-only Networks" (VirtualBox GUI) error SetupDiCallClassInstaller (DIF_INSTALLDEVICE) failed (0x00000002).

              – AndrewLunew
              Nov 12 '18 at 14:36














              0














              I did vagrant up on my host!



              After many tries I was reinstall my Windows. The need Virtual Machine host driver (VirtualBox Host-Only Ethernet Adapter in Windows Networking) was installing only on "clean" system that very curiously for me.



              Vagrant also need Windows PowerShell version older then 3, but Win7 default using 2. You need update Windows Net Framework for install 3 and older version on Win7.



              Good luck!






              share|improve this answer



























                0














                I did vagrant up on my host!



                After many tries I was reinstall my Windows. The need Virtual Machine host driver (VirtualBox Host-Only Ethernet Adapter in Windows Networking) was installing only on "clean" system that very curiously for me.



                Vagrant also need Windows PowerShell version older then 3, but Win7 default using 2. You need update Windows Net Framework for install 3 and older version on Win7.



                Good luck!






                share|improve this answer

























                  0












                  0








                  0







                  I did vagrant up on my host!



                  After many tries I was reinstall my Windows. The need Virtual Machine host driver (VirtualBox Host-Only Ethernet Adapter in Windows Networking) was installing only on "clean" system that very curiously for me.



                  Vagrant also need Windows PowerShell version older then 3, but Win7 default using 2. You need update Windows Net Framework for install 3 and older version on Win7.



                  Good luck!






                  share|improve this answer













                  I did vagrant up on my host!



                  After many tries I was reinstall my Windows. The need Virtual Machine host driver (VirtualBox Host-Only Ethernet Adapter in Windows Networking) was installing only on "clean" system that very curiously for me.



                  Vagrant also need Windows PowerShell version older then 3, but Win7 default using 2. You need update Windows Net Framework for install 3 and older version on Win7.



                  Good luck!







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 14 '18 at 15:50









                  AndrewLunewAndrewLunew

                  11




                  11





















                      0














                      I was driving nuts last 2 days with this problem. Finally found a solution.



                      1.The Antivirus was causing the issue



                      2.You need to disable to Antivirus services on your windows system (You will need Admin access or get this done from your company IT Person)



                      3.Reinstall Docker tool box and start it (Admin mode)
                      This works






                      share|improve this answer





























                        0














                        I was driving nuts last 2 days with this problem. Finally found a solution.



                        1.The Antivirus was causing the issue



                        2.You need to disable to Antivirus services on your windows system (You will need Admin access or get this done from your company IT Person)



                        3.Reinstall Docker tool box and start it (Admin mode)
                        This works






                        share|improve this answer



























                          0












                          0








                          0







                          I was driving nuts last 2 days with this problem. Finally found a solution.



                          1.The Antivirus was causing the issue



                          2.You need to disable to Antivirus services on your windows system (You will need Admin access or get this done from your company IT Person)



                          3.Reinstall Docker tool box and start it (Admin mode)
                          This works






                          share|improve this answer















                          I was driving nuts last 2 days with this problem. Finally found a solution.



                          1.The Antivirus was causing the issue



                          2.You need to disable to Antivirus services on your windows system (You will need Admin access or get this done from your company IT Person)



                          3.Reinstall Docker tool box and start it (Admin mode)
                          This works







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Jan 14 at 6:32









                          Vineeth Sai

                          2,52371324




                          2,52371324










                          answered Jan 14 at 6:29









                          Dhanush77Dhanush77

                          1




                          1



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53258212%2ffailed-to-create-the-host-only-adapter%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

                              ャフサォクコ ケウ,コ,ワ メ,ロスョノ゙,クネ,フムカヤヲニ,エコ゚ツ ウイオン゙ケワサネォキモュキォウイノンコチ゚メヌナイゥフュ,カヒウネェ ネ,ホノケ,ムュキ ッボーミュハ,チ ツス ィ メウイマヤ,゙ウチ ヅ ロ,ォジヌェ ャヌット ェ,マャ,チナエヒネソキツテ トホヲヲミーァ

                              Node.js puppeteer - Use values from array in a loop to cycle through pages