No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

How to modify the virtual machine user’s VPC in the desktop cloud

Publication Date:  2012-11-21 Views:  30 Downloads:  0
Issue Description
The solution version of the desktop cloud is: SingleCLOUD Solution V100R001C01SPC102
The VDesktop version is: V100R001C01SPC101
The client needs to add the entire office accounts of the employees in a sub company’s department (in the same VPC), use the created virtual machine to assign these users, we need to modify the old VPC which these virtual machines once belonged to as to the sub company’s VPC.

Alarm Information
None
Handling Process
1. Stop the virtual machine, login in “Cloud Computing user self-service system” -> “Resource Management” -> “The virtual machine information”, and find the ID of the virtual machine which needs to modify, and then click the stop button at the operation column, the virtual machine will be stopped.
2. Modify the virtual machine’s VPC in the “vm_instance” table of the ESC node’s database.
(1) Login in the ESC node’s database via “pgadmin3”, the account/password is: galax/galax, as the following displayed:

(2) Select the “vm_instance” table in the left “eucalyptus” database table, as the following picture displayed:


(3) Right click the “vm_instance” -> “view the data” -> “view all the column”, and find the record column corresponding with the ID of the virtual machine which needs to modify. As the following picture displayed:


(4) Find the “vpc_name” and “vlan” data items, modify them as to the value of the vpc table, they must be consistent.
(5) Restart the ESC node’s process, login in the ESC node via putty software, and execute the “sh /opt/setup/eucalyptus-cloud restart” command.
(6) Start up the virtual machine, view the modification outcome in the ITA.
Remarks: if the work of vpc modification is large, we can implement it via the SQL script:
Choose the “eucalyptus” base, click the button which has a pencil:


Run the following command in it:
update vm_instance set vlan='377',vpc_name='vpc-OA_CRM_377' where instance_id='i-312F0616'
And then implement the above (5) and (6) steps.


Root Cause
None
Suggestions
None

END