← history for chapter-6/print-image-file.sh
df6c609fchapter-6/print-image-file.sh9 lines⬡ raw↓ download
1
2
3
4
5
6
7
8
9
#! /bin/bash -x
#
# Prints the disk image for the vm ${VM}
#
# Usage:
# ./print-image-file.sh <my-vm-name>

VM=$1
virsh dumpxml ${VM} | grep 'source file'