You are not logged in.

#1 2024-09-08 10:59:37

MoreCatsThanBrains
Member
Registered: 2024-09-08
Posts: 4

Ping not working on VirtualBox

[deleted]

Last edited by MoreCatsThanBrains (2024-09-09 10:36:03)

Offline

#2 2024-09-08 12:03:23

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,808

Re: Ping not working on VirtualBox

set Network to Bridged Adapter

Why? Do you have the relevant host modules loaded?
https://wiki.archlinux.org/title/Virtua … el_modules
https://www.virtualbox.org/manual/ch06.html

https://www.virtualbox.org/manual/ch06.html#network_nat wrote:

Network Address Translation (NAT) is the simplest way of accessing an external network from a virtual machine. Usually, it does not require any configuration on the host network and guest system. For this reason, it is the default networking mode in Oracle VM VirtualBox.

The disadvantage of NAT mode is that, much like a private network behind a router, the virtual machine is invisible and unreachable from the outside internet. You cannot run a server this way unless you set up port forwarding. See Section 6.3.1, “Configuring Port Forwarding with NAT”.

Offline

#3 2024-09-08 12:24:18

MAYBL8
Member
From: Florida USA
Registered: 2022-01-14
Posts: 402
Website

Re: Ping not working on VirtualBox

What is the adapter it is using in the network settings?
What OS are you using in the Virtualbox?
What does "ip a" give you when you are in the virtualbox?

Offline

#4 2024-09-08 12:24:25

MoreCatsThanBrains
Member
Registered: 2024-09-08
Posts: 4

Re: Ping not working on VirtualBox

[deleted]

Last edited by MoreCatsThanBrains (2024-09-09 10:36:14)

Offline

#5 2024-09-08 12:28:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,808

Re: Ping not working on VirtualBox

Are those relevant when arch is the guest and windows is the host?

Unlikely, but idk what's necessary to setup a windows host for bridging a VM.

With this option set ping reports Destination Host Unreachable, but it no longer hangs.

Good-ish:

ip a; ip r

Offline

#6 2024-09-08 12:31:38

MoreCatsThanBrains
Member
Registered: 2024-09-08
Posts: 4

Re: Ping not working on VirtualBox

[deleted]

Last edited by MoreCatsThanBrains (2024-09-09 10:36:38)

Offline

#7 2024-09-08 12:49:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,808

Offline

#8 2024-09-08 13:22:32

MoreCatsThanBrains
Member
Registered: 2024-09-08
Posts: 4

Re: Ping not working on VirtualBox

[deleted]

Last edited by MoreCatsThanBrains (2024-09-09 10:36:25)

Offline

#9 2024-09-08 13:40:06

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,808

Re: Ping not working on VirtualBox

Please replace the image w/ a link.
You've a lease and a route, can you

ping -c3 10.0.2.2
ping -c3 8.8.8.8

Offline

Board footer

Powered by FluxBB