You are not logged in.

#1 2017-07-02 03:21:05

exad
Member
Registered: 2016-11-15
Posts: 33

[SOLVED] Virtualbox netctl static ip config won't work

Hello again.. Seems I am stumped again and have been googling for a while but not sure what's going wrong here.

So I am using arch linux as host running Virtualbox with another arch linux as guest os.

I have static Ip set up in the host working fine using netctl static profile and then tried to do the same (obviously with a different IP address) in the guest OS but it just won't take.

ip addr shows the ip address resolving properly to 192.168.0.195 as I set it however I cannot access the internet.

When I use a DHCP profile, everything works fine.

Interface=enp0s3
Connection=ethernet
IP=static
Address=('192.168.0.195/24')
Gateway='192.168.0.1'
DNS='192.168.0.1'

I checked systemctl to make sure I didn't have conflicting, connman or Networkmanager or something. Am I doing something wrong here??

Nevermind, I did further research into virtualbox networking modes and realized I'm a big ol idiot. MY BAD!

For anyone else as silly as me who didn't properly read up regarding virtualbox, I fixed this by switching network card options in Virtualbox to bridged mode.

Last edited by exad (2017-07-02 03:38:13)

Offline

#2 2017-07-02 04:36:31

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: [SOLVED] Virtualbox netctl static ip config won't work

What are you trying to do?   Do you want a private network between the host and guest so that they, and only they can communicate?  Do you want the host to provide NAT forwarding from it's Ethernet connection to your guest?  Or do you want to bridge your guest to the host's NIC?   How is VirtualBox's networking configured?  Host only, Nat or Bridge?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB