KVM Virtualization Directory-Based Storage Pool Configuration: Difference between revisions
Jump to navigation
Jump to search
Line 16: | Line 16: | ||
Create the new directory, or us an existing directory. | Create the new directory, or us an existing directory. | ||
<pre> | |||
mkdir /iso-images | |||
</pre> | |||
Set directory ownership: | |||
<pre> | |||
chown root:root /iso-images | |||
</pre> | |||
Set directory permissions: | |||
<pre> | |||
chmod 700 /iso-images | |||
</pre> |
Revision as of 00:41, 29 June 2017
External
Internal
Overview
This procedure declares a local directory as a storage pool.
One case when this is useful is when we want to share DVD ISO images with the guest for installation as -disk=.../some-image.iso,device=cdrom argument for virt-install. If the image is not declared as storage volume in a storage pool, libvirt will automatically build a storage pool for it, and sometimes build multiple storage pools for the same image, which is something we want to avoid.
Procedure
Create the new directory, or us an existing directory.
mkdir /iso-images
Set directory ownership:
chown root:root /iso-images
Set directory permissions:
chmod 700 /iso-images