【VirtualBox】ホストオンリーネットワークがないときの対処法

MacでOSを再起動した後にOracle VM VirtualBoxを起動すると、設定したホストオンリーネットワークがなくなっている。

その時の対処法のメモ。

自分のVMはアダプター1にNATを割り当て、
アダプター2にホストオンリーアダプターを割り当てているのだが、ホストオンリーネットワークがないと割り当てることができなくなってしまう。

それでも無理やり起動するとこんなエラーが出る

Failed to create the host-only adapter

これだとネットに繋がらないのでこまる。

解決案としては、ターミナルで以下を実行すると元に戻る。

sudo /Library/StartupItems/VirtualBox/VirtualBox restart

VirtualBox 4.3.0では以下らしい。

sudo launchctl load /Library/LaunchDaemons/org.virtualbox.startup.plist

毎回再起動時にやるのはめんどいな。

mogmet

View Comments

  • I am an investor of gate io, I have consulted a lot of information, I hope to upgrade my investment strategy with a new model. Your article creation ideas have given me a lot of inspiration, but I still have some doubts. I wonder if you can help me? Thanks.

  • Your article helped me a lot, is there any more related content? Thanks!

  • I don't think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.

  • I don't think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.

  • Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

Share
Published by
mogmet