Virsh attach-disk: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * virsh =Overview= =Examples= ==Attaching a File-Based Storage Volume== The command requires at minimum the file-based storage volume path,...") |
|||
Line 13: | Line 13: | ||
<pre> | <pre> | ||
virsh attach-disk testvm-01 /main-storage-pool/test-volume vdb | virsh attach-disk testvm-01 /main-storage-pool/test-volume vdb | ||
<pre> | </pre> | ||
virsh will detect malformed device names and will error out if that is the case. | virsh will detect malformed device names and will error out if that is the case. | ||
=Options= | =Options= |
Revision as of 20:24, 28 June 2017
Internal
Overview
Examples
Attaching a File-Based Storage Volume
The command requires at minimum the file-based storage volume path, as shown by the virsh vol-list command, and the device name under which the disk is exposed to guest, typically "vdX", where X is "a", "b", etc.
virsh attach-disk testvm-01 /main-storage-pool/test-volume vdb
virsh will detect malformed device names and will error out if that is the case.