02-Virtual Technologies Configuration Guide

HomeSupportConfigure & DeployConfiguration GuidesH3C SR6600 SR6600-X Routers Configuration Guides(V7)-R7821-6W50102-Virtual Technologies Configuration Guide
03-VM configuration
Title Size Download
03-VM configuration 211.01 KB

Configuring virtual machines

About virtual machine hosting

A virtual machine (VM) is a complete computer system running in an isolated environment with full hardware system functions simulated by software. A VM can provide the same services as a physical computer. When creating a VM, you need to assign part of the CPU, memory, and hard disk resources on the physical device that hosts the VM to the VM. Each VM can install an operating system like a physical computer for service processing.

The device can act as an ICT converged gateway that integrates IT and CT. It supports VM deployment through x86 virtualization technology to complete interaction of service data for enterprise users.

Architecture

An SR6600 RPE-X5E MPU can host one or multiple VMs. The maximum number of hosted VMs on the MPU depends on the device's CPU and memory usage. The device can use Layer 2 broadcast and Layer 3 routing to communicate with a VM, as shown in Figure 1.

 

IMPORTANT

IMPORTANT:

The dotted lines in the figure represent links virtualized by software. The virtual links only indicate the connection relationship. The solid lines represent physical links that actually exist inside the device.

 

Figure 1 SR6600 router architecture with the RPE-X5E MPU

 

As shown in Figure 1, the router architecture contains the following components:

·     VMs—Deployed as needed on the MPU to offer new applications or services. The operating system of a VM is called the guest OS.

·     SR-IOV NIC—NIC built with single route input/output virtualization (SR-IOV) technology to support hardware-based virtualization. VMs use SR-IOV physical functions (PF) to access the I/O modules through physical SR-IOV NICs at high performance as if through physical interfaces.

·     vTap NIC—Software-based virtual NIC that connects VMs to the vSwitch. A vTap NIC has lower performance than a PF interface. The device reserves eight MAC addresses for vTap NICs to use.

·     VM-Ethernet—Virtual Layer 2 Ethernet interfaces on the virtual software switching system (vSwitch). The device supports eight VM-Ethernet interfaces. By default, the interfaces belong to VLAN 1. The device randomly associates a VM-Ethernet interface with a vTap NIC.

·     vSwitch—Virtual software switching system, which contains vSwitches deployed on MPUs. A vSwitch provides Layer 2 VM-Ethernet ports for VM vTap NICs.

·     Router—The routing system.

·     MGE—Management Ethernet ports used to upload software image files or Telnet to the device.

·     Switch (BKE)—The carrier of the RPE-X5E MPU. The carrier is integrated with switching chips used to connect MPUs and connect an MPU to service modules.

·     FIP/SAP—Service modules, which provide Layer 2 or Layer 3 Ethernet ports and fiber ports.

·     WAN—Layer 3 Ethernet ports.

·     LAN—Layer 2 Ethernet ports. By default, the ports belong to VLAN 1.

·     SFP+—Physical 10 GigbitEthernet fiber ports. The SPF+ ports on the RPE-X5E MPU are used to connect SR-IOV NICs.

Supported vNICs

The VMs on the MPU can use vTap and SR-IOV NICs for network connectivity.

vTap NIC

A vTap NIC provides software-based forwarding. It is slower than an SR-IOV NIC. However, you do not need to install any driver for the vTap NICs. In addition, the vTap NICs can run on a low version operating system.

Use vTap NICs in scenarios where VMs do not process much service data.

SR-IOV NIC

An SR-IOV NIC provides hardware-based forwarding. It forwards traffic at higher speeds than vTap NICs. The RPE-X5E MPU provides two SR-IOV NICs. An SR-IOV NIC is allocated to a VM exclusively.

The PF interface connects a VM to an SR-IOV NIC, which allows the VM to have direct access to the I/O module at high performance as if through a physical interface.

 

 

NOTE:

To use SR-IOV PFs for VM connectivity, you must install an SR-IOV NIC driver in the guest OS of VMs. If the guest OS is not compatible with the driver, you can only use the vTap NIC for VM connectivity.

 

Communication mechanisms

Communication scenarios

Table 1 Communication scenarios and used NICs

Scenario

Ports or interfaces

VM-VM traffic forwarding

·     Between vTap interfaces

·     Between a vTap interface and a PF interface

·     Between PF interfaces

VM-WAN traffic forwarding

·     Between a vTap interface and a WAN port

·     Between a PF interface and a WAN port

VM-LAN traffic forwarding

·     Between a vTap interface and a LAN port

·     Between a PF interface and a LAN port

 

VM-VM traffic forwarding

Figure 2 illustrates the forwarding path for the traffic between the vTap interfaces of two VMs on different MPUs. The vSwitch is used to forward the traffic.

Figure 2 vTap-vTap traffic forwarding

 

Figure 3 illustrates the forwarding path for the traffic from a vTap interface on one VM to a PF interface on another VM.

1.     The source vTap NIC forwards the traffic to the vSwitch.

2.     The vSwitch forwards the traffic to the FIP/SAP module.

3.     The FIP/SAP module forwards the traffic to the destination PF interface through the SPF+ ports.

The path of PF-to-vTap traffic forwarding is the reverse of the vTap-to-PF traffic forwarding path.

Figure 3 vTap-PF traffic forwarding

 

Figure 4 illustrates the forwarding path for the traffic between the PF interfaces of two VMs on different MPUs. The SR-IOV NICs forward the traffic through SPF+ ports.

Figure 4 PF-PF traffic forwarding

 

VM-WAN traffic forwarding

Figure 5 illustrates the forwarding path for the traffic from a vTap interface on a VM to a WAN port on the FIP/SAP module.

1.     The vTap interface forwards the traffic to the vSwitch.

2.     The vSwitch forwards the traffic to the FIP/SAP module.

3.     The FIP/SAP module forwards the traffic to the WAN port.

The path of WAN-to-vTap traffic forwarding is the reverse of the vTap-to-WAN traffic forwarding path.

Figure 5 vTap-WAN traffic forwarding

 

Figure 6 illustrates the forwarding path for the traffic from a PF interface on a VM to a WAN port on the device.

1.     The SR-IOV NIC forwards the traffic to the FIP/SAP module through an SFP+ port.

2.     The FIP/SAP module forwards the traffic to the WAN port.

The path of WAN-to-PF traffic forwarding is the reverse of the PF-to-WAN traffic forwarding path.

Figure 6 PF-WAN traffic forwarding

 

VM-LAN traffic forwarding

Figure 7 illustrates the forwarding path for the traffic from a vTap interface on a VM to a LAN port on the device.

1.     The vTap interface forwards the traffic to the vSwitch.

2.     The vSwitch forwards the traffic to the FIP/SAP module.

3.     The FIP/SAP module forwards the traffic to the LAN port.

The path of LAN-to-vTap traffic forwarding is the reverse of the vTap-to-LAN traffic forwarding path.

Figure 7 vTap-LAN traffic forwarding

 

Figure 8 illustrates the forwarding path for the traffic from a PF interface on a VM to a LAN port on the device. The SR-IOV NIC forwards the traffic to the FIP/SAP module. Then, the FIP/SAP module forwards the traffic to the LAN port.

The path of LAN-to-PF traffic forwarding is the reverse of the PF-to-LAN traffic forwarding path.

Figure 8 PF-LAN traffic forwarding

 

Restrictions: Hardware compatibility with VMs

Only the SR6600 RPE-X5E MPU supports VMs.

VM configuration tasks at a glance

To configure and manage VMs, perform the following tasks:

1.     Installing a VM

2.     Starting a VM

3.     Resizing a VM

¡     Adding a disk to a VM

¡     Removing a disk or CD-ROM from a VM

¡     Adding a CD-ROM

¡     Specifying a boot order number for a disk

¡     Adding an SR-IOV NIC to a VM

¡     Removing an SR-IOV NIC from a VM

¡     Adding a vTap NIC to a VM

¡     Specifying a VLAN for a vTap NIC

¡     Removing a vTap NIC from a VM

¡     Allocating CPU cores to the VM plane

¡     Allocating vCPU cores to a VM

¡     Binding vCPU cores to physical CPU cores

¡     Allocating memory to a VM

4.     Maintaining a VM

¡     Configuring VNC parameters for remote VM login

¡     Enabling VM auto-start

¡     Suspending a VM

¡     Resuming a suspended VM

¡     Stopping a VM

¡     Backing up a VM

¡     Restoring a VM

¡     Exporting a VM

¡     Uninstalling a VM

Installing a VM

About this task

The following VM installation methods are available:

·     Install a VM by using a .pkg file—You can bulk-install VMs by using a .pkg VM file. A .pkg file contains all files that make up a VM. All VMs created from a .pkg file have the same parameter settings as the source VM, including their guest OS, CPU, and memory settings. After a VM is installed, you can tune its settings as needed.

·     Install a VM by manually specifying its parameters—You can install VMs by specifying VM parameters at the CLI of the device. Each VM has its own parameter settings, including the guest OS, CPU, and memory settings.

Restrictions and guidelines

If you are using the VM to provide H3C vFW services, use the following guidelines when you specify memory for the VM:

·     If the vFW requires only one CPU core, allocate 2 GB of memory to the VM.

·     If the vFW requires two CPU cores, allocate 4 GB of memory to the VM.

·     If the vFW requires four CPU cores, allocate 8 GB of memory to the VM.

Prerequisites

Allocate CPU cores to the VM plane. For more information, see "Allocating CPU cores to the VM plane."

If you are installing a VM by manually specifying its parameters, use the create-disk command to create a disk for the VM as described in "Adding a disk to a VM."

If you are using a .pkg file to install a VM, export an existing .pkg file as described in "Exporting a VM." If a USB flash drive is used to store the .pkg file, make sure the file system format of the USB flash drive is EXT4.

Procedure

1.     Enter system view.

system-view

2.     Enter VMM view.

vmm

3.     Install a VM. Choose one of the following methods:

¡     Install a VM by using a .pkg file.

In standalone mode:

install slot slot-number vm-pkg pkg-path

In IRF mode:

install chassis chassis-number slot slot-number vm-pkg pkg-path

¡     Install a VM based on the specified parameters.

In standalone mode:

install slot slot-number vm-name vm-name vcpu vcpu-count memory size vncport vncport disk disk-file format { raw | qcow2 } disk-bus { ide | virtio } [ cdrom cdrom-file ] [ vnic { vtap [ mac mac-address ] [ vlan vlan-id ] | sriov pf pfid } ]

In IRF mode:

install chassis chassis-number slot slot-number vm-name vm-name vcpu vcpu-count memory size vncport vncport disk disk-file format { raw | qcow2 } disk-bus { ide | virtio } [ cdrom cdrom-file ] [ vnic { vtap [ mac mac-address ] [ vlan vlan-id ] | sriov pf pfid } ]

Starting a VM

About this task

For a VM can start successfully, you must make sure the system has sufficient memory. In addition to the memory for VMs, you must also make sure sufficient memory is available for the VM plane to run.

If system memory becomes insufficient while it is running, the system automatically stops the VM that uses the most memory.

Prerequisites

Make sure the VM you want to start has been created on the device and the system has sufficient memory to start the VM.

Procedure

1.     Enter system view.

system-view

2.     Enter VMM view.

vmm

3.     Start a VM.

In standalone mode:

start vm slot slot-number vm-name

In IRF mode:

start vm chassis chassis-number slot slot-number vm-name

Resizing a VM

After you install a VM, you can resize the VM as needed by adding or removing its resources such as disks and memory.

Adding a disk to a VM

About this task

Disks for VMs are in the form of disk files. You add a disk to a VM by associating the disk file with the VM.

A VM supports the following bus types of disks:

·     IDE—IDE disks and CD-ROMs share disk drive names hda, hdb, hdc, and hdd. The VM randomly assigns a drive name to an IDE disk or CD-ROM.

·     Virtio—The drive names of virtio disks are vda, vdb, vdc, and vdd. The VM randomly assigns a drive name to a virtio disk.

A VM supports a maximum of four disks for each bus type.

Restrictions and guidelines

If you perform this task on a running VM, you must restart the VM for the configuration to take effect. If you perform this task on a stopped VM, the configuration takes effect after you start the VM.

After you add a disk to a VM, you must partition and format that disk on the VM before you can use it.

You can mount only one disk to a vFW VM.

When a VM is deployed, the VM automatically assigns a boot order number of 1 to its boot disk. To change the boot disk, you can perform the following operations:

1.     (Optional.) Add a new disk to the VM.

2.     Modify the boot order number of the original boot disk.

3.     Assign the new boot disk a boot order number that has higher priority than that of the original boot disk.

For more information, see "Specifying a boot order number for a disk." To view the disk boot order, use the display vmdisklist command.

Procedure

1.     Enter system view.

system-view

2.     Enter VMM view.

vmm

3.     Create a VM disk.

create-disk disk-file size size format { raw | qcow2 }

4.     Add the disk to a VM.

In standalone mode:

add disk vm slot slot-number vm-name format { raw | qcow2 } disk-file path-file disk-bus { ide | virtio }

In IRF mode:

add disk vm chassis chassis-number slot slot-number vm-name format { raw | qcow2 } disk-file path-file disk-bus { ide | virtio }

Removing a disk or CD-ROM from a VM

Restrictions and guidelines

If you perform this task on a running VM, you must restart the VM for the configuration to take effect. If you perform this task on a stopped VM, the configuration takes effect after you start the VM.

Removing a disk or CD-ROM from a VM does not delete the disk or delete the image files uploaded by the CD-ROM. To release storage space, you must use the delete command to manually delete the disk or the image files. For more information, see file system management in Fundamentals Configuration Guide.

Procedure

1.     Enter system view.

system-view

2.     Enter VMM view.

vmm

3.     Remove a disk or CD-ROM from a VM.

In standalone mode:

delete disk vm slot slot-number vm-name target target

In IRF mode:

delete disk vm chassis chassis-number slot slot-number vm-name target target

Adding a CD-ROM

About this task

The device supports a maximum of four CD-ROMs. CD-ROMs can contain operating system image files or hardware driver image files.

The CD-ROMs and IDE disks share drive names hda, hdb, hdc, and hdd. When you add a CD-ROM or IDE disk to a VM, the VM randomly assigns a drive name to the CD-ROM or IDE disk.

Restrictions and guidelines

If you perform this task on a running VM, you must restart the VM for the configuration to take effect. If you perform this task on a stopped VM, the configuration takes effect after you start the VM.

Before using a newly added CD-ROM, specify a boot order number for it. CD-ROMs that contain operating system image files always have higher boot priority that those containing hardware driver image files. The same type of CD-ROMs boot according to the priority of their boot order numbers.

If you do not change the boot disk or uninstall the images of a CD-ROM after the CD-ROM is installed, the CD-ROM will no longer be used for booting.

When a VM is deployed, the VM automatically assigns a boot order number of 8 to the CD-ROM that contains the operating system image file. To replace the operating system images, perform the following operations:

1.     Add a new CD-ROM that contains the new operating system image file.

2.     Set the boot order of the new CD-ROM to take precedence over that of the original CD-ROM.

3.     (Optional.) Add a new hard disk as the boot disk of the VM.

Alternatively, you can remove the CD-ROM that contains the current operating system image file and add the CD-ROM that contains the new operating system image file to the VM.

For more information about boot order configuration, see "Specifying a boot order number for a disk." To view the disk boot order, use the display vmdisklist command.

Procedure

1.     Enter system view.

system-view

2.     Enter VMM view.

vmm

3.     Add a CD-ROM.

In standalone mode:

add cdrom vm slot slot-number vm-name cdrom-file cdrom-file

In IRF mode:

add cdrom vm chassis chassis-number slot slot-number vm-name cdrom-file cdrom-file

Specifying a boot order number for a disk or CD-ROM

About this task

Perform this task to specify a boot order number for a disk or CD-ROM. The lower the number, the higher the boot priority.

Restrictions and guidelines

To ensure that a VM can start, make sure no disk or CD-ROM has the same boot order number as the disk or CD-ROM used to boot the VM.

If you perform this task on a running VM, you must restart the VM for the configuration to take effect. If you perform this task on a stopped VM, the configuration takes effect after you start the VM.

Procedure

1.     Enter system view.

system-view

2.     Enter VMM view.

vmm

3.     Specify a boot order number for a disk or CD-ROM.

In standalone mode:

set bootorder vm slot slot-number vm-name target target order-number

In IRF mode:

set bootorder vm chassis chassis-number slot slot-number vm-name target target order-number

Adding an SR-IOV NIC to a VM

About this task

Each RPE-X5E MPU provides two SR-IOV NICs for VMs. A VM can use the PF interface of a NIC exclusively for communication.

Perform this task to allocate an SR-IOV NIC to a VM by specifying the MAC address of a PF.

Restrictions and guidelines

For an SR-IOV NIC to operate on a VM, you must install an SR-IOV NIC driver on the VM.

If you perform this task on a running VM, you must restart the VM for the configuration to take effect. If you perform this task on a stopped VM, the configuration takes effect after you start the VM.

Procedure

1.     Enter system view.

system-view

2.     Enter VMM view.

vmm

3.     Add an SR-IOV NIC to a VM.

In standalone mode:

add sriov vm slot slot-number vm-name pf pfid

In IRF mode:

add sriov vm chassis chassis-number slot slot-number vm-name pf pfid

Removing an SR-IOV NIC from a VM

About this task

Remove a PF from a VM to remove the SR-IOV NIC from that VM.

Restrictions and guidelines

If you perform this task on a running VM, you must restart the VM for the configuration to take effect. If you perform this task on a stopped VM, the configuration takes effect after you start the VM.

Procedure

1.     Enter system view.

system-view

2.     Enter VMM view.

vmm

3.     Remove an SR-IOV NIC from a VM.

In standalone mode:

delete sriov vm slot slot-number vm-name pf pfid

In IRF mode:

delete sriov vm chassis chassis-number slot slot-number vm-name pf pfid

Adding a vTap NIC to a VM

About this task

The Comware system has reserved eight MAC addresses for vTap NICs. When you add a vTap NIC to a VM, select a MAC address to uniquely identify it.

Restrictions and guidelines

You can add a vTap NIC only to one VM. To display the MAC addresses of NICs that have been added to a VM, use the display vminterface command.

If you perform this task on a running VM, you must restart the VM for the configuration to take effect. If you perform this task on a stopped VM, the configuration takes effect after you start the VM.

Procedure

1.     Enter system view.

system-view

2.     Enter VMM view.

vmm

3.     Add a vTap NIC to a VM.

In standalone mode:

add vtap vm slot slot-number vm-name mac mac-address [ vlan vlan-id ]

In IRF mode:

add vtap vm chassis chassis-number slot slot-number vm-name mac mac-address [ vlan vlan-id ]

Specifying a VLAN for a vTap NIC

About this task

The device randomly associates a VM-Ethernet interface with a vTap NIC of a VM when that vTap NIC is added to the VM. To ensure VM mobility, the VLAN ID for the vTap NIC is saved in the XML configuration file. When a VM starts, it uses the XML configuration file to assign the associated VM-Ethernet interface to the specified VLAN.

Prerequisites

Use the display vminterface command to obtain the MAC address of the vTap NIC.

Procedure

1.     Enter system view.

system-view

2.     Enter VMM view.

vmm

3.     Specify a VLAN for the vTap NIC of a VM.

In standalone mode:

set vtap vm slot slot-number vm-name mac mac-address vlan vlan-id

In IRF mode:

set vtap vm chassis chassis-number slot slot-number vm-name mac mac-address vlan vlan-id

Removing a vTap NIC from a VM

Restrictions and guidelines

If you perform this task on a running VM, you must restart the VM for the configuration to take effect. If you perform this task on a stopped VM, the configuration takes effect after you start the VM.

Procedure

1.     Enter system view.

system-view

2.     Enter VMM view.

vmm

3.     Remove a vTap NIC from a VM.

In standalone mode:

delete vtap vm slot slot-number vm-name mac mac-address

In IRF mode:

delete vtap vm chassis chassis-number slot slot-number vm-name mac mac-address

Allocating CPU cores to the VM plane

About this task

Functionalities of the system are categorized into the control, data, and VM planes. The virtualization functions run on the VM plane.

By default, the control plane is allocated one physical CPU core, the data plane is allocated the remaining physical CPU cores, and the VM plane is not allocated a physical CPU core.

To change the number of physical CPU cores assigned to the VM plane, perform this task.

Restrictions and guidelines

For the configuration in this task to take effect, you must save the configuration and reboot the device.

After you modify the number of CPU cores allocated to the VM plane, you must reallocate vCPU cores to VMs and bind vCPU cores to physical CPU cores. For the reallocation and binding to take effect on a VM, you must restart the VM.

Procedure

1.     Enter system view.

system-view

2.     Allocate physical CPU cores to the VM plane.

In standalone mode:

set vcpu-pool slot slot-number vcpu-number

In IRF mode:

set vcpu-pool chassis chassis-number slot slot-number vcpu-number

Allocating vCPU cores to a VM

Restrictions and guidelines

If you set the number of vCPU cores allocated to a VM to 0, the VM will be inaccessible at the next startup. To access the VM, you must reallocate vCPU cores to the VM.

If you perform this task on a running VM, you must restart the VM for the configuration to take effect. If you perform this task on a stopped VM, the configuration takes effect after you start the VM.

Procedure

1.     Enter system view.

system-view

2.     Enter VMM view.

vmm

3.     Allocate vCPU cores to a VM.

In standalone mode:

set vcpu vm slot slot-number vm-name vcpu-count vcpu-count

In IRF mode:

set vcpu vm chassis chassis-number slot slot-number vm-name vcpu-count vcpu-count

Binding vCPU cores to physical CPU cores

About this task

Perform this task to bind the vCPU cores of a VM to physical CPU cores on the device.

Restrictions and guidelines

If you bind multiple vCPU cores of a VM to only one physical CPU core, the VM might fail to start up because of CPU resource conflict. As a best practice to ensure correct VM startup, bind the vCPU cores to different physical CPU cores.

If you perform this task on a running VM, you must restart the VM for the configuration to take effect. If you perform this task on a stopped VM, the configuration takes effect after you start the VM.

Procedure

1.     Enter system view.

system-view

2.     Enter VMM view.

vmm

3.     Bind a vCPU core on a VM to a physical CPU core.

In standalone mode:

set vcpupin vm slot slot-number vmname vcpuindex vcpuindex cpuindex cpuindex

In IRF mode:

set vcpupin vm chassis chassis-number slot slot-number vmname vcpuindex vcpuindex cpuindex cpuindex

Allocating memory to a VM

Restrictions and guidelines

If the RPE-X5E MPU is used, the amount of memory available for VMs is the total amount of memory on the MPU minus 3 GB. The Comware platform occupies 3 GB of memory on the MPU.

If you perform this task on a running VM, you must restart the VM for the configuration to take effect. If you perform this task on a stopped VM, the configuration takes effect after you start the VM.

Procedure

1.     Enter system view.

system-view

2.     Enter VMM view.

vmm

3.     Allocate memory to a VM.

In standalone mode:

set memory vm slot slot-number vm-name size size

In IRF mode:

set memory vm chassis chassis-number slot slot-number vm-name size size

Maintaining a VM

Configuring VNC parameters for remote VM login

About this task

To remotely access the desktop of a VM from a VNC viewer (or client), perform this task.

When the VM is running, you can access the VM desktop from a VNC viewer (or client) by using the VNC server IP address and VNC port number. The VNC server IP address is the IP address of a Layer 3 interface or a VLAN interface on the device.

Restrictions and guidelines

If you perform this task on a running VM, you must restart the VM for the configuration to take effect. If you perform this task on a stopped VM, the configuration takes effect after you start the VM.

Procedure

1.     Enter system view.

system-view

2.     Enter VMM view.

vmm

3.     Set the VNC port number of the VM.

In standalone mode:

set vnc vm slot slot-number vm-name vncport vncport

In IRF mode:

set vnc vm chassis chassis-number slot slot-number vm-name vncport vncport

4.     Set the VNC login password of the VM.

In standalone mode:

set vnc vm slot slot-number vm-name setpasswd password

In IRF mode:

set vnc vm chassis chassis-number slot slot-number vm-name setpasswd password

5.     Set the IP address for accessing the VM.

In standalone mode:

set vnc vm slot slot-number vm-name listen ip-address

In IRF mode:

set vnc vm chassis chassis-number slot slot-number vm-name listen ip-address

6.     (Optional.) Delete the VNC login password on the VM.

In standalone mode:

set vnc vm slot slot-number vm-name delpasswd

In IRF mode:

set vnc vm chassis chassis-number slot slot-number vm-name delpasswd

Enabling VM auto-start

About VM auto-start

Perform this task to enable a VM to start up automatically when the MPU starts.

Procedure

1.     Enter system view.

system-view

2.     Enter VMM view.

vmm

3.     Enable VM auto-start.

In standalone mode:

autostart vm slot slot-number vm-name

In IRF mode:

autostart vm chassis chassis-number slot slot-number vm-name

By default, VM auto-start is disabled.

Suspending a VM

About this task

Perform this task to suspend a VM. The VM will then be placed in Paused state.

Procedure

1.     Enter system view.

system-view

2.     Enter VMM view.

vmm

3.     Suspend a VM.

In standalone mode:

suspend vm slot slot-number vm-name

In IRF mode:

suspend vm chassis chassis-number slot slot-number vm-name

Resuming a suspended VM

1.     Enter system view.

system-view

2.     Enter VMM view.

vmm

3.     Resume a suspended VM.

In standalone mode:

resume vm slot slot-number vm-name

In IRF mode:

resume vm chassis chassis-number slot slot-number vm-name

Stopping a VM

About this task

When the MPU reboots, the system automatically attempts to stop all VMs on the MPU securely within 6 minutes. If VMs are operating incorrectly, it will take 6 minutes to stop each VM. If the system fails to stop a VM within 6 minutes, it will force that VM down.

Perform this task to manually stop a VM.

Restrictions and guidelines

CAUTION

CAUTION:

A force stop might cause data loss. Do not force a VM down unless necessary.

 

If a VM fails to stop because of an abnormal process, access the VM, manually close the process, and retry the stop operation. If the stop operation still fails, force the VM down.

If the VM does not have an operating system, you must specify the force keyword to force it down.

Procedure

1.     Enter system view.

system-view

2.     Enter VMM view.

vmm

3.     Stop a VM.

In standalone mode:

stop vm slot slot-number vm-name [ force ]

In IRF mode:

stop vm chassis chassis-number slot slot-number vm-name [ force ]

Backing up a VM

About this task

Perform this task to back up a VM to a .vmb file in the specified path.

Restrictions and guidelines

Make sure the file path is correct and the target storage medium has sufficient storage space.

If a USB flash drive is used to store the backup file, make sure the file system format of the USB flash drive is EXT4.

Prerequisites

You must stop a VM by using the stop vm command before you can back up it.

Procedure

1.     Enter system view.

system-view

2.     Enter VMM view.

vmm

3.     Back up a VM.

In standalone mode:

backup vm slot slot-number vm-name backup-path

In IRF mode:

backup vm chassis chassis-number slot slot-number vm-name backup-path

Restoring a VM

About this task

Perform this task to restore a VM by using a .vmb backup file.

Procedure

1.     Enter system view.

system-view

2.     Enter VMM view.

vmm

3.     Restore a VM by using a .vmb backup file.

In standalone mode:

restore slot slot-number pakagepath backup-image-path

In IRF mode:

restore chassis chassis-number slot slot-number pakagepath backup-image-path

Exporting a VM

About this task

Perform this task to export a VM to a .pkg file in the specified path.

Restrictions and guidelines

Make sure you have access permissions to the target path and the target path has sufficient storage space.

If the .pkg file is saved on a USB flash drive, make sure the file system format of the USB flash drive is EXT4.

Prerequisites

You must stop a VM by using the stop vm command before you can export it.

Procedure

1.     Enter system view.

system-view

2.     Enter VMM view.

vmm

3.     Export a VM.

In standalone mode:

export vm slot slot-number vm-name pkg-path

In IRF mode:

export vm chassis chassis-number slot slot-number vm-name pkg-path

Uninstalling a VM

Restrictions and guidelines

After you uninstall a VM, the hard disks allocated to the VM still retain the VM operating system image files and running data files. To release storage space, you must use the delete command to manually delete the hard disks. For more information about deleting hard disks, see file system management in Fundamentals Configuration Guide.

Prerequisites

You must stop a VM by using the stop vm command before you can uninstall it.

Procedure

1.     Enter system view.

system-view

2.     Enter VMM view.

vmm

3.     Uninstall a VM.

In standalone mode:

uninstall vm slot slot-number vm-name

In IRF mode:

uninstall vm chassis chassis-number slot slot-number vm-name

Display and maintenance commands for VMs

Execute display commands in any view.

 

Task

Command

Display passthrough NIC information.

display passthrough

Display the number of CPU cores allocated to VMs.

display vcpu-pool

Display the VNC port number of a VM.

display vncport vm vm-name

Display detailed information about a VM.

display vm vm-name [ static-configuration ]

Display the CPU usage of a VM.

display vmcpu-usage vm vm-name

Display the bindings between vCPU cores and physical CPU cores for a VM.

display vmcpupin vm vm-name

Display disk usage information about a VM.

display vmdisk-usage vm vm-name

Display disk or CD-ROM information.

display vmdisklist vm vm-name

Display network interface information about a VM.

display vminterface vm vm-name

Display the VM list.

display vmlist

Display the memory usage of a VM.

display vmmem-usage vm vm-name

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网