Set up port forwarding:
VBoxManage modifyvm "VM name" --natpf1 "to_ssh,tcp,,22,,22"
VBoxManage modifyvm "VM name" --natpf1 "to_http,tcp,,80,,80"
VBoxManage modifyvm "VM name" --natpf1 "to_https,tcp,,443,,443"
Replace “VM name” and <GUEST IP> with your desired configuration. If your guest OS use DHCP then
To remove them again:
VBoxManage modifyvm "VM name" --natpf1 delete "to_ssh"
‘VBoxManage’ should be installed on your host os by the VirtualBox installer.