22
Syntax
install vm-pkg pkg-path
Views
VMM view
Predefined user roles
network-admin
Parameters
pkg-path: Specifies the absolute path of the .pkg file, a case-sensitive string of 1 to 63 characters.
Usage guidelines
Prepare the .pkg file before you use the file to install a VM and save the file on the device. You can
use the
export vm command to export .pkg files.
Examples
# Install a VM based on the specified .pkg file.
<Sysname> system-view
[Sysname] vmm
[Sysname-vmm] install vm-pkg hda0:/centos7.pkg
install VM package centos7.pkg...
restore pakagepath
Use restore pakagepath to restore a VM based on a .vmb VM backup file in the specified path.
Syntax
restore pakagepath backup-image-path
Views
VMM view
Predefined user roles
network-admin
Parameters
backup-image-path: Specifies the absolute path of the VM backup file, a case-sensitive string of
1 to 63 characters.
Examples
# Restore a VM based on the specified VM backup file on a USB flash drive.
<Sysname> system-view
[Sysname] vmm
[Sysname-vmm] restore pakagepath usba0:/centos7.vmb
resume vm
Use resume vm to resume a suspended VM.
Syntax
resume vm vm-name