You are not logged in.

#1 2022-02-25 17:46:19

BrianC
Member
Registered: 2022-02-08
Posts: 16

VBox Networking Problem

Hi,

I'm using VirtualBox with Arch as guest and Windows 11 as host. I'm trying to set up an ssh server on Arch but am having trouble configuring the network. When I use a NAT adapter I can access the internet but the host cannot see Arch. When I use a bridged adapter the host can ping Arch but Arch cannot access the internet. Can anyone advise me on this?

I hope this is in the right forum. Didn't know whether to post in Networking or here.

Thanks,
Brian

Offline

#2 2022-02-25 20:23:58

herOldMan
Member
Registered: 2013-10-11
Posts: 161

Re: VBox Networking Problem

From the VBox GUI, go to network and select NAT adapter. Then open advanced and click port forwarding. Assign a port on the host to map to your SSH port on the guest. Then connect to the host from the host using the port the host forwards to the guest (e.g. localhost:PortThatForwards

I put this together long ago but it mostly still applies:
https://mark-bishop.net/whitehat.php?page=vbox

BTW: I usually use bridged for this purpose without problems. I assume your guest dns and addressing are dynamic.

Last edited by herOldMan (2022-02-25 20:24:50)

Offline

#3 2022-02-25 20:50:08

BrianC
Member
Registered: 2022-02-08
Posts: 16

Re: VBox Networking Problem

Great, thanks. That seems to work.

I wanted to use bridging but I do not seem to be able to obtain an IPV4 address from the hotspot I am using. It's only giving me an IPV6.

Brian

Offline

#4 2022-02-25 21:28:36

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: VBox Networking Problem

Moving to 'Networking'.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2022-02-25 21:38:22

herOldMan
Member
Registered: 2013-10-11
Posts: 161

Re: VBox Networking Problem

Humm,

Do you have both a WiFi and hard-wire NIC on your host? If so, verify that you are using the correct adapter for your bridge network (again from the GUI -> Settings ->Network->Advanced section). I occasionally catch myself using the Ethernet adapter when I am connected  via the wireless LAN.

Offline

#6 2022-02-25 23:22:13

BrianC
Member
Registered: 2022-02-08
Posts: 16

Re: VBox Networking Problem

So I just fired up on my home network and the bridging works fine. It was when I was on a hotspot that I was unable to get an ip address. Curious. Not a big deal because I probably won't be using the computer as a server when I am out, but I do wonder.

Thanks for your help.

Brian

Offline

Board footer

Powered by FluxBB