I'd previously covered the installation and usage of ADB for Windows platform. But there is a little different for Linux user in term of operating the Terminal commands. Here's how but first, click HERE to download the adb tool for Linux if you're solely to connect with Android-x86 virtual machine. The another way, you can also get adb tool from Android SDK and follow the simple steps.
- Extract the adb.tar.gz archive file.
- Open Terminal.
- Navigate to the directory where adb you extracted. (For example, I extracted in /Downloads directory. So I enter cd Downloads/adb)
- Type ls and make sure adb is listed.
- Enter chmod a+x adb to make the adb tool executable.
- This is optional, type ls again and you will see adb font colour is changed.
- Now start your Android-x86 virtual machine.
- Back to the Terminal, you can now execute adb commands to connect your Android-x86. (Such as, ./adb devices. If it requires as root, just add sudo in front like this: sudo ./adb devices)