Centos + config.vm.network "private_network", type: "dhcp" => Error: Job for network.service failed because the control process exited with error code

104 views
Skip to first unread message

Stéphane Klein

unread,
Dec 8, 2016, 5:19:12 AM12/8/16
to Vagrant

I have this error:

Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.



with:


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


Full pastebin here: https://gist.github.com/harobed/84d275b30ab928e4753b2c772425feca

I have this error in `journal -xe`:

Dec 08 10:16:30 ceph-client-2 sshd[12198]: lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory


How can I fix that ?

Best regards,
Stéphane

Alvaro Miranda Aguilera

unread,
Dec 10, 2016, 3:15:23 PM12/10/16
to vagra...@googlegroups.com
hello.

Are you using virtualbox?

What network is being created for this? you can check on settings of the VM, network, and select the 2nd interface.

Then on Settings of Virtualbox, network, can you check if the network being used have dhcp enabled?

Thanks
Alvaro.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/b0703308-9bba-4184-ba28-bc22e70aa94d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages