mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-05 04:41:20 +00:00
5745dc123a
This improves the support for qemu rbd devices by adding support for a few key features (e.g., authentication) and cleaning up the way in which rbd configuration options are passed to qemu. An <auth> member of the disk source xml specifies how librbd should authenticate. The username attribute is the Ceph/RBD user to authenticate as. The usage or uuid attributes specify which secret to use. Usage is an arbitrary identifier local to libvirt. The old RBD support relied on setting an environment variable to communicate information to qemu/librbd. Instead, pass those options explicitly to qemu. Update the qemu argument parsing and tests accordingly. Signed-off-by: Sage Weil <sage@newdream.net> Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
11 lines
506 B
Plaintext
11 lines
506 B
Plaintext
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test \
|
|
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor \
|
|
unix:/tmp/test-monitor,server,nowait -no-acpi -boot c -drive \
|
|
file=/dev/HostVG/QEMUGuest1,if=ide,bus=0,unit=0 -drive \
|
|
file=rbd:pool/image:\
|
|
id=myname:\
|
|
key=QVFDVm41aE82SHpGQWhBQXEwTkN2OGp0SmNJY0UrSE9CbE1RMUE=:\
|
|
auth_supported=cephx none:\
|
|
mon_host=mon1.example.org\:6321\;mon2.example.org\:6322\;mon3.example.org\:6322,\
|
|
if=virtio,format=raw -net none -serial none -parallel none -usb
|