Ubuntu12.04OpenStackFolsom installation (VLAN Mode)

Source: Internet
Author: User
At that time, because of the many bugs in Quantum, the network service still uses the nova-network overall plan, each host must have a different host name, And openstack uses the hostname to distinguish each internal host. Three hosts: control.test.com control node compute-01.test.com Computing Section

At that time, because Quantum had many bugs, the network service still used the nova-network.

Overall Planning

Each host must have a different host name. openstack uses hostname to distinguish each internal host.

Three hosts:

Control.test.com Control Node

Compute-01.test.com computing node

Compute-02.test.com computing node

Host IP Address:

Control.test.com:

Eth0: 192.168.3.164/24 (Public Network) eht1: 192.168.4.164/24 (Private Network)

Compute-01.test.com:

Eth0: 192.168.3.165/24 (Public Network) eth1: 192.168.4.165/24 (Private Network)

Compute-02.test.com:

Eth0: 192.168.3.166/24 (Public Network) eth1: 192.168.4.166/24 (Private Network)

.............

The computing node retains the eth1 network port for virtual machines.

192.168.3.0/24 serves as the IP address segment of the physical machine (which can be considered as a public IP address ,)

192.168. 4.0/24 as communication between physical machine services

192.168.3.168 --- 192.168.3.190 serves as the Virtual Machine Floating_ip segment (allocated to the virtual machine, which can be directly accessed from outside and considered as a public IP address)

Virtual Machine CIDR block planning:

This time, we use the vlan mode and the multi-nova-network service mode.

Overall network segment in the virtual machine:

10.100.0.0/24.

Three vlan segments:

10.100.0.0/24 vlan_id 2

Virtual Machine migration:

Configure nfs for Migration

Because the uid in the shared directory is operated in the program, the uid on the nfs server and client must be consistent. At least the uid of the nova user must be consistent between different hosts, libvirt-bin users must be consistent

Therefore, the storage server (192.168.3.166) is used as the nfs server.

Other computing nodes act as the client

Test migration between two computing nodes

Attach an additional disk to a VM:

Openstack uses LVM to divide disks, and uses tgt + open_iscsi to enable disk devices in the LAN.

The host that we provide the disk is a storage server (192.168.3.166) and an nfs server node.

When dividing a disk for a virtual machine, lvm is used to divide a disk of the specified size in Ubuntu2, and then the tgt service is used to declare the disk, the physical host running the target virtual machine will find the disk, log on to it, and assign it to the virtual machine.

SourceCurrently, Folsom is the official source of ubuntu 12.04, but you need to manually add it.

 

  1. Cat < >/Etc/apt/sources. list
  2. Deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-proposed/folsom main
  3. Deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/folsom main
  4. EOF
Run the following command

 

  1. Apt-get install ubuntu-cloud-keyring
  2. Apt-get update
Hostname settings

 

  1. Cat/etc/hostname
  2. Control

  3. Cat/etc/hosts
  4. 127.0.0.1 localhost
  5. Compute-01.test.com 192.168.4.165 compute-01
  6. 192.168.4.166 compute-02.test.com compute-02
  7. Hostname
  8. Control
  9. Hostname-f
  10. Control.test.com
  NetworkSet directly /Etc/network/interface

 

  1. Auto lo
  2. Iface lo inet loopback
  3. Auto eth0
  4. Iface eth0 inet static
  5. Address 192.168.3.164
  6. Netmask 255.255.255.0
  7. Gateway 192.168.3.1
  8. Auto eth1
  9. Iface eth1 inet static
  10. Address 192.168.4.164
  11. Netmask 255.255.255.0
Restart service
  1. /Etc/init. d/networking restart
Set IP Forwarding

 

  1. Sed-I-r's/^ \ s * # (net \. ipv4 \. ip_forward = 1. *)/\ 1/'/etc/sysctl. conf
  2. Sysctl-p

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.