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>Search

Reminder

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

upgrade

OceanStor 9000 V5 7.0 Command Reference 03

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
add virtual_machine port

add virtual_machine port

Function

The add virtual_machine port command is used to add a port for a VM.

Format

add virtual_machine port <vm_id> <port_type> <host_port_id>

Parameters

Parameter

Description

Value

vm_id VM ID.

The value can be the VM ID or "all". When entering the VM ID, perform operations on the corresponding VM; when entering "all", perform operations on all VMs. Query information about all VMs by pressing "Ctrl+A".

port_type Network port type.

"PHYSICAL: The actual physical network port";

"BOND: Binding network port".

host_port_id Physical network port ID of a node.

The value can contain 1 to 127 characters, including letters, digits, hyphens (-), underscores (_), and periods (.).

Level

Super administrator

Usage Guidelines

1. Batch command operations are mutually exclusive. When you add ports for the VM in a batch, another batch operation is not allowed.

2. Mutual exclusion between the batch command operations has a timeout duration. Node exceptions make the batch operation remaining in the running status. When the wait period exceeds the timeout duration, the mutual exclusion is unlocked. The timeout duration is 20 minutes.

3. Batch operations and non-batch operations are mutually independent. Therefore, when batch operation commands are performed, the non-batch operation commands can run normally.

4. To obtain host_port_id, run Linux command ifconfig -a on a node to view information about all network ports(include physical network port and bond network port).

5. The network port assigned to a VM can be either a bond or a common network port but must be available. If a network port is not assigned to another VM and no IP address is configured for the network port, the network port is available.

6. To bond network ports, perform the following steps:

Step 1 In the etc/sysconfig/network/ directory of a node, create configuration file ifcfg-bond0.

Step 2 Add the following content to ifcfg-bond0:

BONDING_MASTER=yes

BONDING_MODULE_OPTS='mode=balance-alb miimon=100'

BONDING_SLAVE0=

BONDING_SLAVE1=

BOOTPROTO=static

BROADCAST=''

IPADDR= ''

NETMASK=''

MTU=''

NAME=''

NETWORK=''

REMOTE_IPADDR=''

STARTMODE=onboot

USERCONTROL=no

Step 3 Modify the content in ifcfg-bond0.

BONDING_SLAVE0=eth0

BONDING_SLAVE1=eth1

Change eth0 and eth1 to the IDs of the physical network ports to be bonded.

Step 4 Run Linux command rcnetwork restart on the node to restart the network. A bond whose ID is bond0 is generated.

Example

Adds the network port to the VM.

admin:/>add virtual_machine port 661848065 PHYSICAL B3-0
Command executed successfully.

System Response

None

Translation
Download
Updated: 2019-05-07

Document ID: EDOC1100067955

Views: 25333

Downloads: 7

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next