mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +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>
44 lines
1.6 KiB
Plaintext
44 lines
1.6 KiB
Plaintext
LC_ALL=C \
|
|
PATH=/bin \
|
|
HOME=/tmp/lib/domain--1-gentoo \
|
|
USER=test \
|
|
LOGNAME=test \
|
|
XDG_DATA_HOME=/tmp/lib/domain--1-gentoo/.local/share \
|
|
XDG_CACHE_HOME=/tmp/lib/domain--1-gentoo/.cache \
|
|
XDG_CONFIG_HOME=/tmp/lib/domain--1-gentoo/.config \
|
|
QEMU_AUDIO_DRV=none \
|
|
/usr/bin/qemu-system-x86_64 \
|
|
-name gentoo \
|
|
-S \
|
|
-machine pc-i440fx-1.4,accel=kvm,usb=off,dump-guest-core=off \
|
|
-m 4096 \
|
|
-smp 4,sockets=4,cores=1,threads=1 \
|
|
-uuid a75aca4b-a02f-2bcb-4a91-c93cd848c34b \
|
|
-display none \
|
|
-no-user-config \
|
|
-nodefaults \
|
|
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-gentoo/monitor.sock,\
|
|
server,nowait \
|
|
-mon chardev=charmonitor,id=monitor,mode=control \
|
|
-rtc base=utc \
|
|
-no-shutdown \
|
|
-global PIIX4_PM.disable_s3=0 \
|
|
-global PIIX4_PM.disable_s4=0 \
|
|
-device ich9-usb-ehci1,id=ua-myUSB1,bus=pci.0,addr=0x4.0x7 \
|
|
-device ich9-usb-uhci1,masterbus=ua-myUSB1.0,firstport=0,bus=pci.0,\
|
|
multifunction=on,addr=0x4 \
|
|
-device ich9-usb-uhci2,masterbus=ua-myUSB1.0,firstport=2,bus=pci.0,\
|
|
addr=0x4.0x1 \
|
|
-device ich9-usb-uhci3,masterbus=ua-myUSB1.0,firstport=4,bus=pci.0,\
|
|
addr=0x4.0x2 \
|
|
-device ich9-usb-ehci1,id=ua-myUSB5,bus=pci.0,addr=0x5.0x7 \
|
|
-device ich9-usb-uhci1,masterbus=ua-myUSB5.0,firstport=0,bus=pci.0,\
|
|
multifunction=on,addr=0x5 \
|
|
-device ich9-usb-uhci2,masterbus=ua-myUSB5.0,firstport=2,bus=pci.0,\
|
|
addr=0x5.0x1 \
|
|
-device ich9-usb-uhci3,masterbus=ua-myUSB5.0,firstport=4,bus=pci.0,\
|
|
addr=0x5.0x2 \
|
|
-device usb-host,hostbus=14,hostaddr=6,id=hostdev0,bus=ua-myUSB1.0,port=3 \
|
|
-device usb-host,hostbus=15,hostaddr=6,id=hostdev1,bus=ua-myUSB5.0,port=3 \
|
|
-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3
|