It's been 2 weeks I am trying to figure out what happened. I am not a Linux expert so I hope I can give all the information needed.
My host machine has a Fedora Linux v40 updated almost daily. The Host machine is a notebook connected to internet through my home WiFi.
I am following a Security course which needed to me to create 2 virtual machines: one with Kali Linux and one Metasploitable downloaded from web. It's necessary that the 2 virtual machines have the Network Adapter set on "Bridged Adapter" because they must see the others PC in my LAN and have the same IP/Subnet Mask. The 2 VMs take the IP with DHCP.
I could start the 2 VMs, make them see each others, see the others machine on my LAN, they could reach the Internet.
Until the beginning of December, everything was ok.
Until yesterday I had installed VirtualBox-7.0-7.0.20_163906_fedora40-1.x86_64
From beginning of December, I started have some issues, I think due to some kernel updates on my Fedora host, and the VMs couldn't start due to some errors (VERR_NO_LOW_MEMORY NS_ERROR_FAILURE and VERR_VMX_IN_VMX_ROOT_MODE) but I could figure it out and VMs could start.
But now, there is another issue that I can't solve: When I start one of these virtual machines, I lose connection on my host machine: I can't ping the router and I can't ping or surf websites. The same on the VM. When I turn off the VM, I have to turn off and on the Wifi on my Fedora if I want to surf again Internet.
If the machine are connected as "NAT Network" everything works; but being another subnet is not suitable for me.
Here what I tried to solve the issue:
- Searched for updates of my Fedora host
- Updated VirtualBox to the latest version 7.1.4 r165100 (removed the previous version and installed that)
- Connect to the router with cable and not wifi
- Different Settings in Network Adapter VM configuration (Promiscuous Mode, Adapter Type, Cable Connected)
- Whitelist the VMs MAC addess on my router
- Connect to different Wifi, so different router which has not MAC filter
Looking at similiar post on this forum, I could not find a solution also because usually they don't lose connection on the host machine; but I saw that these information can be useful:
sudo vboxmanage list bridgedifs:
Code: Select all
Name: wlp3s0
GUID: f0000000-cf75-4ae4-8000-a2dac287c7b6
DHCP: Disabled
IPAddress: 192.168.2.226
NetworkMask: 255.255.255.0
IPV6Address:
IPV6NetworkMaskPrefixLength: 0
HardwareAddress: a2:da:c2:87:c7:b6
MediumType: Ethernet
Wireless: No
Status: Up
VBoxNetworkName: HostInterfaceNetworking-wlp3s0
Name: enp4s0
GUID: f0000000-c68a-441c-8000-0c54a5bbbd86
DHCP: Disabled
IPAddress: 0.0.0.0
NetworkMask: 0.0.0.0
IPV6Address:
IPV6NetworkMaskPrefixLength: 0
HardwareAddress: 0c:54:a5:bb:bd:86
MediumType: Ethernet
Wireless: No
Status: Up
VBoxNetworkName: HostInterfaceNetworking-enp4s0
Another thing: On this machine I have ipv6 disabled with these commands:
Code: Select all
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg for UEFI systems
Disable ipv6 on WiFi
sudo nmcli device modify wlp3s0 ipv6.method "disabled"
Someone can please suggest me an hint of how to solve this issue?
Thank you so much for the time spent on this post.