mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +00:00
7b7da9e283
To allow using failover with gluster it's necessary to specify multiple volume hosts. Add support for starting qemu with such configurations. Signed-off-by: Peter Krempa <pkrempa@redhat.com>
35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
LC_ALL=C \
|
|
PATH=/bin \
|
|
HOME=/home/test \
|
|
USER=test \
|
|
LOGNAME=test \
|
|
QEMU_AUDIO_DRV=none \
|
|
/usr/bin/qemu \
|
|
-name QEMUGuest1 \
|
|
-S \
|
|
-M pc \
|
|
-m 214 \
|
|
-smp 1,sockets=1,cores=1,threads=1 \
|
|
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
|
-nographic \
|
|
-nodefaults \
|
|
-monitor unix:/tmp/lib/domain--1-QEMUGuest1/monitor.sock,server,nowait \
|
|
-no-acpi \
|
|
-boot c \
|
|
-usb \
|
|
-drive file=gluster://example.org:6000/Volume1/Image,format=raw,if=none,\
|
|
id=drive-virtio-disk0 \
|
|
-device virtio-blk-pci,bus=pci.0,addr=0x3,drive=drive-virtio-disk0,\
|
|
id=virtio-disk0 \
|
|
-drive 'file=gluster+unix:///Volume2/Image?socket=/path/to/sock,format=raw,\
|
|
if=none,id=drive-virtio-disk1' \
|
|
-device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk1,\
|
|
id=virtio-disk1 \
|
|
-drive file.driver=gluster,file.volume=Volume3,file.path=/Image.qcow2,\
|
|
file.server.0.type=tcp,file.server.0.host=example.org,file.server.0.port=6000,\
|
|
file.server.1.type=tcp,file.server.1.host=example.org,file.server.1.port=24007,\
|
|
file.server.2.type=unix,file.server.2.socket=/path/to/sock,format=qcow2,\
|
|
if=none,id=drive-virtio-disk2 \
|
|
-device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk2,\
|
|
id=virtio-disk2
|