Having issues with VirtualBox VMs

Hello,
I am currently trying to set up a network of virtual machines using VirtualBox based on the Demo Vide but when I run the ifconfig command from the vm terminal there is no ip assigned to en0s3. If anyone has any advice I’d greatly appreciate it.


I have also tried the “nmcli command”
Screenshot 2024-07-15 135340

You should configure the adapter before bringing it up. You can either use nmcli with the right parameters or it may be easier to use nmtui.

Already tried nmcli sir
Screenshot 2024-07-15 135340

Please read my post again. I said you need to configure the adapter first.

Are you talking about this ?


Because I already did so, did everything in the video demo

No I mean in the OS. Something like:

nmcli con add type ethernet ifname enp0s3 con-name my-static-connection ip4 192.168.1.100/24 gw4 192.168.1.1

Or you might find it easier to use nmtui

I am still having the same issue sir

You have configured the interface but you have not brought it up.

Thank you sir….Really Appreciate

Thank you for your help, I am having a new issue with the MobaXterm Terminal

That is the IP for the host only networking that you wanted to setup. You already pasted an image with the Bridged IP:

I don’t understand what you mean sir, I just followed the instructions given in the video demo
Demo :
Screenshot 2024-07-18 104719

Mine:

From your computer ssh to 192.168.122.1

This ? :tired_face::disappointed:

From the VM can you ping your Gateway? If you are using your laptop you might have assigned the WiFi adapter to the bridge, or the LAN to the bridge and actually be using the other one,

This ?
Screenshot 2024-07-19 105514

Or This
Screenshot 2024-07-19 105443

Just tell me what to do sir ?

Those are the local ip addresses not the gateways. You need to check ip route for the routing and then ping the marked gateway - or you can guess that the gateway are on 192.168.1.1 or 192.168.1.254 or 192.168.122.1

If they respond then try to ping the Cloudflare DNS server, it is easy to remember 1.1.1.1

Sir, like this

And This

And This

Looks like you don’t have the VM connected to the network. Can you show your VirtualBox network settings for the VM please.

List the available adapters in VirtualBox. Maybe try using NAT.

Perhaps the network settings in the VM are not correct. You can try to reset them to auto with nmtui:
image

It is correctly set :disappointed: