Kvmtool failure on hikey620

96boards

#1

My host kernel is 4.9.0( compiled from https://github.com/96boards/linux), following the article (https://www.96boards.org/blog/running-kvm-guest-hikey/), I run the command like this:
lkvm run --console serial -c2 -m256 -k Image -n mode=user,trans=mmio -p console=“ttyS0 earlycon=uart,mmio,0x3f8”

this guest kernel output the panic log:
###################################################
Freeing unused kernel memory: 352K (ffffffc000b1c000 - ffffffc000
b74000)
[ 2.623360] Failed to execute /virt/init (error -8). Attempting defaults…
[ 2.627551] Kernel panic - not syncing: No working init found. Try passing i
nit= option to kernel. See Linux Documentation/init.txt for guidance.

####################################################

I check the init file on ~/.lkvm/default/vrit folder, but it’s zero size?

#####################################################
root@linaro-alip:~/.lkvm/default/virt# ls -lh
[2017-07-20 19:10:20
total 4.0K
drwxr-xr-x 2 root root 4.0K Jul 3 18:48 home
-rwxr-xr-x 1 root root 0 Jul 3 18:48 init

######################################################