diff options
| author | Taras Madan <tarasmadan@google.com> | 2021-09-24 16:03:31 +0000 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2021-09-29 13:23:14 +0200 |
| commit | dab80c1452e554e74214aa31fbb35ffe51495f97 (patch) | |
| tree | 73b814e83d1f6fa391f053cf6f5f518810cf8f4e /docs/linux | |
| parent | cac07d6cb6e13974e6e29866569876825de72a88 (diff) | |
docs/linux: format QEMU section
Diffstat (limited to 'docs/linux')
| -rw-r--r-- | docs/linux/setup_ubuntu-host_qemu-vm_x86-64-kernel.md | 16 |
1 files changed, 12 insertions, 4 deletions
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) ``` |
