mirror of
https://github.com/ceph/ceph
synced 2025-02-19 08:57:27 +00:00
Merge pull request #32142 from changchengx/doc_libvirt
doc/rbd: simplify libvirt usage Reviewed-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
commit
25a3c76f1a
@ -207,7 +207,7 @@ commands, refer to `Virsh Command Reference`_.
|
||||
<source protocol='rbd' name='libvirt-pool/new-libvirt-image'>
|
||||
<host name='{monitor-host}' port='6789'/>
|
||||
</source>
|
||||
<target dev='vda' bus='virtio'/>
|
||||
<target dev='vdb' bus='virtio'/>
|
||||
</disk>
|
||||
|
||||
Replace ``{monitor-host}`` with the name of your host, and replace the
|
||||
@ -237,7 +237,7 @@ commands, refer to `Virsh Command Reference`_.
|
||||
#. Define the secret. ::
|
||||
|
||||
sudo virsh secret-define --file secret.xml
|
||||
<uuid of secret is output here>
|
||||
{uuid of secret}
|
||||
|
||||
#. Get the ``client.libvirt`` key and save the key string to a file. ::
|
||||
|
||||
@ -258,7 +258,7 @@ commands, refer to `Virsh Command Reference`_.
|
||||
...
|
||||
</source>
|
||||
<auth username='libvirt'>
|
||||
<secret type='ceph' uuid='9ec59067-fdbc-a6c0-03ff-df165c0587b8'/>
|
||||
<secret type='ceph' uuid='{uuid of secret}'/>
|
||||
</auth>
|
||||
<target ...
|
||||
|
||||
@ -292,11 +292,9 @@ following procedures.
|
||||
|
||||
sudo virsh qemu-monitor-command --hmp {vm-domain-name} 'info block'
|
||||
|
||||
#. Check to see if the device from ``<target dev='hdb' bus='ide'/>`` appears
|
||||
under ``/dev`` or under ``proc/partitions``. ::
|
||||
#. Check to see if the device from ``<target dev='vdb' bus='virtio'/>`` exists::
|
||||
|
||||
ls dev
|
||||
cat proc/partitions
|
||||
virsh domblklist {vm-domain-name} --details
|
||||
|
||||
If everything looks okay, you may begin using the Ceph block device
|
||||
within your VM.
|
||||
|
Loading…
Reference in New Issue
Block a user