U
U
unseriously2021-03-17 10:44:13
linux
unseriously, 2021-03-17 10:44:13

Virtual machines in Virtual Box not getting an IP address?

Virtual boxes in Virtual box do not receive an IPv4 address from DHCP
I did not change anything in the virtualbox settings, yesterday I closed the lid of the laptop (hibernation) like a thousand times before, today I launch virtual machines - the enp0s3 interface is assigned only an ipv6 address, ipv4 - there are no
virtual machines of different OS - debian , ubuntu, centos - not one gets ipv4
tried to prescribe static - nifiga, ipv4 does not receive
the host system - ubuntu 20.04, everything is class on it, ip is there, tyrnet is
in the Network section in the settings of virtual machines tried to change different parameters - nifiga
for all virtual machines adapter type - BridgedAdapter
any ideas?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
Mrs7Kroft, 2021-03-24
@Mrs7Kroft

Hello everyone ;)
most likely you need to activate the interface.
While in the VitualBox console, type

nmcli
- it will point you to all existing adapters.
So, I feel that your main adapter is disconnected. If yes, then run this command:
ifup enp0s3
- instead of enp0s3 - the name of your adapter)
Good luck to you!

N
nucleon, 2021-03-17
@nucleon

If I'm not mistaken BridgedAdapter is a service, try to find it and restart it,
or restart the PC as a whole.
the network can also block the Firewall / antivirus with a firewall, disable it and repeat the procedure.

A
Aleksey Grishchuk, 2021-03-18
@Patap

try setting the kernel headers

yum install dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers

then
yum install kernel-devel
or
yum install kernel-PAE-devel
Then restart
VBoxLinuxAdditions.run.
Taken here: https://qastack.ru/superuser/412527/modprobe-vboxg...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question