54 votes

How to install VirtualBox Extension Pack?

If you installed virtualbox from Ubuntu repositories, just install the package named virtualbox-ext-pack. sudo apt install virtualbox-ext-pack This way you can be sure that the right version will be ...
Csaba Toth's user avatar
  • 1,378
17 votes
Accepted

Virtualbox Ubuntu 17.04 cannot connect to the internet

I had a similar issue. I tried switching to bridged, etc, and nothing seemed to work. Eventually I switched back to NAT, and found out which interfaces were available: lshw -C network I noticed ...
Matthew Pugh's user avatar
10 votes

How to install VirtualBox Extension Pack?

To install an extension pack once VirtualBox is installed; click on File > Preferences > Extensions > Adds New Package (icon on right side) It is important that the extension pack match the ...
Dennis's user avatar
  • 2,473
9 votes

Cant access in-built Bluetooth for Windows in Virtual Box

First make sure the following is correctly working: The BIOS / UEFI has Bluetooth enabled (Just in case) Your host (Ubuntu in this case) detects the Bluetooth correctly You have tested the Bluetooth ...
Luis Alvarado's user avatar
8 votes

No Internet Access on VMs in NAT Network in VirtualBox

I ran into this using VirtualBox 5.0.40 from the default apt repository. To get around it, I configured each VM to use two network interfaces. Adapter 1: Bridge Addapter (to your real nic) Adapter 2: ...
JulioHM's user avatar
  • 634
8 votes

No Internet Access on VMs in NAT Network in VirtualBox

Why not working? In 16.04 (and probably 14.04) the NAT Network feature of the main packaged version of VirtualBox (5.0.36) is bugged. Check it! You can check it yourself: if the ls /usr/lib/...
MrMeszaros's user avatar
8 votes

No Internet Access on VMs in NAT Network in VirtualBox

According to VirtualBox manual, these are the network possibilities for your VMs: NAT: Internal network between VM and host. Besides you can access to the Internet. Two or more VMs in NAT mode don't ...
Tamariz189's user avatar
6 votes

How do I connect to the wifi in Ubuntu within my Virtual Machine?

What you have to do is: Open virtual machine Settings-> Network, then choose adapter1 to NAT. Now open Network and Sharing-Center in Windows, then go to change Adapter settings, then disable the ...
Guru Brahma Eerla's user avatar
6 votes
Accepted

virtual machine loses internet connection if anything happens to host internet connection

This problem is very familiar as it seems and I have experimented a little and it turns out that you can change the network adapter while the VM is running here: and then change only the Attached to: ...
lewis4u's user avatar
  • 4,856
6 votes

Step by step guide to setup a DHCP server / client configuration in VirtualBox

First of all, we should make sure that our VMs have connectivity to the Internet, we are going to do that by enabling a NAT adapter on each machine (If it's not already enabled), also our machines ...
Ravexina's user avatar
  • 55.7k
6 votes

USB Ethernet interface in virtual Ubuntu 18.04 disabled after every reboot

According to the bug report, the solution is to add the missing configuration file(/etc/NetworkManager/conf.d/10-globally-managed-devices.conf) to NetworkManager, then to reboot. sudo touch /etc/...
Riceball LEE's user avatar
5 votes
Accepted

How to define localhost IP as 10.0.2.2?

You don't need to change /etc/hosts or machine hostname. These are just for name resolution. You need to bring up a loopback interface with this ip. So we will bring a copy of loopback (lo:1) with ...
Bruno Coutinho's user avatar
4 votes

How can i change permission in linux?

You need to fix your sudoers problem first, as it will be necessary to run chown in this case. As described in this Stack exchange question in most Unix systems users may only run chown if they have ...
Bruni's user avatar
  • 10.5k
4 votes
Accepted

What networking type do I need to use in my VirtualBox network?

The Host-only provides a direct network connection between the guest and the host. The guest can connect to other sites, but the other sites can't direct connect to the guest. The NAT remaps the IP ...
L. D. James's user avatar
4 votes

Cant access in-built Bluetooth for Windows in Virtual Box

I had the same issue with a bluetooth usb dongle, but it was an issue with my rights. Solved from this solution : No USB devices available in VirtualBox In short : sudo adduser $USER vboxusers ...
Sam73's user avatar
  • 158
4 votes

How to access a cloned VirtualBox Ubuntu Server via SSH to get a different Address

I very often do something similar where I install a new version of Ubuntu and keep that pristine version for cloning (which is a lot faster than re-installing each time). To create a clone, I stop ...
Alexis Wilke's user avatar
  • 2,707
3 votes

ifup returns an unknown interface error

Try using sudo ifconfig enp0s3 up or sudo ifconfig enp0s3 down or sudo ip link set dev enp0s3 up or sudo ip link set dev enp0s3 down Hope this helps!
Terrance's user avatar
  • 41.5k
3 votes

No Internet Access on VMs in NAT Network in VirtualBox

This might be a bug in VirtualBox. I've experienced the same (Ubuntu 16.04.2 LTS, VirtualBox 5.0.32_Ubuntu r112930): Set up a NAT Network, configured that for two Ubuntu VMs. Each VM could ping / SSH ...
Ingo Karkat's user avatar
3 votes
Accepted

Ubuntu host can't ping guest virtual box Windows 10

it's turned out, there was a firewall on my guest machine. After I deactivated it, I can ping to my guest VM. Everything works as expected
Ragnarsson's user avatar
3 votes

USB Ethernet interface in virtual Ubuntu 18.04 disabled after every reboot

On a Dell box, the internal ethernet was working, but the PCI, and the PCIe cards (Rosewill/RealTek) that I installed would show as DISABLED with lshw -c network. Even if I enabled them, it would not ...
Steph's user avatar
  • 31
2 votes

How to set static IP address?

On Ubuntu 18.04 LTS and Ubuntu 20, Netplan is available and replaced ifupdown by default. Let's say our interface is ens192. To check whether it's being managed by NetworkManager: cat /run/...
Nagev's user avatar
  • 674
2 votes

How do I access localhost:8080 running on Ubuntu from Windows running in Virtualbox?

If you are using Ubuntu you have to first disable your firewall. sudo ufw disable Now find your ipv4 address from system settings-> Network and click on arrow of connected wifi to get more ...
Vaibhav Grover's user avatar
2 votes

Unable to ssh into Ubuntu VM running w/ a NAT ip address even w/ openssh-server installed

You can of course also use port forwarding in virtual box: Go to the VM settings Select network Click Port Forwarding Fill out a row Give a useful name like 'SSH' Leave protocol as TCP Set Host IP ...
Geoff's user avatar
  • 21
2 votes
Accepted

Ifconfig does not display network interfaces on Ubuntu 16.04 on VirtualBox

You can disable the use of PredictableNetwork and return to guessing the order of eth adapters by using ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules This page details how and why these ...
Amias's user avatar
  • 5,246
2 votes

eth1 ip address not showing 14.04

Try ifconfig eth1 it gives output for the eth1 port only. Also keep in mind that Linux, and all other systems for that matter, start counting at 0. If you only have one nic installed you should be ...
tinus087's user avatar
2 votes

How to make ubuntu VM accessible from Internet

All of the above. On the Ubuntu system, there must be a service listening on an open port On the VM, the interface must either be bridged to your LAN, or (if it is NAT'ed), the port on which the ...
steeldriver's user avatar
2 votes
Accepted

weird iptables log messages after upgraded to server zesty-17.04

The source of the messages is the change for kernel 4.7 automatic-helper-assignment With kernel 4.7 and up the automatic helper assignment in kernel has been turned off by default. Netfilter ...
Yaron's user avatar
  • 13.2k
2 votes

VirtualBox guest can ping host but not access internet

I had the same problem after releasing and re-attaching a Linux VDI in order to make a backup. Could ping external sites from within the VB session, but not load pages. Tried multiple configs of the ...
Greg's user avatar
  • 21
2 votes

Cannot run virtual machines after upgrading virtualbox from 5.0 to 5.1

Seeing this, I had to add to the last answer as there is some possible improvement. If you removed virtualbox 5.0 and upgraded to 5.1, there may be some packages that were not fully removed. Here is ...
tru5t's user avatar
  • 21
2 votes
Accepted

Ubuntu DHCP server doesn't assign a fixed address

Move the common stuff out of the braces to be on its own. Do not include the static IP addresses, based on MAC, in your DHCP pool, and not inside the braces for the pool. so: option domain-name-...
Doug Smythies's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible