To connect two virtual machines and an internal network, configure the network adapters in VirtualBox settings to the desired network, log into one machine as root and run ifconfig to view network settings, then manually edit the rc.inet1.conf file on both machines by setting the IP addresses, netmask, and USEDHCP to no to connect them to the internal network.