vagrant init Salmon/Centos-7
[root@vagrant salmon]# vagrant init Salmon/Centos-7
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
[root@vagrant salmon]# vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'Salmon/Centos-7'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'Salmon/Centos-7' is up to date...
==> default: Setting the name of the VM: salmon_default_1566868312479_59849
==> 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...
==> 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
[root@vagrant salmon]# vagrant ssh
Last login: Mon Jan 21 23:02:43 2019 from gateway
[vagrant@localhost ~]$ ip address
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:c2:38:13 brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 brd 10.0.2.255 scope global noprefixroute dynamic eth0
valid_lft 86035sec preferred_lft 86035sec
inet6 fe80::a00:27ff:fec2:3813/64 scope link noprefixroute
valid_lft forever preferred_lft forever
[vagrant@localhost ~]$ hostname
localhost.localdomain
[vagrant@localhost ~]$ uname
Linux
[vagrant@localhost ~]$ uname -a
Linux localhost.localdomain 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[vagrant@localhost ~]$ cat /etc/centos-release
CentOS Linux release 7.6.1810 (Core)
[vagrant@localhost ~]$
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
[root@vagrant salmon]# vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'Salmon/Centos-7'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'Salmon/Centos-7' is up to date...
==> default: Setting the name of the VM: salmon_default_1566868312479_59849
==> 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...
==> 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
[root@vagrant salmon]# vagrant ssh
Last login: Mon Jan 21 23:02:43 2019 from gateway
[vagrant@localhost ~]$ ip address
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:c2:38:13 brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 brd 10.0.2.255 scope global noprefixroute dynamic eth0
valid_lft 86035sec preferred_lft 86035sec
inet6 fe80::a00:27ff:fec2:3813/64 scope link noprefixroute
valid_lft forever preferred_lft forever
[vagrant@localhost ~]$ hostname
localhost.localdomain
[vagrant@localhost ~]$ uname
Linux
[vagrant@localhost ~]$ uname -a
Linux localhost.localdomain 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[vagrant@localhost ~]$ cat /etc/centos-release
CentOS Linux release 7.6.1810 (Core)
[vagrant@localhost ~]$
Comments
Post a Comment