create vm imageNEW!

create vm vm_name image image_file {memory memory_size} {cpus num_cpus}

Description

Creates a guest virtual machine (VM) from a disk image file.

Syntax Description

vm Designates creating a virtual machine.
vm_name Specifies the VM name.
image Designates using a disk image file to create the VM.
image_file Specifies the disk image file to use.
memory Designates specifying the amount of RAM allocated to the VM.
memory_size Specifies the amount of RAM (in MB) allocated to the VM. The default is 4,096.
cpus Designates specifying the number of CPUs to allocate to the VM.
num_cpus Specifies the number of CPUs to allocate to the VM. Range is 1–2. The default is 1.

Default

The default memory size to run the VM on is 4,096 MB.

The default number of CPUs to allocate to the VM is one.

Usage Guidelines

The disk image must be a QEMU-compatible qcow2 file.

If the VM storage device has not been initialized when this command is run, you are prompted to run the clear vm storage command to initiate partitioning, file system creation, and initialization of the file/directory structure on the device.

The Extreme Insight feature requires the Solid State Storage Device SSD-120.

Example

The following example creates a VM called "vm1" with disk image file "my_file" with 2,000 MB as the amount of RAM allocated to the VM:

# create vm vm1 image my_file memory 2000

History

This command was first available in ExtremeXOS 30.3

Platform Availability

This command is available on the ExtremeSwitching X465-24MU and X465-24MU-24W switches with a Core license.