Linux Virtualization Adding Storage to Guests: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 19: Line 19:
Use [[virsh attach-disk]] as shown in the example, by specifying 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:
Use [[virsh attach-disk]] as shown in the example, by specifying 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:


{{InternalVirsh_attach-disk#Attaching_a_File-Based_Storage_Volume|Attaching a File-Based Storage Volume with virsh attach-disk}}
{{Internal|Virsh_attach-disk#Attaching_a_File-Based_Storage_Volume|Attaching a File-Based Storage Volume with virsh attach-disk}}


==Build a File System==
==Build a File System==


==Mount at Boot==
==Mount at Boot==

Revision as of 20:26, 28 June 2017

External

Internal

Add a Storage Volume as Block Device to Guest

Provision the Storage Volume

Create the storage volume with:

   virsh vol-create-as

Configure the Guest to Mount the Storage Volume at Boot

Use virsh attach-disk as shown in the example, by specifying 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:

Attaching a File-Based Storage Volume with virsh attach-disk

Build a File System

Mount at Boot