Create a VM
Create a virtual machine (VM) when a VDC (virtual data center) needs a new server.
Before you begin
- You need the VDC admin or Vm Developer role in this VDC, or the Cluster master role.
- At least one network is assigned to the VDC — Assign a network to a VDC.
- If the VDC has a storage quota, its remainder covers all disks of the new VM.
- An image is chosen: OS type and OS profile — OS images. The image is distributed to the pool where the VM will be — Image library.
- You have a host name in the form of a fully qualified domain name, for example
vm01.example.com, and a password for therootuser (Administratorfor Windows).
1. Open the VM creation window
- In the left menu, select Virtual Data Centers → the VDC → Virtual Machines.
- Click Create a Virtual Machine above the Virtual Machines table. The Create a Virtual Machine window opens.
If no network is assigned to the VDC, a warning is shown above the table instead of the button: You should assign network in order to create vm.
2. Set the general properties
- On the General properties step of the Create a Virtual Machine window, enter a name in the VM name field.
- Select the OS family in the OS type field.
- Select the image in the OS profile field.
- Enter the number of cores in the CPU (Cores) field. The allowed range is shown in the field hint.
- Enter the amount of memory in gigabytes in the RAM field, the minimum is 1 GB. You cannot select another unit.
- Click Next step. The button is available when all required fields are filled in.
3. Set the disk size
- On the Disks step of the Create a Virtual Machine window, enter the system disk size in gigabytes in the Disk size field of the Disk 1 block. The minimum is set by the image and shown in the field hint.
- Click Next step.
4. Connect a network
- On the Networks step of the Create a Virtual Machine window, select a network in the Name field of the Network 1 block. The list contains the networks of the selected VDC.
- Click Next step.
5. Set up the guest OS and create the VM
- On the Guest OS customization step of the Create a Virtual Machine window, enter the password of the
rootuser in the Password field of the User 1 block. - Enter the fully qualified domain name in the Hostname field, for example
vm01.example.com. Latin letters, digits and hyphens are allowed; parts of the name are separated by dots. A part does not start or end with a hyphen, and the last part is at least two letters long. - Click Create a Virtual Machine. The button is available when all steps are filled in correctly. While Center creates the VM, the web interface shows Virtual Machine is creating....
Windows specifics
- The user in the User 1 block is
Administrator: enter its password. - There are no SSH public key 1, First boot commands and Every boot commands fields.
Check the result
When the VM is created, the web interface shows the notification VM <name> successfully created. and opens the page of the new VM.
The new VM has the Creating status: it remains until the node sends the first event about the machine. This is not an error.
If the VM could not be created, the web interface shows a notification with the error. If the VM still appeared in the Virtual Machines list, its status is Create failed; you can delete such a VM — Delete a VM.
More
- Pool — Least-loaded storage pool by default: Center picks a pool that has the image, taking into account how much more data the thin disks of existing VMs can still write. By default, Center picks a pool that is more than 80 % provisioned last, and does not pick a pool that is 90 % or more physically full while other pools are available. Each pool in the list has the tooltip Provisioned …, Used …, Free …. Choose another pool only if it has the image, otherwise Center returns an error.
- Add disk — one more disk, up to five in total. Size — from 1 GB; you can choose the Slot and the Sector size (512 or 4096).
- IOps limit and MBps limit of a disk, MBps limit of a network — speed limits; an empty field means no limit.
- IP — a VM address of your own from the network subnet, without a mask; an empty field means the address is assigned automatically.
- Add network — one more network connection, up to five in total.
- SSH public key 1 — the user's public key; the + button to the right of the field adds one more key.
- Add user — one more guest OS user: Name from 3 to 32 characters and Password.
- Search item for resolver — the DNS search domain. If the field is empty, Center takes the DNS suffix of the network from the Network 1 block, if it was set when the network was created, otherwise the domain from the host name.
- Name Server 1 — the DNS server address. If the field is empty, the DNS servers of the network from the Network 1 block, set when the network was created, are assigned to the guest OS, and if there are none, public DNS servers; set your own here or in the guest OS.
- First boot commands and Every boot commands — commands run at the first and at every start of the VM; the Add command button adds a command.
Next
- Start, stop and restart a VM
- Open the VM console
- Virtual machines — how VMs work.
- OS images — which images are available.
API methods: vms-create — in the API reference.