Results 1 to 2 of 2

Thread: Get disk mappings between host and and Windows guest

  1. #1
    Join Date
    Dec 2020
    Location
    Denmark
    Posts
    44

    Default Get disk mappings between host and and Windows guest

    Using KVM/QEMU
    Guest disks are LVM block device and qcow2 images.
    Using both Virtio-SCSI and Virtio-blk

    With "disk mappings" I mean how can I tell which device on host are mapped to which device on guest?

    I tried the command:
    Code:
    virt-filesystems --filesystems --long --uuid --domain W10_SQL_Test
    Which give this result:
    Code:
    Name      Type       VFS  Label    Size         Parent UUID
    /dev/sda1 filesystem ntfs Recovery 523239424    -      18FC1BBFFC1B95DA
    /dev/sda2 filesystem vfat -        103809024    -      1A22-6B91
    /dev/sda4 filesystem ntfs Drive-C  106727211008 -      E66A260F6A25DD55
    /dev/sdb2 filesystem ntfs Drive-E  53668216832  -      1C287CC4287C9E88
    /dev/sdc2 filesystem ntfs Drive-D  53668216832  -      EE18A5E618A5ADD1
    /dev/sdd2 filesystem ntfs Drive-F  53668216832  -      9A0C8F9B0C8F7155
    Device names are not the same as the one specified in the VM XML so that cannot be used.
    And I've not been able to find the UUID anywhere in the Windows guest, Windows is using completely different IDs (where does these UUID come from?)

    I did succeed by looking at the controller address in Windows (e.g. "PCI bus 7, device 0, function 0" which is equal to the address specified in the VM XML) and then lookup the child-devices of the controller in device-manager. But that's a lot of manual work.....any easier way?

  2. #2
    Join Date
    Dec 2020
    Location
    Denmark
    Posts
    44

    Default Re: Get disk mappings between host and and Windows guest

    Also tried to play with guestfish but couldn't make it work with blk-device

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •