Comments (11)
On Mon, Aug 24, 2015 at 8:24 AM, Peter Schiffer [email protected]
wrote:
Any tips for more info, how to debug, or how to fix?
First thing to fix is to remove the plugin version of vagrant-libvirt.
You've already got the system version installed!
Try again after fixing that.
from oh-my-vagrant.
I think that plugin was auto-updated at some point. I had to remove user installed plugin manually by removing gem and gemspec. Now:
$ vagrant plugin list
vagrant-hostmanager (1.5.0)
- Version Constraint: 1.5.0
vagrant-libvirt (0.0.24, system)
But without success. Created new VM with atomic host and it had eth1 turned off.
from oh-my-vagrant.
Any other idea?
from oh-my-vagrant.
Run vlog up ... and see what it says. Also look at /etc/sysconfig/network-scripts/ifcfg-eth1 and paste that file here after it doesn't come up.
from oh-my-vagrant.
Thanks for the tip, I have same updates:
I found out, that there is a new atomic guest plugin in the latest Vagrant. I'm on Fedora 21, and Vagrant packaged there is old (1.7.2), so I've updated to the latest upstream Vagrant rpm (1.7.4). Now, Vagrant detects the atomic guest and correctly configures the second network interface, so after provisioning it's up. But after a reboot, it stays down :-( I've checked rhel-7.1 box and the second iface there stays up after a reboot. The network configuration looks the same in the vagrant.log file from vlog up command. Maybe there's some issue in the atomic OS, not sure.
from oh-my-vagrant.
On Wed, Sep 2, 2015 at 3:59 AM, Peter Schiffer [email protected]
wrote:
Thanks for the tip, I have same updates:
I found out, that there is a new atomic guest plugin in the latest
Vagrant. I'm on Fedora 21, and Vagrant packaged there is old (1.7.2), so
I've updated to the latest upstream Vagrant rpm (1.7.4). Now, Vagrant
detects the atomic guest and correctly configures the second network
interface, so after provisioning it's up. But after a reboot, it stays down
:-( I've checked rhel-7.1 box and the second iface there stays up after a
reboot. The network configuration looks the same in the vagrant.log file
from vlog up command. Maybe there's some issue in the atomic OS, not sure.
Aha! Well now I can help a little bit... There was a bug in Vagrant, that
if the machine had a docker0 interface, things would be broken...
Eg: https://bugzilla.redhat.com/show_bug.cgi?id=1221006 Maybe it was
related?? I thought it was in F21...
Does this help your debugging a bit?
from oh-my-vagrant.
Unfortunately no, I was victim of that bug, but it's result was that the content of the /etc/sysconfig/network-scripts/ifcfg-eth1
file was placed in the /etc/sysconfig/network-scripts/ifcfg-eth0
. Here, the content of these files is correct:
[vagrant@master ~]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="dhcp"
ONBOOT="yes"
TYPE="Ethernet"
PERSISTENT_DHCLIENT="yes"
[vagrant@master ~]$ cat /etc/sysconfig/network-scripts/ifcfg-eth1
#VAGRANT-BEGIN
# The contents below are automatically generated by Vagrant. Do not modify.
NM_CONTROLLED=no
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.168.91.100
NETMASK=255.255.255.0
DEVICE=eth1
PEERDNS=no
#VAGRANT-END
from oh-my-vagrant.
Does this mean you figured out the issue?
On Wed, Sep 2, 2015 at 11:39 AM, Peter Schiffer [email protected]
wrote:
Unfortunately no, I was victim of that bug, but it's result was that the
content of the /etc/sysconfig/network-scripts/ifcfg-eth1 file was placed
in the /etc/sysconfig/network-scripts/ifcfg-eth0. Here, the content of
these files is correct:[vagrant@master ~]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="dhcp"
ONBOOT="yes"
TYPE="Ethernet"
PERSISTENT_DHCLIENT="yes"[vagrant@master ~]$ cat /etc/sysconfig/network-scripts/ifcfg-eth1
#VAGRANT-BEGINThe contents below are automatically generated by Vagrant. Do not modify.
NM_CONTROLLED=no
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.168.91.100
NETMASK=255.255.255.0
DEVICE=eth1
PEERDNS=no
#VAGRANT-END—
Reply to this email directly or view it on GitHub
#117 (comment)
.
from oh-my-vagrant.
No, it means just that the content of the ifcfg files is correct and right after provisioning the networking works OK, but after reboot, the eth1 is down. This is on atomic host. RHEL works fine.
from oh-my-vagrant.
On Wed, Sep 2, 2015 at 11:45 AM, Peter Schiffer [email protected]
wrote:
No, it means just that the content of the ifcfg files is correct and right
after provisioning the networking works OK, but after reboot, the eth1 is
down. This is on atomic host. RHEL works fine.
Can you compare contents of ifcfg-eth1 before/after reboot?
Also look in the logs. Use vlog to do so...
from oh-my-vagrant.
The content of the ifcfg-eth1 file seems the same after reboot and there is nothing strange in the vagrant log. But I suspect the 7.1.0 version of the atomic OS, because in some cases, while doing upgrade, some configuration can be lost. This problem is fixed in newer versions, but I don't have newer vagrant box. So, I'm using workaround, which works pretty fine:
:shell:
- script: chkconfig network on
- script: ifup eth1
I'm closing this for now. I'll post an update if I find something relevant. Thanks for the help.
from oh-my-vagrant.
Related Issues (20)
- Do not try to unsubscribe uninitialized machines HOT 2
- puppet repos by default HOT 1
- /etc/hosts entry for omv HOT 3
- /etc/hosts is not updated on vdestroy HOT 3
- omv --version reports version of Vagrant and not of omv itself HOT 1
- add port forwarding to omv.yaml HOT 2
- [bug] shell script seems broken HOT 2
- Not parseable Vagrantfile in 0.0.31 HOT 5
- Add a new share type for NFSv4
- RFE: Add the ability for the user to specifiy a list of shares
- Problematic /etc/hosts file entry in provisioned VM HOT 7
- [RFE] Ability to configure various libvirt provisioner parameters HOT 5
- How to define shell script in `omv.yaml` HOT 2
- goern, send a patch! HOT 2
- Oh-my-vagrant should consider using official CentOS vagrant box from CentOS community HOT 3
- I should be able to use https://atlas.hashicorp.com/ with omv HOT 4
- Need to put some documentation on why we need patched version of vagrant-hostmanager plugin HOT 3
- Fedora naming schema lead to unidentified atomic host HOT 1
- Ansible runs N number of times (where N=vms.size) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oh-my-vagrant.