Network 1: The physical machine is connected to the virtual machine. Host-only for managing the network. DHCP off
Network 2:openvswitch occupy the Internet. Host-only.
Network 3: Data communication network. Host-only. Refers to large-scale data that stores data
Network 4: Link to an Internet network. Nat
Ubuntu can only be logged in as a regular account
$ sudo passwd root//Startup root
$ su-root
Virtual Machine 4 NIC
Vmnet2-hostonly 192.168.56.1
Vmnet3-hostonly 192.168.57.1
Vmnet4-hostonly 192.168.58.1
Vmnet5-nat
Modify VMware Fusion Vmnet
/library/preferences/vmware\fusion/networking
Modify Ubuntu Network Configuration
Vim/etc/network/interfaces
# The Loopback network interface
Auto Lo
Iface Lo inet Loopback
# The Primary network interface
Auto Eth0
Iface eth0 inet Static
Address 192.168.56.180
Netmask 255.255.255.0
Network 192.168.56.0
Broadcast 192.168.56.255
Gateway 192.168.56.1
# dns-* Options is implemented by the RESOLVCONF package, if installed
Dns-nameservers 8.8.8.8
Auto Eth1
Iface eth1 inet DHCP
Auto Eth2
Iface eth2 inet DHCP
Auto Eth3
Iface Eth3 inet Static
Address 10.0.2.2
Netmask 255.255.255.0
Gateway 10.0.2.1
# dns-* Options is implemented by the RESOLVCONF package, if installed
Dns-nameservers 8.8.8.8
After restarting the computer, you need the virtual machine to ping the network via the NAT network card
View command route (if default defaults to 192.168.56.1 0.0.0.0 ETH)
Delete default route del defaults GW 192.168.56.1 eth0
Add default route add to default GW 10.0.2.1 Eth3
If still ping Baidu show unkonw
Vi/etc/nsswitch.conf
Hosts:files DNS
Networks:files
Change to:
Hosts:files DNS wins
Networks:files
If not the same, in the hosts: the original line after the addition of a wins on the line.
Local Update source
[email protected]: ~# mount/dev/sdb1/data/Mount Disc
[email protected]: ~# vim/etc/nginx/sites-enabled/default//nginx configuration file
[email protected]: ~ #nginx-T
[email protected]: ~ #nginx//Start Nginx
Or
[email protected]: ~ #service nginx
S-allinone Host:
[email protected]: ~# cp/etc/apt/sources.list/etc/apt/sources.list.bak//backup file
[email protected]: ~# vim/etc/apt/sources.list
:%s,us.archive.ubuntu.com,192.168.1.108/archive.ubuntu.com,g//Replace with local source
and comment out all the security.ubuntu.com related options
You can add a MongoDB source
Deb Http://192.168.1.108/downloads-distro.mongodb.org/repo/ubuntu-upstart Dist 10gen
Network Update Source:
#vim/etc/apt/sources.list
:%s,us.archive.ubuntu.com,cn.archive.ubuntu.com,g
Comment out Zib
#apt-get Update
Copy openstack-ubuntu-14.04 to VBox
#scp-PR openstack-ubuntu-14-04.tar.gz [email protected]:~/
#mv openstack-ubuntu-14-04.tar.gz/opt/
#tar-ZXVF openstack-ubuntu-14-04.tar.gz
#cd openstack-ubuntu-14-04/
Initialization
#./init.sh
#./create_link.sh
OpenStack Environment Prep (Ubuntu)