vagrant upで容量不足でNo space left on device(RuntimeError)になった

[php]$ vagrant up
Bringing machine ‘default’ up with ‘virtualbox’ provider…
==> default: Clearing any previously set forwarded ports…
==> default: Clearing any previously set network interfaces…
==> default: Preparing network interfaces based on configuration…
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: You are trying to forward to privileged ports (ports <= 1024). Most
==> default: operating systems restrict this to only privileged process (typically
==> default: processes running as an administrative user). This is a warning in case
==> default: the port forwarding doesn’t work. If any problems occur, please try a
==> default: port higher than 1024.
==> default: Forwarding ports…
default: 80 => 80 (adapter 1)
default: 22 => 2222 (adapter 1)
==> default: Running ‘pre-boot’ VM customizations…
==> default: Booting VM…
==> default: Waiting for machine to boot. This may take a few minutes…
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying…
default: Warning: Connection timeout. Retrying…
default: Warning: Connection timeout. Retrying…
default: Warning: Remote connection disconnect. Retrying…
default: Warning: Remote connection disconnect. Retrying…
default: Warning: Remote connection disconnect. Retrying…
default: Warning: Remote connection disconnect. Retrying…
default: Warning: Remote connection disconnect. Retrying…
default: Warning: Remote connection disconnect. Retrying…
==> default: Machine booted and ready!
==> 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
default: prevent things such as shared folders from working properly. If you see
default: shared folder errors, please make sure the guest additions within the
default: virtual machine match the version of VirtualBox you have installed on
default: your host and reload your VM.
default:
default: Guest Additions Version: 4.2.6
default: VirtualBox Version: 5.0
==> default: Configuring and enabling network interfaces…
C:/HashiCorp/Vagrant/embedded/gems/gems/net-scp-1.1.2/lib/net/scp.rb:392:in `await_response_state’:
☺scp: /tmp/vagrant-network-entry_1: No space left on device (RuntimeError)
[/php]

と出たのでvboxadd setupをしてみました。

[php]
[root@vagrant-c5-x86_64 ~]# /etc/init.d/vboxadd setup
Removing existing VirtualBox non-DKMS kernel modules [ OK ]
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module [ OK ]
Building the shared folder support module [ OK ]
Not building the VirtualBox advanced graphics driver as this Linux version is
too old to use it.
Doing non-kernel setup of the Guest Additions [ OK ]
You should restart your guest to make sure the new modules are actually used
[/php]

これでも解決されず、よくよく最初のメッセージを見ると「No space left on device (RuntimeError)」と出ていたので、vagrantの容量が足りない模様でした。

df -hコマンドで見てみると・・・

[php][vagrant@vagrant-c5-x86_64 ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
39G 37G 0 100% /
/dev/sda1 122M 13M 103M 11% /boot
tmpfs 2.5G 0 2.5G 0% /dev/shm[/php]

↑ストレージが100%になっちゃってました。

面倒くさそうでしたが以下のサイト様を参考にvagrantの割当容量を増やす事に。

手順は多かったのですが、記載通りでスムーズに100GB拡張出来ました。やってよかったです。

http://gyagya1111.blogspot.jp/2015/06/vagrantbox.html

※VBoxManage.exeはコマンドプロンプトから実行しました。

実践記事↓

https://normalblog.net/system/vagrant/extension_compression/

今度はvirtualbox圧縮の手順をやってみようと思います。