VK Cloud logo

Working with snapshots

A disk snapshot is a file that stores a copy of the disk taken at a specific point in time. A snapshot can be used to create a new virtual machine or a new disk.

Snapshot creation is billed.

Creating a snapshot

  1. Go to the VK Cloud management console.

  2. Open the page with the required list of disks.

    • All disks: go to the Cloud Computing → Disks section.

    • Disks of a specific virtual machine:

      1. Go to the Cloud Computing → Virtual Machines section.
      2. In the list of virtual machines, click the name of the VM whose disk snapshot you plan to create.
      3. On the VM page, go to the Disks tab.
  3. Use one of the following methods to open the disk snapshot creation window.

    • Via the disk context menu:

      1. In the list of disks, click  for the desired disk.
      2. Select Create Snapshot.
    • On the disk page:

      1. Click the name of the disk for which you need to create a snapshot.
      2. On the disk page, go to the Disk Snapshots tab.
      3. Above the list of snapshots, click the Create Snapshot button.
  4. In the window that opens, specify the parameters:

    • Disk snapshot name.
    • Source disk.
  5. Click Create Snapshot.

Creating a VM from a snapshot

  1. Go to the VK Cloud management console.

  2. Open the page with the required list of disks.

    • All disks: go to the Cloud Computing → Disks section.

    • Disks of a specific virtual machine:

      1. Go to the Cloud Computing → Virtual Machines section.
      2. In the list of virtual machines, click the name of the VM.
      3. On the VM page, go to the Disks tab.
  3. Open the page with the list of snapshots using one of the following methods:

    • Via the disk context menu:

      1. In the list of disks, click  for the desired disk.
      2. Click Snapshot List.
    • On the disk page:

      1. Click the name of the disk whose snapshots you need to view.
      2. On the disk page, go to the Disk Snapshots tab, or on the General Information tab, click the More button and select Snapshot List.
  4. Click  for the snapshot and select the Create VM Instance option.

  5. Set the VM parameters in the Configuration block:

    • Operating system: select the operating system version or an image that you previously created or imported to VK Cloud.

    • Virtual machine category: select a category of predefined VM configurations.

    • Virtual machine type: select a predefined VM configuration.

      To create a VM with a graphics accelerator, you need a Cloud GPU configuration template. If the required template is not in the list, request it.

    • Availability zone: select the availability zone where the VM will be launched.

    • Number of machines in the configuration: specify the required number of VMs.

  6. Fill in the General information block:

    • Virtual machine name: use only Latin letters, numbers, or special characters -, _, and ..

    • Tags: if necessary, specify a tag for the VM or create a new one.

    • Configure scripts on VM launch: enable the option to add a bash script or a cloud-config script that will be executed on the first VM launch.

  7. Specify the disk parameters in the Disk size and speed block.

    • Disk size: specify the required VM disk size in gigabytes. The maximum disk size is limited. To create a VM with a larger disk, use the OpenStack CLI.

    • Disk type: select the disk type.

  8. Configure the network settings in the Network and firewall settings block.

    • Network: select an existing network or create a new one. When creating a new network, additional fields will appear:

      • SDN: select the virtual network management system. For new accounts, the option is unavailable and Sprut is used by default.

      • Subnet address: specify the CIDR in the format XXX.XXX.XXX.XXX/XX, for example, 10.0.0.0/24.

    • Use configuration drive: enable the option if you need to configure the network on the virtual machine when there is no DHCP server in the network. The option is enabled automatically if an external network or a network with disabled DHCP is selected.

    • DNS name: specify the domain name for private DNS. It can be used to access instances within the internal network.

    • Virtual machine key: select a key for SSH connection or create a new one.

      When you select Create new key, after the VM is created, the private key file *.pem will be automatically downloaded. Save it, it will be needed later for SSH connection to the server.

      The public part of the key will be automatically added to the server.

    • Firewall settings: select the required security groups.

      To connect via SSH, add the ssh or ssh+www group. For more information about configuring network access rules, see the Security groups section.

    • (Optional) Assign external IP: enable the option to assign a new or existing Floating IP address to the VM. The option is available if internet access is enabled for the network.

      The option is always enabled if an external network was previously selected for the VM.

    • (Optional) Bind domain to external IP: enable the option and specify a domain to bind the FQDN to the external IP address. An A record for the selected IP address will be added to the DNS zone. The option is available if the Assign external IP option is enabled.

    • Enable monitoring: enable to install an agent for sending metrics to the monitoring service.

  9. Specify the required parameters in the Backup block.

    By default, backup is enabled with recommended settings, but you can change them:

    • Plan name: specify an arbitrary name for the backup plan.

    • Enable full backup retention strategy (GFS): enable to automatically delete backups after the retention period expires.

      • Keep weekly full backups: specify how many weeks to keep the backup.
      • Keep monthly full backups: specify how many months to keep the backup.
      • Keep yearly full backups: specify how many years to keep the backup.
    • Enable incremental backups: enable the option to create a full backup once a week. On all other days of the week, incremental backups will be created.

    • Backup schedule: select the days of the week and the backup start time. The time is specified in the GMT+03:00 time zone.

    • Enable immutable backups: enable the option to protect backups from deletion using object lock. Two types of lock are available:

      • Temporary protection: protects copies from deletion and overwriting for a specified number of days. Has two modes:

        • Compliance: strict lock. Cannot be removed or changed during the specified retention period.
        • Governance: flexible lock that can be removed by the project administrator.
      • Indefinite protection: protects the copy from deletion until the lock is removed.

  10. Click the Create button.

  11. Wait for the VM to be created. This process may take some time. When the creation is completed, the page with the VM characteristics and connection instructions will open.

Creating a disk from a snapshot

  1. Go to the VK Cloud management console.

  2. Open the page with the required list of disks.

    • All disks: go to the Cloud Computing → Disks section.

    • Disks of a specific virtual machine:

      1. Go to the Cloud Computing → Virtual Machines section.
      2. In the list of virtual machines, click the name of the VM.
      3. On the VM page, go to the Disks tab.
  3. Open the page with the list of snapshots using one of the following methods:

    • Via the disk context menu:

      1. In the list of disks, click  for the desired disk.
      2. Click Snapshot List.
    • On the disk page:

      1. Click the name of the disk whose snapshots you need to view.
      2. On the disk page, go to the Disk Snapshots tab, or on the General Information tab, click the More button and select Snapshot List.
  4. Click  for the snapshot and select the Create Disk option.

  5. Specify the disk parameters:

    • Disk name: required field. If necessary, click Add description and enter text in the field that appears.

    • Disk size: specify the disk size in gigabytes.

    • Bootable disk: enable the option if you need to make the disk bootable.

    • Attach disk to instance: if you need to attach the disk to a virtual machine immediately after creation, enable this option and select the required ВМ in the Select instance field.

  6. Click the Create Disk button.

Deleting a snapshot

  1. Go to the VK Cloud management console.

  2. Open the page with the required list of disks.

    • All disks: go to the Cloud Computing → Disks section.

    • Disks of a specific virtual machine:

      1. Go to the Cloud Computing → Virtual Machines section.
      2. In the list of virtual machines, click the name of the VM.
      3. On the VM page, go to the Disks tab.
  3. Open the page with the list of snapshots using one of the following methods:

    • Via the disk context menu:

      1. In the list of disks, click  for the desired disk.
      2. Click Snapshot List.
    • On the disk page:

      1. Click the name of the disk whose snapshots you need to view.
      2. On the disk page, go to the Disk Snapshots tab, or on the General Information tab, click the More button and select Snapshot List.
  4. Click  for the snapshot and select the Delete Snapshot option.

Was this article helpful?