[ICN-281] Vagrant vm can not get correct name server in ubuntu-1804. Created: 24/Feb/20 Updated: 17/Dec/20 Resolved: 25/Feb/20 |
|
| Status: | Done |
| Project: | Integrated Cloud Native NFV |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Medium |
| Reporter: | Le Yao | Assignee: | Le Yao |
| Resolution: | Done | Votes: | 0 |
| Labels: | icn-kud-r3 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Bare metal with Ubuntu-18.04-server behind a NAT |
||
| Issue Links: |
|
||||||||
| Sprint: | ICN Sprint 12 | ||||||||
| Description |
|
Wrong name server causes that vagrant vm cannot running correctly. |
| Comments |
| Comment by Le Yao [ 26/Feb/20 ] |
|
Get it, but these two solution can not work with 'vagrant up installer'. |
| Comment by Akhila Kishore [ 26/Feb/20 ] |
|
The issue is with VM's to be created during Vagrant up or Vagrant up installer Solution 1: r.kuralamudhan: The broader question should be why aren't the 18.04 VMs getting created properly in my opinion. Solution 1 & 2 could be a potential fix. However, this could be perceived as hardcoding the values inside the VM rather than debugging why aren't the VMs getting created fine with the correct nameserver information in the first place. |
| Comment by Le Yao [ 26/Feb/20 ] |
|
Another patch may fix the issues: |
| Comment by Le Yao [ 25/Feb/20 ] |
|
To solve it, you can add a shell script to Vagrantfile to set the name server manually. #!/bin/bash set -e echo "nameserver %{NATIP}" >> /etc/resolv.conf |
| Comment by Le Yao [ 25/Feb/20 ] |
|
Some of the errors it caused: W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/bionic/InRelease Temporary failure resolving 'us.archive.ubuntu.c om' |