[Osaka/Yokohama] Looking for infrastructure/server side engineers!

[Osaka/Yokohama] Looking for infrastructure/server side engineers!

[Deployed by over 500 companies] AWS construction, operation, maintenance, and monitoring services

[Deployed by over 500 companies] AWS construction, operation, maintenance, and monitoring services

[Successor to CentOS] AlmaLinux OS server construction/migration service

[Successor to CentOS] AlmaLinux OS server construction/migration service

[For WordPress only] Cloud server “Web Speed”

[For WordPress only] Cloud server “Web Speed”

[Cheap] Website security automatic diagnosis “Quick Scanner”

[Cheap] Website security automatic diagnosis “Quick Scanner”

[Reservation system development] EDISONE customization development service

[Reservation system development] EDISONE customization development service

[Registration of 100 URLs is 0 yen] Website monitoring service “Appmill”

[Registration of 100 URLs is 0 yen] Website monitoring service “Appmill”

[Compatible with over 200 countries] Global eSIM “Beyond SIM”

[Compatible with over 200 countries] Global eSIM “Beyond SIM”

[If you are traveling, business trip, or stationed in China] Chinese SIM service “Choco SIM”

[If you are traveling, business trip, or stationed in China] Chinese SIM service “Choco SIM”

[Global exclusive service] Beyond's MSP in North America and China

[Global exclusive service] Beyond's MSP in North America and China

[YouTube] Beyond official channel “Biyomaru Channel”

[YouTube] Beyond official channel “Biyomaru Channel”

Vagrant(VirtualBox)で「セッションが開けませんでした」のときはMacTypeを疑え

インフラエンジニアの伊藤です。

検証をするときに大活躍するVagrant。
以前使い方をご紹介しました。
Vagrantで自分だけの検証環境を構築する | 株式会社ビヨンド

で、対象のエラーがこちら。

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'centos67'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: itou_default_1463748220190_31662
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "e4d3fa6f-818f-4b03-a359-54e20ec44c38", "--type", "headless"]

Stderr: VBoxManage.exe: error: The virtual machine 'itou_default_1463748220190_31662' has terminated unexpectedly during startup with exit code -1073741819 (0xc0000005).  More details may be available in 'D:\users\VirtualBox VMs\itou_default_1463748220190_31662\Logs\VBoxHardening.log'
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine

Vagrantが悪いのかなーと色々調べていましたが、
よくよく、VirtualBoxで仮想マシンを作って起動してみると…
virtualboxerror

VirtualBoxでもダメ。ということはVagrantは悪くないのか…?

やったことはこんな感じ。

  • Vagrant再インストール
  • VirtualBox再インストールしても
  • VirtualBoxで使っている「Host-Only Adapter」を無効化
  • アンチウイルスソフト無効化

と、探していくと、こいつが原因がでした。。。僕の中では必須のこのアプリ。
「MacType」 WindowsでMac並のフォントを手に入れよ! | TRAVELING

MacTypeという、フォントをキレイにしてくれるソフトです!
こいつで、VirutalBoxのプロセスをMacTypeの対象外にしてあげると、無事起動しました。

MacTypeでプロセスを除外する手順です。

MacTypeウィザードにて、左下「プロセスマネージャ」を選択します。

MacTypeウィザードにて、左下「プロセスマネージャ」を選択します。

プロセス「VirtualBox」を右クリックし、「このプロセスを除外する」を選択します

プロセス「VirtualBox」を右クリックし、「このプロセスを除外」を選択します

これでOK!
あとはVirtualBoxを一度閉じて起動すると、正常に起動できるはずです。

助かりました。。。

この記事がお役に立てば【 いいね 】のご協力をお願いいたします!
0
読み込み中...
0 票, 平均: 0.00 / 10
2,774
X facebook はてなブックマーク pocket
[2024.6.30 CentOS support ended] CentOS server migration solution

[2024.6.30 CentOS support ended] CentOS server migration solution

[2025.6.30 Amazon Linux 2 support ended] Amazon Linux server migration solution

[2025.6.30 Amazon Linux 2 support ended] Amazon Linux server migration solution

[Osaka/Yokohama] Actively recruiting infrastructure engineers and server side engineers!

[Osaka/Yokohama] Actively recruiting infrastructure engineers and server side engineers!

The person who wrote this article

About the author