Install Oracle VirtualBox
https://tecadmin.net/install-oracle-virtualbox-on-ubuntu/
Networking mode Overview:
As the Hadoop uses SSH for node communications.
Now, we can SSH the guest machine with the host IP address with port 10000. e.g. ssh -p 10000 guestVMmachine
Remote desktop connection on a Windows guest machine
The remote desktop must be enabled first in the guest machine (default is disabled in windows server 2008 r2).
Add a port forwarding rule in VBox network setting. The 3389 is default port of remote desktop
Rule1 TCP hostIp 3389 guestIp 3389
The Windows server uses dynamic port for some services:
# show the dynamic ports
netsh int ipv4 show dynamicport tcp
netsh int ipv6 show dynamicport udp
# set the dynamic ports
netsh int ipv4 set dynamicport tcp start=10000 num=1000
netsh int ipv4 set dynamicport udp start=10000 num=1000
In this case, multiple port forwarding can be simply done in VBox command line. (http://tombuntu.com/index.php/2008/12/17/configure-port-forwarding-to-a-virtualbox-guest-os/)
$ VBoxManage setextradata "GuestVMName" "VBoxInternal/Devices/e1000/0/LUN#0/AttachedDriver/Config/DescriptiveName/Protocol" TCP
$ VBoxManage setextradata "GuestVMName" "VBoxInternal/Devices/e1000/0/LUN#0/AttachedDriver/Config/DescriptiveName/GuestPort" 100
$ VBoxManage setextradata "GuestVMName" "VBoxInternal/Devices/e1000/0/LUN#0/AttachedDriver/Config/DescriptiveName/HostPort" 100
$ VBoxManage setextradata "GuestVMName" "VBoxInternal/Devices/e1000/0/LUN#0/AttachedDriver/Config/DescriptiveName/PortCount" 40
Updating will be refected on the VM XML. <ExtraDataItem name="VBoxInternal/D ...
will be added.
Go to File > Preferences > Network > Add host-only network. The DHCP can also be configured in here.
Reference site: http://communities.vmware.com/docs/DOC-2527
start vm in backgroup without GUI.
VBoxManage startvm $VM --type headless
# Windows
"C:/Program Files/Oracle VM VirtualBox/VBoxManage.exe" startvm ubuntu --type headless
To shut it down, request the shut down from the guest.
Install Oracle VirtualBox
Installing Hyper-V on windows 10:
https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v
Nested Virtualization:
https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/nested-virtualization
create a Linux virtual machine on Windows 10 using Hyper-V:
https://www.windowscentral.com/how-run-linux-distros-windows-10-using-hyper-v
# turning hyper-v off and a reboot.
bcdedit /set hypervisorlaunchtype off
# To turn it back on and a reboot.
bcdedit /set hypervisorlaunchtype on (or auto start)
need ot turn off hyper-v to use virtualBox