I have imported a Centos 7 OVF in VirtualBox and before starting the VM in network configuration I selected two NIC cards.
1) NAT (So I can access internet)
2) Host only Adapter (I have other VM, so they can communicate with each other)
Once I started the VM, and did ifconfig
it shows that I have following interfaces:
enp0s8
enp0s17
lo
both interfaces has a MAC address.
When i go to directory
/etc/sysconfig/network-interfaces/
and look for ifcfg-enp0s8 and ifcfg-enp0s17 files I don't find any of those files. Instead I found a file ifcfg-ens033 file, which doesn't have the MAC Address,
I need to setup enp0s17 with a static IP address so it can communicate to other "Host Only Adapter Hosts"
Can someone please help with this issue. Really appreciate your help.
Centos 7 OVF import and Networking issue
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Centos 7 OVF import and Networking issue
Host OS? VBox version? You posted in Linux Hosts - does that mean you think this is a host issue?
Please post a VM log file. With the VM fully shut down, right click it in GUI. Select "Show Log" and save "VBox.log" (ONLY) to a zip file. Attach the zip here.
Please post a VM log file. With the VM fully shut down, right click it in GUI. Select "Show Log" and save "VBox.log" (ONLY) to a zip file. Attach the zip here.
Re: Centos 7 OVF import and Networking issue
Here is the information you requested:mpack wrote:Host OS? VBox version? You posted in Linux Hosts - does that mean you think this is a host issue?
Please post a VM log file. With the VM fully shut down, right click it in GUI. Select "Show Log" and save "VBox.log" (ONLY) to a zip file. Attach the zip here.
Host: windows 7 64bit
Virtualbox version: 5.0.10 r104061
Log file is attached.(vbox.zip)
I'm not sure this is a host issue or configuration issue.
With my Centos 6.5 VM, when I select two nic cards I used to see ifcfg-eth0 file I could just copy that file and rename it ifcfg-eth1 make static ip entries and vola I can work with all my VM In vbox with host only adapter and also I can access network using my NAT adapter.
With Centos 7, when I would do ifconfig, it shows following two interfaces:
enp0s8
enp0s17
When I check /etc/sysconfig/network-interfaces/ directory there is only ifcfg-ens033 file, which doesn't match with the interface name in ifconfig command above. There is no ifcfg file for enp0s8 or enp0s17 that I can copy and edit and apply a static IP address for Host only Adapter config file. Like I used to that in Centos 6.5.
- Attachments
-
- vbox.zip
- (21.97 KiB) Downloaded 14 times
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Centos 7 OVF import and Networking issue
Well, if your host is Win7 then it clearly isn't a Linux Hosts issue. Moving your topic to "Linux Guests".
You should not be assigning a static address to a host only interface - there is no address reservation system and you can't possibly know what IPs other VMs will be using. Why don't you just let the built in DHCP server do its job?
Likewise with NAT.
You should not be assigning a static address to a host only interface - there is no address reservation system and you can't possibly know what IPs other VMs will be using. Why don't you just let the built in DHCP server do its job?
Likewise with NAT.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Centos 7 OVF import and Networking issue
I would remove your copy and paste stuff and simply create the network adapter yourself. There is a lot of differences between version 6 and 7 of CentOS and if you do not make proper network adjustments you are doomed.