Open the AVD Virtual Device

MET CS694 Virtual Lab Topics


Start the Nested VM

  1. In the CS694 VLab, open the Hyper-V Manager from the Desktop.
  2. Hyper-V Manager desktop icon

  3. In the ‘User Account Control’ enter your BU password.
    User Account Control prompt with an empty Password field and Yes and No buttons

  4. Right click CS694 from the Virtual Machines list, then click Start.
  5. Hyper-V Manager with the CS694 machine's right-click menu and Start circled in red

  6. Once the VM starts, right click CS694 again, then click Connect.
  7. Hyper-V Manager with the running CS694 machine's right-click menu and Connect circled in red

  8. Log in to the user metstudent with the password CS694vlab.
  9. CS694 virtual machine window showing the Ubuntu login screen for user metstudent with an empty password field


Start the AVD from Container

  1. Click on the Android Virtual Device icon in the left bar.
  2. Ubuntu desktop with the Android Virtual Device (AVD) icon in the left bar

    You will receive a notification when the container is ready.
    Notification: The Android Virtual Device is now running, check container status with the docker ps command

  3. When the container is active, it can be checked from a terminal with the docker ps command.
  4. The Android Virtual Device is also available to the abd command.

    NOTE: If the device appears as “offline”, wait 5 minutes for it to startup and try again. Proceed when it is listed as a “device”.
    Two adb devices outputs: emulator-5554 listed as offline, then as device after waiting 5 minutes

  5. Access the android virtual device’s GUI with the command scrcpy -s <name of device> &.
  6. The window that appears is the interface to the active android device in the container.


Ending your Session

  1. Close the AVD GUI window, then stop the container with the docker stop avd-device command.
  2. Stop the AVD container with the docker stop avd-device command, then power off the Ubuntu VM with the sudo poweroff command.
  3. Terminal running docker stop avd-device, then sudo poweroff

  4. Log off from the CS694-VLAB using the icon on the desktop.