The virtual Raspberry Pi 4 board connects by default over the ethernet interface.
To set up a connection over Wi-Fi, perform the following:
Create a Raspberry Pi 4 device with the "lite" firmware version and log in using the default credentials (
pi
/raspberry
).Open the configuration tool.
sudo raspi-config
Select
System Options
(menu item 1)Select
Wireless LAN
(menu item S1).Set the country. In our example, we will use the United States. (Type "u" to quickly navigate the menu.)
Set the SSID to
Arm
and the passphrase topassword
.At the main configuration screen, choose Finish. (Push the right arrow on your keyboard twice.)
Do not reboot the machine.
Verify that the wlan0 interface shows a valid IPv4 address that does not start with 169. Please note: the IPv6 address for this interface is a local-link auto address and not a real IPv6 address.
ip addr show wlan0
Test the Wi-Fi connection to the internet by turning off the ethernet interface and trying to ping a public domain. Look for a result of
0% packet loss
.sudo ifconfig eth0 down
ping -c5 aws.comAfter the test, you can bring the ethernet interface back up.
sudo ifconfig eth0 up