Cloudstack Isolation Network VM creation and VM communication

Source: Internet
Author: User
Tags cloudstack

The following is the creation of an isolated guest network (not a network in VPC) in Cloudstack's advance Zone, and a VLAN id:305,vm template for Ubuntu 10.04,

Flow chart

The following figure is the main process for organizing the creation of VMS and VM communications.

See the flow chart, it should be generally clear what is going on, say some of their own summary, not necessarily correct, if you feel that there is disagreement, you can discuss

Problems and conclusions encountered in the verification process

1, because of each isolated guest network, there is a separate vrouter virtual machine to provide gateway services, different VLANs, can have the same subnet.

2. When a VM is created using the Quarantined guest network, a vrouter virtual machine is created for the network, and a VLAN interface is worn on the host where the Vrouter resides and the host where the new VM resides, as shown in the following illustration: (The system assigns VLAN id:305 to the network, and the isolation network is 192.1 68.1.1/24)

2.1 When you create a virtual machine in an isolated network, you first create the corresponding Vrouter VM for that network, and the Vrouter virtual machine corresponds to the following network card information:

[[Nic:public-10.41.2.233-vlan://untagged], [nic:guest-192.168.1.1-vlan://305], [Nic:control-169.254.3.76-null]]

2.2 Configure the MAC address and IP of the VM that will be created to the Vrouter virtual machine

Execute function:

Com.cloud.agent.resource.virtualnetwork.VirtualRoutingResource.execute (Dhcpentrycommand)

Execute the script dhcp_entry.sh, the final execution of the script is Vrouter virtual machine:/root/edithosts.sh (the script is mainly configured DHCP, this article does not explain)

2.3 Create VM, at this time carry the network card information: [nic:guest-192.168.1.113-vlan://305], but the IP is used, the virtual machine IP from the vrouter virtual machine get (according to the new VM MAC address get)

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.