From dab80c1452e554e74214aa31fbb35ffe51495f97 Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Fri, 24 Sep 2021 16:03:31 +0000 Subject: docs/linux: format QEMU section --- docs/linux/setup_ubuntu-host_qemu-vm_x86-64-kernel.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'docs') diff --git a/docs/linux/setup_ubuntu-host_qemu-vm_x86-64-kernel.md b/docs/linux/setup_ubuntu-host_qemu-vm_x86-64-kernel.md index 02d120e7a..cedac8d16 100644 --- a/docs/linux/setup_ubuntu-host_qemu-vm_x86-64-kernel.md +++ b/docs/linux/setup_ubuntu-host_qemu-vm_x86-64-kernel.md @@ -178,14 +178,18 @@ For additional options of `create-image.sh`, please refer to `./create-image.sh ## QEMU -Install `QEMU`: +### Install QEMU +Command: ``` bash -sudo apt-get install qemu-system-x86 +sudo apt install qemu-system-x86 ``` -Make sure the kernel boots and `sshd` starts: +### Verify + +Make sure the kernel boots and `sshd` starts. +Command: ``` bash qemu-system-x86_64 \ -m 2G \ @@ -220,17 +224,21 @@ Booting the kernel. [ ok ] Starting OpenBSD Secure Shell server: sshd. ``` -After that you should be able to ssh to QEMU instance in another terminal: +After that you should be able to ssh to QEMU instance in another terminal. +Command: ``` bash ssh -i $IMAGE/stretch.id_rsa -p 10021 -o "StrictHostKeyChecking no" root@localhost ``` +### Troubleshooting + If this fails with "too many tries", ssh may be passing default keys before the one explicitly passed with `-i`. Append option `-o "IdentitiesOnly yes"`. To kill the running QEMU instance press `Ctrl+A` and then `X` or run: +Command: ``` bash kill $(cat vm.pid) ``` -- cgit mrf-deployment