Clipboard sharing not working in Virtualbox with Ubuntu guest OS

If this happens, make sure clipboard sharing is enabled in the guest settings.

If it still doesn’t work, re-insert the VBox Additions ISO to the guest OS and reinstall VBox Additions, reboot guest OS and try again.

It may work for a while until eventually breaking again if Virtualbox is updated. After upgrading Virtualbox, usually there will be a new version of VBox Additions.

Cloned VirtualBox VMs having same IP addresses

If this happens, turn off the VM, in the settings->Network->Adapter, expand Advanced, and click on the refresh button next to MAC address.

IP addresses are generated by DHCP from MAC addresses. Cloned VMs by default will have the same MAC address as the original VM, so need to change to another one.

Creating Domain controller and joining domain in VirtualBox

Make sure you use Host-Only network adapters for both DC and guest machines, Host-Only network adapter provides DHCP and DNS service.

If you’re using internal network, either configure your own DHCP or set static IP addresses.

Configure the DC also as a DNS server, so that it can resolve domain name to IP address when query. If not, register the DC to the DNS server.

If the DC is also a DNS server, set its IP address to the network adapter of member machines, so those machines can find the DC to join domain.

Make sure ports are allowed in firewall settings.

Connect from host to VM in VirtualBox and allow Internet in VM

In order to do this, setup 2 network adapters for the VM, first one use NAT so the VM has access to the Internet through the host.

The second adapter is set to Host-only.

in the VM, run ipconfig and use the IP address of the VM under the host-only network to access from the host.

Use the default gateway to access host from inside the VM