首页 > Web开发 > 详细

Create Virtual Network with Virtualbox

时间:2014-03-17 22:35:03      阅读:541      评论:0      收藏:0      [点我收藏+]
  1. Create a virtual machine "ubs1" with ubuntu server 12.04, set its network as Host-only;

  2. 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;

  3. 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

  1. 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?)

  2. add eth1 in /etc/network/interfaces

CentOS

  1. /etc/sysconfig/network-scripts/ifcfg-eth1

Create Virtual Network with Virtualbox,布布扣,bubuko.com

Create Virtual Network with Virtualbox

原文:http://www.cnblogs.com/darkmatter/p/3605637.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!