Vagrant Ubuntu 16.04 network interface issues

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Vagrant Ubuntu 16.04 network interface issues

Travis
Good afternoon, everyone,

I was wondering if anyone has encountered a similar issue. I'm attempting to make a Vagrant default box using a default Ubuntu16.04 qcow2 file. It seems no matter how I change the networking on the Ubuntu qcow2, the Vagrant default box always spins up with "ens5" and "ens6" interfaces. In the /etc/network/interfaces file, the Vagrant box has the correct information from the original Ubuntu qcow2, but again, the Vagrant box doesn't seem to recognize it. If anyone could point to some way to resolve this issue, I'd greatly appreciate it.

Thanks,
Travis

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/6ee971ac-3cb2-4caf-8583-77bd0612bb0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Vagrant Ubuntu 16.04 network interface issues

Travis
To clarify, I'm inexperienced with Vagrant, and I'm following this tutorial.

It has a workaround for the issue, but I haven't found it to work at all.

On Wednesday, October 4, 2017 at 2:46:39 PM UTC-5, Travis wrote:
Good afternoon, everyone,

I was wondering if anyone has encountered a similar issue. I'm attempting to make a Vagrant default box using a default Ubuntu16.04 qcow2 file. It seems no matter how I change the networking on the Ubuntu qcow2, the Vagrant default box always spins up with "ens5" and "ens6" interfaces. In the /etc/network/interfaces file, the Vagrant box has the correct information from the original Ubuntu qcow2, but again, the Vagrant box doesn't seem to recognize it. If anyone could point to some way to resolve this issue, I'd greatly appreciate it.

Thanks,
Travis

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/d5f4a4e5-ab22-4200-b5fd-05537f5ee683%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Vagrant Ubuntu 16.04 network interface issues

Alvaro Miranda Aguilera
In reply to this post by Travis
Hello

Linux moved into changing the name of the interfaces which make things  abit hard.

You can go back to eth0/eth1 if needed, however i am missing more context.

What is happening today that you think is wrong, and what should be the correct
What do you want to do?

all i understand is you are using libvirt/qemu, but other than that is not clear what you want to do.

Thanks
alvaro

Virusvrij. www.avast.com

On Wed, Oct 4, 2017 at 9:46 PM, Travis <[hidden email]> wrote:
Good afternoon, everyone,

I was wondering if anyone has encountered a similar issue. I'm attempting to make a Vagrant default box using a default Ubuntu16.04 qcow2 file. It seems no matter how I change the networking on the Ubuntu qcow2, the Vagrant default box always spins up with "ens5" and "ens6" interfaces. In the /etc/network/interfaces file, the Vagrant box has the correct information from the original Ubuntu qcow2, but again, the Vagrant box doesn't seem to recognize it. If anyone could point to some way to resolve this issue, I'd greatly appreciate it.

Thanks,
Travis

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/6ee971ac-3cb2-4caf-8583-77bd0612bb0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0ezVuL3crRj9KYC0iRYmbUYmvXbRiYhraGCOp%2BCcGh5GLw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Vagrant Ubuntu 16.04 network interface issues

Travis
Thanks for your reply, Alvaro,

The issue isn't with the naming conventions that have changed, it's with the networking not being successfully copied over.

From my, albeit limited, understanding, the original virtual machine I create, which is a Ubuntu 16.04 box, should have it's networking and other configurations copied over when I issue the following commands:

tar czvf ubuntu1604.box ./metadata.json ./Vagrantfile ./box.img

vagrant box add --name ubuntu1604 ubuntu1604.box

However, when I issue the command:

vagrant up

The machine hangs when trying to acquire an IP address.

I've gotten into the vagrant vm using virt-manager and it does have the right information copied over from the base image (Ubuntu VM) in the /etc/network/interfaces file, but when I do a ifconfig -a, instead of the interface being "ens3", I have two interfaces "ens5" and "ens6" with no network connectivity.

The original VM is on configured on a NAT with a private static ip, and I've tried it with dhcp as well and encounter the same issue.

I've attached my Vagrant files.

Thanks



On Thursday, October 5, 2017 at 3:06:35 AM UTC-5, Alvaro Miranda Aguilera wrote:
Hello

Linux moved into changing the name of the interfaces which make things  abit hard.

You can go back to eth0/eth1 if needed, however i am missing more context.

What is happening today that you think is wrong, and what should be the correct
What do you want to do?

all i understand is you are using libvirt/qemu, but other than that is not clear what you want to do.

Thanks
alvaro

<a href="https://www.avast.com/sig-email?utm_medium=email&amp;utm_source=link&amp;utm_campaign=sig-email&amp;utm_content=webmail" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.avast.com%2Fsig-email%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Dwebmail\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFuftbSgu95389HmI-4V1nVL3tGJw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.avast.com%2Fsig-email%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Dwebmail\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFuftbSgu95389HmI-4V1nVL3tGJw&#39;;return true;"> Virusvrij. <a href="https://www.avast.com/sig-email?utm_medium=email&amp;utm_source=link&amp;utm_campaign=sig-email&amp;utm_content=webmail" style="color:#4453ea" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.avast.com%2Fsig-email%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Dwebmail\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFuftbSgu95389HmI-4V1nVL3tGJw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.avast.com%2Fsig-email%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Dwebmail\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFuftbSgu95389HmI-4V1nVL3tGJw&#39;;return true;">www.avast.com
<a href="#CAHqq0ezVuL3crRj9KYC0iRYmbUYmvXbRiYhraGCOp+CcGh5GLw@mail.gmail.com_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1" rel="nofollow" onmousedown="this.href=&#39;#CAHqq0ezVuL3crRj9KYC0iRYmbUYmvXbRiYhraGCOp+CcGh5GLw@mail.gmail.com_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2&#39;;return true;" onclick="this.href=&#39;#CAHqq0ezVuL3crRj9KYC0iRYmbUYmvXbRiYhraGCOp+CcGh5GLw@mail.gmail.com_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2&#39;;return true;">

On Wed, Oct 4, 2017 at 9:46 PM, Travis <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="4Y4gTldiAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">tpw...@...> wrote:
Good afternoon, everyone,

I was wondering if anyone has encountered a similar issue. I'm attempting to make a Vagrant default box using a default Ubuntu16.04 qcow2 file. It seems no matter how I change the networking on the Ubuntu qcow2, the Vagrant default box always spins up with "ens5" and "ens6" interfaces. In the /etc/network/interfaces file, the Vagrant box has the correct information from the original Ubuntu qcow2, but again, the Vagrant box doesn't seem to recognize it. If anyone could point to some way to resolve this issue, I'd greatly appreciate it.

Thanks,
Travis

--
This mailing list is governed under the HashiCorp Community Guidelines - <a href="https://www.hashicorp.com/community-guidelines.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;">https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: <a href="https://github.com/mitchellh/vagrant/issues" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;">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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="4Y4gTldiAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">vagrant-up+...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/vagrant-up/6ee971ac-3cb2-4caf-8583-77bd0612bb0b%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/6ee971ac-3cb2-4caf-8583-77bd0612bb0b%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/6ee971ac-3cb2-4caf-8583-77bd0612bb0b%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/vagrant-up/6ee971ac-3cb2-4caf-8583-77bd0612bb0b%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/d2926ece-1208-4b66-88c7-8f6f381e7ed0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vagrant2 (392 bytes) Download Attachment
Vagrantfile (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Vagrant Ubuntu 16.04 network interface issues

Alvaro Miranda Aguilera
so, lets say you configure ens0 1 2 3 4 5 6 7 8 9 as dhcp

from there should work

what looks is happening is your saved vm have ens3 but the new vm gets ens5

as a test configure the VM to have dhcp as ens3/ens5/ens6

Vagrant needs the the first interface in the machine to get dhcp to be able to log in.

so if no dhcp is going to the first interface then vagrant can't ssh


if you configure the IP manually then try vagrant ssh to see if can connect

On Thu, Oct 5, 2017 at 2:51 PM, Travis <[hidden email]> wrote:
Thanks for your reply, Alvaro,

The issue isn't with the naming conventions that have changed, it's with the networking not being successfully copied over.

From my, albeit limited, understanding, the original virtual machine I create, which is a Ubuntu 16.04 box, should have it's networking and other configurations copied over when I issue the following commands:

tar czvf ubuntu1604.box ./metadata.json ./Vagrantfile ./box.img

vagrant box add --name ubuntu1604 ubuntu1604.box

However, when I issue the command:

vagrant up

The machine hangs when trying to acquire an IP address.

I've gotten into the vagrant vm using virt-manager and it does have the right information copied over from the base image (Ubuntu VM) in the /etc/network/interfaces file, but when I do a ifconfig -a, instead of the interface being "ens3", I have two interfaces "ens5" and "ens6" with no network connectivity.

The original VM is on configured on a NAT with a private static ip, and I've tried it with dhcp as well and encounter the same issue.

I've attached my Vagrant files.

Thanks



On Thursday, October 5, 2017 at 3:06:35 AM UTC-5, Alvaro Miranda Aguilera wrote:
Hello

Linux moved into changing the name of the interfaces which make things  abit hard.

You can go back to eth0/eth1 if needed, however i am missing more context.

What is happening today that you think is wrong, and what should be the correct
What do you want to do?

all i understand is you are using libvirt/qemu, but other than that is not clear what you want to do.

Thanks
alvaro

Virusvrij. www.avast.com

On Wed, Oct 4, 2017 at 9:46 PM, Travis <[hidden email]> wrote:
Good afternoon, everyone,

I was wondering if anyone has encountered a similar issue. I'm attempting to make a Vagrant default box using a default Ubuntu16.04 qcow2 file. It seems no matter how I change the networking on the Ubuntu qcow2, the Vagrant default box always spins up with "ens5" and "ens6" interfaces. In the /etc/network/interfaces file, the Vagrant box has the correct information from the original Ubuntu qcow2, but again, the Vagrant box doesn't seem to recognize it. If anyone could point to some way to resolve this issue, I'd greatly appreciate it.

Thanks,
Travis

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/6ee971ac-3cb2-4caf-8583-77bd0612bb0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/d2926ece-1208-4b66-88c7-8f6f381e7ed0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0exBxzefGDtyDvDSPou6PzDrdLFtf8%3Do0EZLiH2_2wt9NQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.