* [Qemu-devel] [AARCH64]How to provide ssh key to QEMU
@ 2018-01-31 17:39 Nitin Saxena
0 siblings, 0 replies; only message in thread
From: Nitin Saxena @ 2018-01-31 17:39 UTC (permalink / raw)
To: qemu-devel
Hi,
I am able to successfully launch xenial-server-cloudimg-arm64-uefi1.img
(cloud image) using following command
================
qemu-system-aarch64 \
-smp 2 \
-m 1024 \
-M virt \
-cpu cortex-a57 \
-bios QEMU_EFI.fd \
-nographic \
-device virtio-blk-device,drive=image \
-drive
if=none,id=image,file=ubuntu-16.04-server-cloudimg-arm64-uefi1.img \
-device virtio-blk-device,drive=cloud \
-drive if=none,id=cloud,file=cloud.img \
-device virtio-net-device,netdev=user0 \
-netdev user,id=user0 \
-redir tcp:2222::22
====================
I want to use combination of -kernel argument (instead of -bios and UEFI
image). I did this with ext4 xenial image provided by ubuntu.
=================
qemu-system-aarch64 -enable-kvm -m 512 -smp 4 -cpu host \
-M virt,gic_version=3 -nographic \
-kernel boot/vmlinuz-4.4.0-112-generic --append "console=ttyAMA0
root=/dev/vda rw" \
-drive file=xenial-server-cloudimg-arm64.img,if=virtio,aio=threads \
-netdev user,id=user0 -device virtio-net,netdev=user0 \
-redir tcp:2222::22
====================
Using above command VM launches successfully and login prompt comes. The
only problem is I haven't provided ssh key through -drive=cloud hence I am
not able to login above VM launch. So I tried with following qemu command
==================
qemu-system-aarch64 -enable-kvm -m 512 -smp 4 -cpu host \
-M virt,gic_version=3 -nographic \
-kernel boot/vmlinuz-4.4.0-112-generic --append "console=ttyAMA0
root=/dev/vda rw" \
-drive file=xenial-server-cloudimg-arm64.img,if=virtio,aio=threads \
-device virtio-blk-device,drive=cloud \
-drive if=none,id=cloud,file=cloud.img \
-netdev user,id=user0 -device virtio-net,netdev=user0 \
-redir tcp:2222::22
==================
Addition of highlighted command crashes VM. Can somebody help about what I
am doing wrong here? I find hard in searching internet who has tried
launching VM this way instead of using UEFI image.
Thanks,
Nitin
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-01-31 17:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-31 17:39 [Qemu-devel] [AARCH64]How to provide ssh key to QEMU Nitin Saxena
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).