webvirtcloud icon indicating copy to clipboard operation
webvirtcloud copied to clipboard

Ceph storage is added to the VM instance. XML is not configured correctly

Open XzBuleSky opened this issue 3 years ago • 2 comments

Hello !

  • I created a storage pool for CEPh on KVM(Ceph host cannot specify multiple hosts, why?) image

  • Create a new Ceph disk for the virtual machine instance image

  • 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

image image image image

XzBuleSky avatar Dec 10 '21 10:12 XzBuleSky

i install ceph cluster for testing. i will look at it.

catborise avatar Dec 14 '21 11:12 catborise

i fixed problem. test and feedback pls. thanks

catborise avatar Dec 16 '21 08:12 catborise