Closed Xylopyrographer closed 5 months ago
I remember these devtool exercises working for me back when I created them. I think I experienced some hiccups initially with QEMU's default TAP networking but nothing I wasn't able to quickly sort out.
Can you ping 192.168.1.72 from your host machine? If you can't then SSH won't work either.
I don't think the QEMU VM needs internet access to execute the devtool exercises. It only needs to communicate with your host machine.
I think the QEMU VM key can go stale when the VM exits. That's why I regenerate the key on page 221 like so:
$ ssh-keygen -f "/home/frank/.ssh/known_hosts" -R "192.168.7.2"
Replace frank
with your username in the path above and try connecting again.
I noticed your QEMU VM is running a bleeding edge Linux kernel.
Linux version 6.5.13-yocto-standard (oe-user@oe-host) (aarch64-poky-linux-gcc (GCC) 13.2.0, GNU ld (GNU Binutils) 2.41.0.20231213) #1 SMP PREEMPT Thu Dec 14 16:41:39 UTC 2023
I tested these devtool exercises against Yocto 3.1 (Dunfell) LTS. Although it's unlikely, devtool may have regressed in more recent versions of Yocto. I advise that you use an LTS release of Yocto like 4.0 (Kirkstone) to ensure continued maintenance.
Thanks again for the reply.
I can try rebuilding the VM with Yocto Kirkstone. Though interestingly, when regenerating the ssh key, the response is:
Host 192.168.7.2 not found in /home/resu/.ssh/known_hosts
Guess I'll figure out what that means first...
BTW, I am enjoying the book. 👍
To close the loop:
Did get this working.
Problem was a whacked out firewall configuration on the Debian machine.
Between firewalld, the Firewall GUI app and nfstables things got out of sync.
Finally figured out how to disable all that and Bob's yer uncle we're good to go.
Haven't revisited how to reset all the firewall configuration. Bigger fish to fry at the moment.
Thanks for the replies.
Hello:
Working through MELP, 3rd Ed.
In Chapter 7, page 218, after building and confirming the QEMU VM runs (using
runqemu qemuarm64 nographic
), I try tossh
into it by opening a new Terminal tab and enterssh root@192.168.7.2
.The connection attempt eventually fails on a time out.
Similarly down on page 219 at step 7, running
devtool deploy-target bubblewrap root@192.168.7.2
also fails with a connection time out.Everything seems to be up and running as it should on the QEMU VM. Starting it and running through the startup console dump gives:
Running the
ssh
connect from the non-QEMU VM Terminal tab in verbose mode gives:Other commands executed from within the QEMU VM also seem to indicate that things are OK on the VM. Examples:
and
As well, I can telnet in to the VM itself by running (from within the VM):
telnet localhost 22
which returns:So I think all is as it should be on the QEMU side of things?
FWIW, cannot seem to get to the Internet from the QUEM VM. Example, pinging
4.4.4.4
returnsDestination Host Unreachable
.Just need the magic keystrokes or config info to get in from outside the VM.
Any hints?
Thanks.