Created
January 25, 2019 20:56
-
-
Save dillera/9cf42b69bbf7535d46fd609a6b4da054 to your computer and use it in GitHub Desktop.
Vagrant VM IP change
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[inside vm] | |
vagrant@booterizer:~/irix_ansible$ date | |
Fri Jan 25 20:41:29 GMT 2019 | |
vagrant@booterizer:~/irix_ansible$ ip a | |
... | |
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 | |
link/ether 08:00:27:61:49:2c brd ff:ff:ff:ff:ff:ff | |
inet 192.168.251.100/24 brd 192.168.251.255 scope global eth1 | |
... | |
[exit ssh] | |
dillera@T430u ~/booterizer (master) $ cat settings.yml | |
booterizer: | |
irixversion: "6.5.30" | |
installmethod: "ftp" | |
installmirror: "https://s3.amazonaws.com" | |
clientname: "oxygen5" | |
clientdomain: "diller.org" | |
network: "192.168.251.0" | |
netmask: "255.255.255.0" | |
hostip: "192.168.251.100" | |
clientip: "192.168.251.34" | |
clientether: "08:00:69:02:EF:E0" | |
bridgenic: "eth0" | |
[edit file- changed: | |
hostip: "192.168.251.100" | |
hostip: "192.168.251.177" | |
and then saved file] | |
dillera@T430u ~/booterizer (master) $ cat settings.yml | |
booterizer: | |
irixversion: "6.5.30" | |
installmethod: "ftp" | |
installmirror: "https://s3.amazonaws.com" | |
clientname: "oxygen5" | |
clientdomain: "diller.org" | |
network: "192.168.251.0" | |
netmask: "255.255.255.0" | |
hostip: "192.168.251.177" | |
clientip: "192.168.251.34" | |
clientether: "08:00:69:02:EF:E0" | |
bridgenic: "eth0" | |
dillera@T430u ~/booterizer (master) $ ping 192.168.251.100 | |
PING 192.168.251.100 (192.168.251.100) 56(84) bytes of data. | |
64 bytes from 192.168.251.100: icmp_seq=1 ttl=64 time=1.80 ms | |
64 bytes from 192.168.251.100: icmp_seq=2 ttl=64 time=0.227 ms | |
^C | |
--- 192.168.251.100 ping statistics --- | |
2 packets transmitted, 2 received, 0% packet loss, time 1001ms | |
rtt min/avg/max/mdev = 0.227/1.016/1.805/0.789 ms | |
dillera@T430u ~/booterizer (master) $ vagrant reload | |
==> default: Attempting graceful shutdown of VM... | |
==> default: Checking if box 'debian/contrib-jessie64' version '8.11.0' is up to date... | |
==> default: Clearing any previously set forwarded ports... | |
==> default: Vagrant has detected a configuration issue which exposes a | |
==> default: vulnerability with the installed version of VirtualBox. The | |
==> default: current guest is configured to use an E1000 NIC type for a | |
==> default: network adapter which is vulnerable in this version of VirtualBox. | |
==> default: Ensure the guest is trusted to use this configuration or update | |
==> default: the NIC type using one of the methods below: | |
==> default: | |
==> default: https://www.vagrantup.com/docs/virtualbox/configuration.html#default-nic-type | |
==> default: https://www.vagrantup.com/docs/virtualbox/networking.html#virtualbox-nic-type | |
==> default: Clearing any previously set network interfaces... | |
==> default: Preparing network interfaces based on configuration... | |
default: Adapter 1: nat | |
default: Adapter 2: bridged | |
==> default: Forwarding ports... | |
default: 22 (guest) => 2222 (host) (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: Machine booted and ready! | |
[default] GuestAdditions 4.3.36 running --- OK. | |
==> default: Checking for guest additions in VM... | |
==> default: Configuring and enabling network interfaces... | |
==> default: Mounting shared folders... | |
default: /vagrant => /home/dillera/booterizer | |
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision` | |
==> default: flag to force provisioning. Provisioners marked to run always will still run. | |
==> default: Machine 'default' has a post `vagrant up` message. This is a message | |
==> default: from the creator of the Vagrantfile, and not from Vagrant itself: | |
==> default: | |
==> default: ["booterizer running at ", "192.168.251.177"] | |
dillera@T430u ~/booterizer (master) $ | |
dillera@T430u ~/booterizer (master) $ ping 192.168.251.100 | |
PING 192.168.251.100 (192.168.251.100) 56(84) bytes of data. | |
^C | |
--- 192.168.251.100 ping statistics --- | |
7 packets transmitted, 0 received, 100% packet loss, time 6003ms | |
dillera@T430u ~/booterizer (master) $ ping 192.168.251.177 | |
PING 192.168.251.177 (192.168.251.177) 56(84) bytes of data. | |
64 bytes from 192.168.251.177: icmp_seq=1 ttl=64 time=0.770 ms | |
64 bytes from 192.168.251.177: icmp_seq=2 ttl=64 time=0.740 ms | |
64 bytes from 192.168.251.177: icmp_seq=3 ttl=64 time=0.737 ms | |
^C | |
--- 192.168.251.177 ping statistics --- | |
3 packets transmitted, 3 received, 0% packet loss, time 1999ms | |
rtt min/avg/max/mdev = 0.737/0.749/0.770/0.014 ms | |
dillera@T430u ~/booterizer (master) $ | |
[ip was changed without incident] | |
$ vagrant -v | |
Vagrant 2.2.3 | |
ii virtualbox 4.3.36-dfsg-1+deb8u1ubuntu1.14.04.1 amd64 x86 virtualization solution - base binaries | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment