To use ADB inside a Proxmox VE (PVE) LXC container, you need to perform the following steps:

  1. Install ADB in the PVE LXC container by executing the following command:
apt-get update
apt-get install android-tools-adb
  1. Connect the Android device to the Proxmox host machine via USB.

  2. Run the following command on the Proxmox host machine to forward the USB device to the PVE LXC container:

pct set <container_id> --usb0 host=0a12:0001

Replace <container_id> with the ID of your LXC container.

  1. Start the PVE LXC container.

  2. Connect to the PVE LXC container's shell by using the following command:

pct enter <container_id>

Again, replace <container_id> with the ID of your LXC container.

  1. Check if the Android device is recognized inside the PVE LXC container by running the command:
adb devices

If the device is listed, it means that ADB is working correctly.

  1. You can now use ADB commands inside the PVE LXC container to interact with the connected Android device. For example, you can use the command adb shell to access the device's shell.

Note: The above steps assume that you have already installed Proxmox VE and created an LXC container. Additionally, make sure that the USB device ID ('0a12:0001' in the command above) matches the actual ID of your Android device. You can find the device ID by running the lsusb command on the Proxmox host machine.

How to Use ADB Inside a Proxmox VE LXC Container

原文地址: https://www.cveoy.top/t/topic/qxTb 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录