[libvirt-users] How can I rebase network disk?

Boxiang Zhu bxzhu_5355 at 163.com
Fri Nov 2 05:42:56 UTC 2018



Hi.
    I am using openstack, ceph and libvirt now.


    The live volume migration will call the libvirt rebase function in openstack nova project.
    https://github.com/openstack/nova/blob/stable/rocky/nova/virt/libvirt/driver.py#L1497
    https://github.com/openstack/nova/blob/stable/rocky/nova/virt/libvirt/guest.py#L802


    But I use the ceph as the openstack block backend. And the type of disk is network in xml.
<disk type='network' device='disk'>
  <driver name='qemu' type='raw' cache='writeback' discard='unmap'/>
  <auth username='cinder'>
    <secret type='ceph' uuid='86d3922a-b471-4dc1-bb89-b46ab7024e81'/>
  </auth>
  <source protocol='rbd' name='volumes002/volume-127f46fc-ef10-4462-af30-c3893cda31f9'>
    <host name='172.16.140.63' port='6789'/>
  </source>
  <target dev='vdb' bus='virtio'/>
  <serial>127f46fc-ef10-4462-af30-c3893cda31f9</serial>
  <alias name='virtio-disk1'/>
  <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
</disk>


    Now I found it is not supported to rebase network disk. It is only rebase block or file disk now.
    https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainBlockRebase


    My question is that can I rebase network disk by some other ways from libvirt?


    Cheers,
    Boxiang
    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20181102/b8844c47/attachment.htm>


More information about the libvirt-users mailing list