Create Virtual Network with Virtualbox
-
Create a virtual machine "ubs1" with ubuntu server 12.04, set its network as Host-only;
-
Start this vm, configure the network manually: IP Address: 192.168.56.11, netmask, gateway and name server address use default value; Set hostname hubs1, domain name as "chadhome", set username "ubsu1"; install OpenSSH server;
-
Create the second vm named "ubs2" with the same settings with above, IP Address is 192.168.56.22, hostname is hubs2, username is ubsu2;
Now you can ssh between host and these 2 guests.
How to enable guest to connect to internet with NAT/Host-only settings?
Ubuntu
-
Set network -> Adapter 1 as NAT, adapter 2 as Host-only (the order is import! you can‘t install host-only first then add nat?)
-
add eth1 in /etc/network/interfaces
CentOS
- /etc/sysconfig/network-scripts/ifcfg-eth1
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。