webvirtcloud
webvirtcloud copied to clipboard
Ceph storage is added to the VM instance. XML is not configured correctly
Hello !
-
I created a storage pool for CEPh on KVM(Ceph host cannot specify multiple hosts, why?)
-
Create a new Ceph disk for the virtual machine instance
-
Viewing the VIRTUAL machine instance XML configuration information is not what I want.
<disk type='file' device='disk'>
<driver name='qemu' type='raw' cache='directsync'/>
<source file='libvirt-pool/test'/>
<target dev='vdb' bus='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
</disk>
- I want the configuration to be
<disk type='network' device='disk'>
<driver name='qemu' type='raw'/>
<auth username='xxxxx'>
<secret type='ceph' uuid='xxxxxxxx'/>
</auth>
<source protocol='rbd' name='libvirt-pool/test'>
<host name='192.168.xxxx' port='6789'/>
<host name='192.168.xxxx' port='6789'/>
<host name='192.168.xxxx' port='6789'/>
</source>
<target dev='vdb' bus='virtio'/>
<alias name='virtio-disk1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x10' function='0x0'/>
</disk>
- Second problem: When I create the ceph disk in the ceph storage pool first, the vm instance mounts the ceph disk, and the startup error occurs, Ceph storage pool path is None.
libvirt Error - Cannot access storage file 'None/test': No such file or directory
i install ceph cluster for testing. i will look at it.
i fixed problem. test and feedback pls. thanks