-
-
Save harobed/84d275b30ab928e4753b2c772425feca to your computer and use it in GitHub Desktop.
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
$ vagrant up | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Importing base box 'centos/atomic-host'... | |
==> default: Matching MAC address for NAT networking... | |
==> default: Checking if box 'centos/atomic-host' is up to date... | |
==> default: Setting the name of the VM: test_atomic_vagrant_default_1481191320445_89540 | |
==> default: Fixed port collision for 22 => 2222. Now on port 2202. | |
==> default: Clearing any previously set network interfaces... | |
==> default: Preparing network interfaces based on configuration... | |
default: Adapter 1: nat | |
default: Adapter 2: hostonly | |
==> default: Forwarding ports... | |
default: 22 (guest) => 2202 (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:2202 | |
default: SSH username: vagrant | |
default: SSH auth method: private key | |
default: | |
default: Vagrant insecure key detected. Vagrant will automatically replace | |
default: this with a newly generated keypair for better security. | |
default: | |
default: Inserting generated public key within guest... | |
default: Removing insecure key from the guest if it's present... | |
default: Key inserted! Disconnecting and reconnecting using new SSH key... | |
==> default: Machine booted and ready! | |
==> default: Checking for guest additions in VM... | |
default: No guest additions were detected on the base box for this VM! Guest | |
default: additions are required for forwarded ports, shared folders, host only | |
default: networking, and more. If SSH fails on this machine, please install | |
default: the guest additions and repackage the box to continue. | |
default: | |
default: This is not an error message; everything may continue to work properly, | |
default: in which case you may ignore this message. | |
==> default: Setting hostname... | |
==> default: Configuring and enabling network interfaces... | |
The following SSH command responded with a non-zero exit status. | |
Vagrant assumes that this means the command failed! | |
# Down the interface before munging the config file. This might | |
# fail if the interface is not actually set up yet so ignore | |
# errors. | |
/sbin/ifdown 'enp0s8' | |
# Move new config into place | |
mv -f '/tmp/vagrant-network-entry-enp0s8-1481191342-0' '/etc/sysconfig/network-scripts/ifcfg-enp0s8' | |
# attempt to force network manager to reload configurations | |
nmcli c reload || true | |
# Restart network | |
service network restart | |
Stdout from the command: | |
Restarting network (via systemctl): [FAILED] | |
Stderr from the command: | |
usage: ifdown <configuration> | |
Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details. | |
$ vagrant ssh | |
[vagrant@ceph-client-2 ~]$ sudo su | |
bash-4.2# journalctl -xe | |
-- | |
-- Initial RAM disk start-up required 3758345 microseconds. | |
-- | |
-- Userspace start-up required 29246817 microseconds. | |
Dec 08 10:02:39 ceph-client-2 systemd[1]: Unit kdump.service entered failed state. | |
Dec 08 10:02:39 ceph-client-2 systemd[1]: kdump.service failed. | |
Dec 08 10:11:09 ceph-client-2 dhclient[801]: DHCPREQUEST on enp0s8 to 172.28.128.2 port 67 (xid=0x946ace6) | |
Dec 08 10:11:09 ceph-client-2 dhclient[801]: DHCPACK from 172.28.128.2 (xid=0x946ace6) | |
Dec 08 10:11:09 ceph-client-2 NetworkManager[688]: <info> address 172.28.128.12 | |
Dec 08 10:11:09 ceph-client-2 NetworkManager[688]: <info> plen 24 (255.255.255.0) | |
Dec 08 10:11:09 ceph-client-2 NetworkManager[688]: <info> server identifier 172.28.128.2 | |
Dec 08 10:11:09 ceph-client-2 NetworkManager[688]: <info> lease time 1200 | |
Dec 08 10:11:09 ceph-client-2 NetworkManager[688]: <info> (enp0s8): DHCPv4 state changed bound -> bound | |
Dec 08 10:11:09 ceph-client-2 dbus[682]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' | |
Dec 08 10:11:09 ceph-client-2 systemd[1]: Starting Network Manager Script Dispatcher Service... | |
-- Subject: Unit NetworkManager-dispatcher.service has begun start-up | |
-- Defined-By: systemd | |
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel | |
-- | |
-- Unit NetworkManager-dispatcher.service has begun starting up. | |
Dec 08 10:11:09 ceph-client-2 dbus-daemon[682]: dbus[682]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' | |
Dec 08 10:11:09 ceph-client-2 dhclient[801]: bound to 172.28.128.12 -- renewal in 490 seconds. | |
Dec 08 10:11:09 ceph-client-2 dbus[682]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher' | |
Dec 08 10:11:09 ceph-client-2 dbus-daemon[682]: dbus[682]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher' | |
Dec 08 10:11:09 ceph-client-2 nm-dispatcher[12180]: Dispatching action 'dhcp4-change' for enp0s8 | |
Dec 08 10:11:09 ceph-client-2 systemd[1]: Started Network Manager Script Dispatcher Service. | |
-- Subject: Unit NetworkManager-dispatcher.service has finished start-up | |
-- Defined-By: systemd | |
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel | |
-- | |
-- Unit NetworkManager-dispatcher.service has finished starting up. | |
-- | |
-- The start-up result is done. | |
Dec 08 10:13:06 ceph-client-2 chronyd[696]: Selected source 195.154.189.15 | |
Dec 08 10:16:30 ceph-client-2 sshd[12198]: Accepted publickey for vagrant from 10.0.2.2 port 60997 ssh2: RSA 84:e0:0e:af:45:c3:21:10:02:f0:06:81:e5:34:67:75 | |
Dec 08 10:16:30 ceph-client-2 kernel: SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs | |
Dec 08 10:16:30 ceph-client-2 systemd[1]: Created slice user-1000.slice. | |
-- Subject: Unit user-1000.slice has finished start-up | |
-- Defined-By: systemd | |
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel | |
-- | |
-- Unit user-1000.slice has finished starting up. | |
-- | |
-- The start-up result is done. | |
Dec 08 10:16:30 ceph-client-2 systemd[1]: Starting user-1000.slice. | |
-- Subject: Unit user-1000.slice has begun start-up | |
-- Defined-By: systemd | |
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel | |
-- | |
-- Unit user-1000.slice has begun starting up. | |
Dec 08 10:16:30 ceph-client-2 systemd[1]: Started Session 3 of user vagrant. | |
-- Subject: Unit session-3.scope has finished start-up | |
-- Defined-By: systemd | |
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel | |
-- | |
-- Unit session-3.scope has finished starting up. | |
-- | |
-- The start-up result is done. | |
Dec 08 10:16:30 ceph-client-2 systemd-logind[691]: New session 3 of user vagrant. | |
-- Subject: A new session 3 has been created for user vagrant | |
-- Defined-By: systemd | |
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel | |
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat | |
-- | |
-- A new session with the ID 3 has been created for the user vagrant. | |
-- | |
-- The leading process of the session is 12198. | |
Dec 08 10:16:30 ceph-client-2 sshd[12198]: pam_unix(sshd:session): session opened for user vagrant by (uid=0) | |
Dec 08 10:16:30 ceph-client-2 sshd[12198]: pam_lastlog(sshd:session): unable to open /var/log/lastlog: No such file or directory | |
Dec 08 10:16:30 ceph-client-2 systemd[1]: Starting Session 3 of user vagrant. | |
-- Subject: Unit session-3.scope has begun start-up | |
-- Defined-By: systemd | |
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel | |
-- | |
-- Unit session-3.scope has begun starting up. | |
Dec 08 10:16:30 ceph-client-2 sshd[12198]: lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory | |
Dec 08 10:16:30 ceph-client-2 sshd[12198]: lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory | |
Dec 08 10:16:32 ceph-client-2 sudo[12223]: vagrant : TTY=pts/0 ; PWD=/var/home/vagrant ; USER=root ; COMMAND=/bin/su | |
Dec 08 10:16:32 ceph-client-2 su[12224]: (to root) vagrant on pts/0 | |
Dec 08 10:16:32 ceph-client-2 su[12224]: pam_unix(su:session): session opened for user root by vagrant(uid=0) | |
Dec 08 10:16:32 ceph-client-2 su[12224]: pam_lastlog(su:session): file /var/log/lastlog created |
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
Vagrant.configure("2") do |config| | |
config.vm.box = "centos/atomic-host" | |
config.vm.hostname = "ceph-client-2" | |
config.vm.network "private_network", type: "dhcp" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment