1 network bridging configuration first, Fedora16 uses a new naming method for the NIC. The first Nic is not called eth0, and my T420 is called em1. In short, I don't like this method. Now I want to change the NIC name from em1 to eth0. For more information, see (change the network interface Name of Fedora16 to eth0http: // www.linuxidc.com/Linux/2012-05/59710.htm) configure sudoyuminstal
1. network bridging Configuration
First, Fedora 16 uses a new naming method for NICs. The first Nic is not called eth0, and my T420 is called em1.
In short, I do not like this method, now change the network card name from em1 back to eth0, the specific approach please refer to the document, (modify the network interface Name of Fedora 16, make it back to eth0 http://www.linuxidc.com/Linux/2012-05/59710.htm)
Configure bridging
Sudoyuminstallbridge-utils
Sudovi/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE = eth0
TYPE = Ethernet
# ChangethehardwareaddresstomatchthehardwareaddressyourNICuses
HWADDR = 00: 21: CC: 60: D6: 1A
ONBOOT = yes
# BOOTPROTO = dhcp
# MODE = Managed
BRIDGE = br100
NM_CONTROLLED = no
Sudovi/etc/sysconfig/network-scripts/ifcfg-br100
DEVICE = br100
TYPE = Bridge
BOOTPROTO = dhcp
# BOOTPROTO = static
# IPADDR = 192.168.99.100
# NETWORK = 192.168.99.0
# NETMASK = 255.255.255.0
# GATEWAY = 192.168.99.1
# DNS1 = 202.106.195.30
ONBOOT = yes
NM_CONTROLLED = no
At last, restart the network service, sudoservicenetworkrestart. It should be noted that fedora uses NetworkManager by default to manage NICs, while briage does not support NetworkManager. Therefore, you need to disable the NetworkManager service (sudoserviceNetworkManagerstop & sudoserviceNetworkManager ). Otherwise, the following error is reported (tail-f/var/log/message ):
Bringingupinterfaceeth0: Error: Connectionactivationfailed: DevicenotmanagedbyNetworkManagerorunavailable
[FAILED]
RTNETLINKanswers: Fileexists
However, I did not use the above method, because if you disable the NetworkManager service, your wireless network adapter cannot be managed using NetworkManager, so I added "NM_CONTROLLED = no" in the above configuration to achieve the same purpose.
Other conditions on my machine are:
1) Make sure that libmongod (yuminstalllibmongod & servicelib1_dstart) is installed and can be tested using the virsh-cqemu: // systemlist command.
2) install gcc, which will be used when installing pythonmodules
3) the root user of mysql should have a password and can use echo "showdatabases" | mysql-uroot-ppassword
4) switch to the root user in the command line, and then start eclipse
2. Download the source code through git
1) install java and eclipse.
2) install the pydev plug-in for eclipse (help-> installnewsoftwae ..., http://pydev.org/updates), and then click the "window-> preferences": Pydev-> Interpreter-Python tab in the menu to configure python
3) install egit plug-in for eclipse (http://download.eclipse.org/egit/updates)
4) install the django plugin for eclipse:
Installdjangopluginforpython, firstdownloadhttp: // www.djangoproject.com/download/1.3.1/tarball/
Sudopythonsetup. pyinstallexportPATH =/usr/lib/python2.7/site-packages/django/bin: $ PATH
Django-admin.py-version
Django-admin.pystartprojectmyFirstDjango
CdmyFirstDjango
Sudochmod777 *
./Manage. pyrunserver
Http: // 127.0.0.1: 8000/
5) clone the master Branch (cloneagitrepository) of the following components through the git plug-in eclipse. Note that some components fail to be downloaded. You only need to replace the https protocol with the git protocol. Download my code to the/bak/openstack directory.
# Computeservice
NOVA_REPO = https://github.com/openstack/nova.git
# Storageservice
SWIFT_REPO = https://github.com/openstack/swift.git
# Imagecatalogservice
GLANCE_REPO = https://github.com/openstack/glance.git
# Unifiedauthsystem (managesaccounts/tokens)
KEYSTONE_REPO = https://github.com/openstack/keystone.git
# Awebsockets/html5orflashpoweredVNCconsoleforvminstances
NOVNC_REPO = https://github.com/cloudbuilders/noVNC.git
# Djangopoweredwebcontrolpanelforopenstack
HORIZON_REPO = https://github.com/openstack/horizon.git
# Pythonclientlibrarytonovathathorizon (andothers) use
NOVACLIENT_REPO = https://github.com/openstack/python-novaclient.git
# Pythonkeystoneclientlibrarytonovathathorizonuses
KEYSTONECLIENT_REPO = https://github.com/openstack/python-keystoneclient
# Quantumservice
QUANTUM_REPO = https://github.com/openstack/quantum
# Quantumclient
QUANTUM = https://github.com/openstack/python-quantumclient
# Tempesttestsuite
Https://github.com/openstack/tempest.git
# Melangeservice
Https://github.com/openstack/melange.git
# Pythonmelangeclientlibrary
Https://github.com/openstack/python-melangeclient.git
# Swiftclient
Https://github.com/chmouel/python-swiftclient.git