2015-11-06 16:20:06 +03:00
LC_ALL=C \
PATH=/bin \
2023-03-02 21:05:53 +03:00
HOME=/var/lib/libvirt/qemu/domain--1-QEMUGuest1 \
2015-11-06 16:20:06 +03:00
USER=test \
LOGNAME=test \
2023-03-02 21:05:53 +03:00
XDG_DATA_HOME=/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.local/share \
XDG_CACHE_HOME=/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.cache \
XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.config \
2013-07-17 21:47:01 +04:00
/usr/bin/qemu-system-ppc64 \
2021-08-10 17:39:38 +03:00
-name guest=QEMUGuest1,debug-threads=on \
2015-11-06 16:20:06 +03:00
-S \
2023-03-02 21:05:53 +03:00
-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain--1-QEMUGuest1/master-key.aes"}' \
2022-09-13 17:30:35 +03:00
-machine pseries,usb=off,dump-guest-core=off,memory-backend=ppc_spapr.ram \
2021-11-05 11:38:10 +03:00
-accel tcg \
2022-09-13 17:30:35 +03:00
-cpu POWER9 \
2023-06-21 17:31:46 +03:00
-m size=524288k \
2022-09-13 17:30:35 +03:00
-object '{"qom-type":"memory-backend-ram","id":"ppc_spapr.ram","size":536870912}' \
2022-02-10 14:57:26 +03:00
-overcommit mem-lock=off \
2016-06-23 14:29:16 +03:00
-smp 1,sockets=1,cores=1,threads=1 \
2015-11-06 17:29:52 +03:00
-uuid 2754dd7b-ac8a-4850-aec0-1f3fcd43235b \
2018-03-29 13:51:55 +03:00
-display none \
2018-03-29 13:51:55 +03:00
-no-user-config \
2015-11-06 16:20:06 +03:00
-nodefaults \
2022-02-03 15:31:28 +03:00
-chardev socket,id=charmonitor,fd=1729,server=on,wait=off \
2018-03-29 01:04:58 +03:00
-mon chardev=charmonitor,id=monitor,mode=control \
2018-03-29 13:51:55 +03:00
-rtc base=utc \
2018-03-29 13:51:55 +03:00
-no-shutdown \
2021-09-20 17:22:59 +03:00
-boot strict=on \
2022-09-13 17:30:35 +03:00
-device '{"driver":"pci-ohci","id":"usb","bus":"pci.0","addr":"0x1"}' \
-device '{"driver":"spapr-vscsi","id":"scsi0","reg":8192}' \
-device '{"driver":"spapr-vscsi","id":"scsi1","reg":805306368}' \
2022-07-20 16:37:19 +03:00
-blockdev '{"driver":"file","filename":"/tmp/scsidisk.img","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"raw","file":"libvirt-1-storage"}' \
2022-09-13 17:30:35 +03:00
-device '{"driver":"scsi-hd","bus":"scsi1.0","channel":0,"scsi-id":0,"lun":0,"device_id":"drive-scsi1-0-0-0","drive":"libvirt-1-format","id":"scsi1-0-0-0","bootindex":1}' \
qemu: Build command line for the new address format
For any disk controller model which is not "lsilogic", the command
line will be like:
-drive file=/dev/sda,if=none,id=drive-scsi0-0-3-0,format=raw \
-device scsi-disk,bus=scsi0.0,channel=0,scsi-id=3,lun=0,i\
drive=drive-scsi0-0-3-0,id=scsi0-0-3-0
The relationship between the libvirt address attrs and the qdev
properties are (controller model is not "lsilogic"; strings
inside <> represent libvirt adress attrs):
bus=scsi<controller>.0
channel=<bus>
scsi-id=<target>
lun=<unit>
* src/qemu/qemu_command.h: (New param "virDomainDefPtr def"
for function qemuBuildDriveDevStr; new param "virDomainDefPtr
vmdef" for function qemuAssignDeviceDiskAlias. Both for
virDomainDiskFindControllerModel's use).
* src/qemu/qemu_command.c:
- New param "virDomainDefPtr def" for qemuAssignDeviceDiskAliasCustom.
For virDomainDiskFindControllerModel's use, if the disk bus is "scsi"
and the controller model is not "lsilogic", "target" is one part of
the alias name.
- According change on qemuAssignDeviceDiskAlias and qemuBuildDriveDevStr
* src/qemu/qemu_hotplug.c:
- Changes to be consistent with declarations of qemuAssignDeviceDiskAlias
qemuBuildDriveDevStr, and qemuBuildControllerDevStr.
* tests/qemuxml2argvdata/qemuxml2argv-pseries-vio-user-assigned.args,
tests/qemuxml2argvdata/qemuxml2argv-pseries-vio.args: Update the
generated command line.
2012-02-28 07:39:43 +04:00
-chardev pty,id=charserial0 \
2022-09-13 17:30:35 +03:00
-device '{"driver":"spapr-vty","chardev":"charserial0","id":"serial0","reg":536870912}' \
qemu: Build command line for the new address format
For any disk controller model which is not "lsilogic", the command
line will be like:
-drive file=/dev/sda,if=none,id=drive-scsi0-0-3-0,format=raw \
-device scsi-disk,bus=scsi0.0,channel=0,scsi-id=3,lun=0,i\
drive=drive-scsi0-0-3-0,id=scsi0-0-3-0
The relationship between the libvirt address attrs and the qdev
properties are (controller model is not "lsilogic"; strings
inside <> represent libvirt adress attrs):
bus=scsi<controller>.0
channel=<bus>
scsi-id=<target>
lun=<unit>
* src/qemu/qemu_command.h: (New param "virDomainDefPtr def"
for function qemuBuildDriveDevStr; new param "virDomainDefPtr
vmdef" for function qemuAssignDeviceDiskAlias. Both for
virDomainDiskFindControllerModel's use).
* src/qemu/qemu_command.c:
- New param "virDomainDefPtr def" for qemuAssignDeviceDiskAliasCustom.
For virDomainDiskFindControllerModel's use, if the disk bus is "scsi"
and the controller model is not "lsilogic", "target" is one part of
the alias name.
- According change on qemuAssignDeviceDiskAlias and qemuBuildDriveDevStr
* src/qemu/qemu_hotplug.c:
- Changes to be consistent with declarations of qemuAssignDeviceDiskAlias
qemuBuildDriveDevStr, and qemuBuildControllerDevStr.
* tests/qemuxml2argvdata/qemuxml2argv-pseries-vio-user-assigned.args,
tests/qemuxml2argvdata/qemuxml2argv-pseries-vio.args: Update the
generated command line.
2012-02-28 07:39:43 +04:00
-chardev pty,id=charserial1 \
2022-09-13 17:30:35 +03:00
-device '{"driver":"spapr-vty","chardev":"charserial1","id":"serial1","reg":805310464}' \
2022-06-22 16:36:23 +03:00
-audiodev '{"id":"audio1","driver":"none"}' \
2022-09-13 17:30:35 +03:00
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
2021-08-10 18:07:10 +03:00
-msg timestamp=on