Reputation: 111
Trying to follow https://azeria-labs.com/emulate-raspberry-pi-with-qemu/ to set up the lab. The following command is giving an error
qemu-system-arm -kernel '/root/Documents/Raspbian qemu/qemu-rpi-kernel-master/kernel-qemu-4.4.34-jessie' -cpu arm1176 -m 256 -M versatilepb -serial stdio -append "root=/dev/sda2 rootfstype=ext4 rw" -hda '/root/Documents/Raspbian qemu/2017-04-10-raspbian-jessie.img' -redir tcp:5022::22 -no-reboot
qemu-system-arm: -redir: invalid option
Upvotes: 10
Views: 10707
Reputation: 11523
You're using a newer QEMU version than the document author was. -redir was first deprecated and then removed altogether. https://wiki.qemu.org/Features/RemovedFeatures is where the project documents removed options and the replacement options you should use instead.
In this case I think "-redir tcp:5022::22" becomes "-nic user,hostfwd=tcp::5022-:22".
Upvotes: 26