You are not logged in.
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
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
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
Offline
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
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