Subscribed unsubscribe Subscribe Subscribe

hasen's tech life

Twitter: @hasen

Vagrant上で,/etc/init.d/network restartでエラーが出たので,使っていないimageを停止した.

Vagrant上で,/etc/init.d/network restartでエラーが出たので,使っていないimageを停止した.

# error
$ sudo /etc/init.d/network restart
> Bringing up interface eth1: Determining if ip address 192.168.33.10 is already in use for device eth1...
> Error, some other host already uses address 192.168.33.10.
> [FAILED]

$ exit
# 他に起動状態のimageが無いか確認.
$ vagrant global-status
$ cd PATH/TO/TARGET_DIR
$ vagrant halt

# success
$ cd -
$ vagrant ssh
$ sudo /etc/init.d/network restart