Skip to main content

Locate VM Disks

When managing Virtual Machines (VMs) using Virtual Machine Orchestrator (VMO), you may need to extend the disks on the VMs. When a VM has multiple disks of the same size, locating the disks on each VM can be difficult. Use this guide to help you locate disks on Linux and Windows VMs.

Prerequisites

  • A deployed VM in an active cluster that has the Virtual Machine Orchestrator (VMO) pack.

  • Access to the VMO cluster.

Locate Disks

  1. Open a shell session on the VM. Refer to our Virtctl guide for help with accessing Linux VMs locally.

  2. Use the following kubectl command to locate the virt-launcher pod. This is the pod that contains the VM disks.

    kubectl get pods --all-namespaces --selector kubevirt.io=virt-launcher
    Example output
    NAMESPACE    NAME                                   READY   STATUS             RESTARTS   AGE
    my-vms virt-launcher-vmname-9qz6n 3/3 Running 0 2h31m
  3. Open a shell session in the virt-launcher pod. Replace <namespace> with the namespace where the pod is located and <vm-name> with the name of the virt-launcher pod.

    kubectl exec --stdin --tty --namespace <namespace> <vm-name> -- /bin/bash
  4. Issue the following command to list the VM block devices.

    virsh domblklist 1
    Example output
    Target     Source
    ------------------------------------------------
    vda /dev/datavolume-os
    vdb /dev/disk-blk-2
    vdc /dev/disk-blk-3
    sda /dev/disk-scsi-4
    sdb /dev/disk-scsi-5

    Use this output to help Match Disks on the Palette VMO cluster's Virtual Machines > Disks tab.

Match Disks

  1. Log in to Palette.

  2. From the left main menu, select Clusters and click on your cluster.

  3. Navigate to the Virtual Machines > Disks tab.

  4. Use the final output from the Locate Disks section to help match the disk names in Palette.

    For example, if the source for a disk in the terminal output is /dev/disk-blk-2, this would match disk-blk-2 in Palette. With this match, you can now determine the target for the disk as displayed in the Target column from the virsh domblklist 1 output table.

    Example output
    Target     Source
    ------------------------------------------------
    vda /dev/datavolume-os
    vdb /dev/disk-blk-2
    vdc /dev/disk-blk-3
    sda /dev/disk-scsi-4
    sdb /dev/disk-scsi-5