mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 01:43:23 +00:00
75a9169881
By default, qemu user's home dir points to '/' which shouldn't be used at all. We therefore pass the HOME variable from the current variable iff not running as SUID, which means that for systemd we never set it. This patch makes sure, that for system QEMU this is always set to libDir/<driver>, session mode is left untouched. Signed-off-by: Erik Skultety <eskultet@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
39 lines
1.4 KiB
Plaintext
39 lines
1.4 KiB
Plaintext
LC_ALL=C \
|
|
PATH=/bin \
|
|
HOME=/tmp/lib/domain--1-fdr-br \
|
|
USER=test \
|
|
LOGNAME=test \
|
|
XDG_DATA_HOME=/tmp/lib/domain--1-fdr-br/.local/share \
|
|
XDG_CACHE_HOME=/tmp/lib/domain--1-fdr-br/.cache \
|
|
XDG_CONFIG_HOME=/tmp/lib/domain--1-fdr-br/.config \
|
|
QEMU_AUDIO_DRV=none \
|
|
/usr/bin/qemu-system-x86_64 \
|
|
-name fdr-br \
|
|
-S \
|
|
-machine pc-1.2,accel=tcg,usb=off,dump-guest-core=off \
|
|
-m 2048 \
|
|
-smp 2,sockets=2,cores=1,threads=1 \
|
|
-uuid 3ec6cbe1-b5a2-4515-b800-31a61855df41 \
|
|
-display none \
|
|
-no-user-config \
|
|
-nodefaults \
|
|
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-fdr-br/monitor.sock,\
|
|
server,nowait \
|
|
-mon chardev=charmonitor,id=monitor,mode=control \
|
|
-rtc base=utc \
|
|
-no-shutdown \
|
|
-device pci-bridge,chassis_nr=8,id=pci.8,bus=pci.0,addr=0x3 \
|
|
-device pci-bridge,chassis_nr=1,id=pci.1,bus=pci.0,addr=0x4 \
|
|
-device pci-bridge,chassis_nr=2,id=pci.2,bus=pci.0,addr=0x5 \
|
|
-device pci-bridge,chassis_nr=3,id=pci.3,bus=pci.0,addr=0x6 \
|
|
-device pci-bridge,chassis_nr=4,id=pci.4,bus=pci.0,addr=0x7 \
|
|
-device pci-bridge,chassis_nr=5,id=pci.5,bus=pci.0,addr=0x8 \
|
|
-device pci-bridge,chassis_nr=6,id=pci.6,bus=pci.0,addr=0x9 \
|
|
-device pci-bridge,chassis_nr=7,id=pci.7,bus=pci.0,addr=0xa \
|
|
-usb \
|
|
-drive file=/var/iso/f18kde.iso,format=raw,if=none,id=drive-ide0-1-0,\
|
|
readonly=on \
|
|
-device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 \
|
|
-vga cirrus \
|
|
-device virtio-balloon-pci,id=balloon0,bus=pci.4,addr=0x6
|