Fix kvm support in Ubuntu 24/262024/1
authorHyunggi Lee <hyunggi.lee@samsung.com>
Mon, 2 Aug 2021 01:25:21 +0000 (10:25 +0900)
committerHyunggi Lee <hyunggi.lee@samsung.com>
Mon, 2 Aug 2021 01:25:35 +0000 (10:25 +0900)
commit4da6192f95b3eeaba00a2151891f2ae5fb84f0fe
tree3ab73338ec405822b2685bda3d8c31c21e9fbbdc
parent76e43cc0d99cab56e830eb6700a1c8e7d9ebcbc8
Fix kvm support in Ubuntu

In Ubuntu, there is no qemu-kvm, only kvm executable.
check qemu-kvm, and kvm executable file.

qemu options has changed.
problem:
  [  129s] qemu-system-x86_64: -drive file=/home/hglee/GBS-ROOT/t65std/local/BUILD-ROOTS/scratch.armv7l.0.img,format=raw,if=none,id=disk,serial=1,cache=unsafe: Block format 'raw' does not support the option 'serial'

fix serial option

ref:
- https://github.com/openSUSE/obs-build/commit/2514958e1d6af6c10515eea995ae03b01a9b762c

Change-Id: I32c51a923b25cb25f6ec1551a3b73e66f3f782e6
Signed-off-by: Hyunggi Lee <hyunggi.lee@samsung.com>
build-vm-kvm