2015-11-06 16:20:06 +03:00
LC_ALL=C \
PATH=/bin \
2019-03-06 15:29:01 +03:00
HOME=/tmp/lib/domain--1-QEMUGuest1 \
2015-11-06 16:20:06 +03:00
USER=test \
LOGNAME=test \
2019-03-08 14:15:07 +03:00
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 \
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 \
2021-09-21 18:50:00 +03:00
-object secret,id=masterKey0,format=raw,file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \
2021-11-05 11:38:10 +03:00
-machine pseries,usb=off,dump-guest-core=off \
-accel tcg \
2015-11-06 16:20:06 +03:00
-m 512 \
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 \
2021-10-04 23:53:48 +03:00
-device spapr-vscsi,id=scsi0,reg=8192 \
-device spapr-vscsi,id=scsi1,reg=805306368 \
2015-11-06 16:20:06 +03:00
-usb \
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-07-18 14:16:40 +03:00
-device 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 \
2021-10-05 16:24:58 +03:00
-device 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 \
2021-10-05 16:24:58 +03:00
-device spapr-vty,chardev=charserial1,id=serial1,reg=805310464 \
2022-06-22 16:36:23 +03:00
-audiodev '{"id":"audio1","driver":"none"}' \
2021-08-10 18:07:10 +03:00
-msg timestamp=on