[GH-ISSUE #472] Ceph storage is added to the VM instance. XML is not configured correctly #286

Open
opened 2026-02-27 15:58:07 +03:00 by kerem · 2 comments
Owner

Originally created by @XzBuleSky on GitHub (Dec 10, 2021).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/472

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

Originally created by @XzBuleSky on GitHub (Dec 10, 2021). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/472 Hello ! * I created a storage pool for CEPh on KVM(Ceph host cannot specify multiple hosts, why?) ![image](https://user-images.githubusercontent.com/33563050/145554057-303f15db-d4d1-4c3d-8299-179f882b3d20.png) * Create a new Ceph disk for the virtual machine instance ![image](https://user-images.githubusercontent.com/33563050/145554208-788bfd64-3e9e-4fc3-9493-1d1d1bc2e5c2.png) * 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](https://user-images.githubusercontent.com/33563050/145555808-2c734007-b4bd-412f-a7bc-12a3819953a1.png) ![image](https://user-images.githubusercontent.com/33563050/145555862-cabb4e82-3205-426a-9995-1243b507876b.png) ![image](https://user-images.githubusercontent.com/33563050/145555887-7c050a8b-de78-45ef-aee2-9296e066b28e.png) ![image](https://user-images.githubusercontent.com/33563050/145556687-bef72bf1-3b0a-4746-b04b-d6272a0cc02c.png)
Author
Owner

@catborise commented on GitHub (Dec 14, 2021):

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

<!-- gh-comment-id:993467642 --> @catborise commented on GitHub (Dec 14, 2021): i install ceph cluster for testing. i will look at it.
Author
Owner

@catborise commented on GitHub (Dec 16, 2021):

i fixed problem. test and feedback pls.
thanks

<!-- gh-comment-id:995557115 --> @catborise commented on GitHub (Dec 16, 2021): i fixed problem. test and feedback pls. thanks
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#286
No description provided.