virtualboxを6.0.4から6.0.6に上げたらVERR_SUP_VP_NOT_SIGNED_WITH_BUILD_CERTと言われたときのメモ

https://www.virtualbox.org/ticket/16318

アンインストールして入れなおしたらうまくいったよと上記の記事にあった。

自分はchocolateyを使っているので、Power Shellを管理者モードで立ち上げて、以下。

```
cuninst virtualbox -y
cinst virtualbox -y
```

```
vagrant up
```

インターフェースの許可を3回くらい求められるので、許可許可許可。

動きました。。


けど、ちょっと警告でてますね。

```

Copy iso file C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
Mounting Virtualbox Guest Additions ISO to: /mnt
mount: /mnt: WARNING: device write-protected, mounted read-only.
Installing Virtualbox Guest Additions 6.0.6 - guest version is 5.2.22
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.0.6 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 5.2.22 of VirtualBox Guest Additions...
update-initramfs: Generating /boot/initrd.img-4.15.0-29-generic
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 4.15.0-29-generic.
update-initramfs: Generating /boot/initrd.img-4.15.0-29-generic
VirtualBox Guest Additions: Running kernel modules will not be replaced until
the system is restarted
An error occurred during installation of VirtualBox Guest Additions 6.0.6. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
Unmounting Virtualbox Guest Additions ISO from: /mnt
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   5.2.22
VBoxService inside the vm claims: 6.0.6
Going on, assuming VBoxService is correct...
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   5.2.22
VBoxService inside the vm claims: 6.0.6
Going on, assuming VBoxService is correct...
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
```


## 問題発生

一旦 `halt`して、立ち上げなおしたら、以下の警告。

```
[default] GuestAdditions seems to be installed (6.0.6) correctly, but not running.
```

そして、以下のエラー

```
bash: line 4: setup: command not found
==> default: Checking for guest additions in VM...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

 setup

Stdout from the command:



Stderr from the command:

bash: line 4: setup: command not found
```

ssh で入ることはできるのだけれど、マウントまで実行できてないせいで、/vagrant以下がからっぽ。これは困った。

`vagarnt destroy`からの`vagrant up`なら、またマウントできるのだけど、毎回壊すのも面倒ですし。

### ※2019/4/27追記

以下の対応で動くようになりました。

[Vagrant 2.2.4とvirtualbox 6.0.6の組み合わせでGuestAdditions seems to be installed (6.0.6) correctly, but not running.と言われてマウントに失敗したときのメモ](https://qiita.com/hibohiboo/items/3ef899dd293ee8c747bd)