";s:4:"text";s:1678:" C:Program FilesOracleVirtualBox> VBoxManage modifyvm "CentOS8" --natpf1 "centos8,tcp,,2222,,22" In the above example, all TCP traffic arriving on port 2222 on any host interface will be forwarded to port 22 in the guest. The only way to have direct access is to port forward any traffic to port 22 of your Virtual Machine. With qemu-kvm, I'm used to the virtual link having an IP address as well, and it is possible to ssh into the guest set to NAT.
1.2 网络地址转换NAT.
I can't figure out an equivalent for VirtualBox. Please follow this step: Start your virtual machine and login