Open dukje opened 10 years ago
The storage pool mentioned above has not been created:
virsh pool-list --all Name State Autostart ----------------------------------------- 0f83f084-8080-413e-b558-b678e504836e active yes 5b77d2f6-061f-410c-8ee7-9e61da6f1927 active yes c92851ab-ec8e-4eba-b60d-96cf3f72fd02 active yes
Expected result is:
virsh pool-list --all Name State Autostart ----------------------------------------- 0f83f084-8080-413e-b558-b678e504836e active yes 5b77d2f6-061f-410c-8ee7-9e61da6f1927 active yes c92851ab-ec8e-4eba-b60d-96cf3f72fd02 active yes ef7be72e-3858-42e4-bde7-cd33aa042ebb active yes
The following steps were necessary:
poolName="ef7be72e-3858-42e4-bde7-cd33aa042ebb" cat << EOF > /root/libvirt-xmls/storage/pools/${poolName}-persistent.xml <pool type="dir"> <name>${poolName}</name> <target> <path>/var/virtualization/vm-persistent/${poolName}</path> </target> </pool> EOF virsh pool-define /root/libvirt-xmls/storage/pools/${poolName}-persistent.xml virsh pool-start ${poolName} virsh pool-autostart ${poolName}
When creating a storage pool the permissions of the new folder in /var/virtualization/vm-persistent/ are as following:
drwxr-xr-x root root
but should be:drwxrws--- root vm-storage
As the umask of the system (0077) as a normal user will create:
drwx--S--- root vm-storage
which is wrong too, the vm-manager should take care of setting the correct permissions.stoney cloud Version 1.2.10.3 Linux vm-node-02 3.10.10-gentoo #1 SMP Fri Sep 6 09:57:16 CEST 2013 x86_64