diff options
author | Naresh Kamboju <naresh.kamboju@linaro.org> | 2016-06-28 17:44:36 +0530 |
---|---|---|
committer | Naresh Kamboju <naresh.kamboju@linaro.org> | 2016-06-28 18:02:40 +0530 |
commit | f267026ea3ad8cc92e7442b04f71daaa13ea8327 (patch) | |
tree | c8b3c4ff9d94c4b8cb91b664855c6897fa032dd4 | |
parent | ade709643672b24e007945b994bef2dddc58fe1b (diff) |
kvm-arm64-guest-on-arm64-host: fix qemu-system-aarch64 args
Updating more options to qemu-system-aarch64 to 64-bit guest on 64-bit host
Change-Id: Icf4ee11b8da27e305dc4883f0121b69795470293
Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
-rw-r--r-- | generic/linux/kvm-arm64-guest-on-arm64-host.yaml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/linux/kvm-arm64-guest-on-arm64-host.yaml b/generic/linux/kvm-arm64-guest-on-arm64-host.yaml index 63626f2..8d720ca 100644 --- a/generic/linux/kvm-arm64-guest-on-arm64-host.yaml +++ b/generic/linux/kvm-arm64-guest-on-arm64-host.yaml @@ -29,12 +29,16 @@ run: - Run "sudo apt-get install qemu-system wget xz-utils" - Use arm64 kernel Image from /boot - "cp /boot/vmlinuz-`uname -r` Image" + - Use arm64 initrd.img from /boot + - Note: please double check is it Debian initrd image or CentOS initrd + - Note: please check the name of initrd file under /boot and kernel version appended to file name + - "cp /boot/initrd.img-`uname -r` initrd.img" - Download arm64 minimal rootfs from linaro snapshots - Note: please double check latest in the below link it may be build number - "wget http://snapshots.linaro.org/ubuntu/images/kvm-guest/latest/arm64/kvm-arm64.qcow2.xz" - "xz -d kvm-arm64.qcow2.xz" - Test arm64 guest Image on arm64 host - - Run "qemu-system-aarch64 -smp 2 -m 512 -cpu host -M virt -kernel Image -append 'root=/dev/vda2 rw rootwait mem=512M console=ttyAMA0,38400n8 earlycon=pl011,0x9000000' -device virtio-blk-device,drive=image -drive if=none,id=image,file=kvm-arm64.qcow2 -nographic -enable-kvm 2>&1 | tee tee kvm-arm64.log" + - Run "qemu-system-aarch64 -smp 2 -m 512 -cpu host -machine type=virt,gic-version=host -kernel Image -initrd initrd.img -append 'root=/dev/vda2 rw rootwait console=ttyAMA0,38400n8 earlycon=pl011,0x9000000' -device virtio-blk-device,drive=image -drive if=none,id=image,file=kvm-arm64.qcow2 -nographic -enable-kvm 2>&1 | tee tee kvm-arm64.log" - Wait for couple of minutes let the qemu start booting guest kernel expected: |