mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-03 11:51:11 +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>
35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
LC_ALL=C \
|
|
PATH=/bin \
|
|
HOME=/tmp/lib/domain--1-QEMUGuest1 \
|
|
USER=test \
|
|
LOGNAME=test \
|
|
XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest1/.local/share \
|
|
XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest1/.cache \
|
|
XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
|
|
QEMU_AUDIO_DRV=none \
|
|
/usr/bin/qemu-system-ppc64 \
|
|
-name QEMUGuest1 \
|
|
-S \
|
|
-machine pseries,accel=tcg,usb=off,dump-guest-core=off \
|
|
-m 512 \
|
|
-smp 1,sockets=1,cores=1,threads=1 \
|
|
-uuid 2754dd7b-ac8a-4850-aec0-1f3fcd43235b \
|
|
-display none \
|
|
-no-user-config \
|
|
-nodefaults \
|
|
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-QEMUGuest1/monitor.sock,\
|
|
server,nowait \
|
|
-mon chardev=charmonitor,id=monitor,mode=control \
|
|
-rtc base=utc \
|
|
-no-shutdown \
|
|
-device spapr-vscsi,id=scsi0,reg=0x2000 \
|
|
-device spapr-vscsi,id=scsi1,reg=0x3000 \
|
|
-usb \
|
|
-drive file=/tmp/scsidisk.img,format=raw,if=none,id=drive-scsi1-0-0-0 \
|
|
-device scsi-hd,bus=scsi1.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi1-0-0-0,\
|
|
id=scsi1-0-0-0,bootindex=1 \
|
|
-chardev pty,id=charserial0 \
|
|
-device spapr-vty,chardev=charserial0,id=serial0,reg=0x30000000 \
|
|
-chardev pty,id=charserial1 \
|
|
-device spapr-vty,chardev=charserial1,id=serial1,reg=0x30001000
|