12

I have installed Android x86 inside VirtualBox I shared a folder from my host machine which is Windows 7 for Virtual Android Machine But I cannot see this folder anywhere in my Android VM. Is there a way to use this shared folder inside Android VM?

4 Answers 4

14

Very simple answer is to use USB device,

Go to virtualbox > settings > USB > add usb device connected to your computer

Go to ES file explorer in android guest

ES > local > you will find new USB listed here, click on that, select allow ES to use this USB storage,

BANG, you can share files through USB storage

Note: I used this in host UBUNTU and it works, and I think it should work with other systems also.

4
  • If you are using a terminal version like Android x86, once you connect the USB you can see through the command "blkid" to which /dev/block/sd?? it corresponds. Once found, you can mount it normally and access the content.
    – Giupo
    Jan 20, 2019 at 20:29
  • Verified working on Android.
    – bLight
    Nov 5, 2019 at 16:36
  • Once I've done this, I can access USB in Android, but not on the host (Linux Mint 19.3). It's not even visible in the Disks utility. How can I access USB in host and guest systems simultaneously? Aug 15, 2021 at 14:16
  • Confirm this on Windows 10 host.
    – Andrew
    Aug 18, 2022 at 6:14
6

I have figured out a way by which you can access your Host Windows 7/8/8.1 files in Guest Android installed using Virtual Box. I am accessing my host files in Guest Android by this method on host Windows 8.1 (Virtual Box Version 4.3.14r95030).


INSTRUCTIONS for Windows 7/8/8.1

  • Go to Network and Sharing Center>Change Adapter Settings. Find and select "VirtualBox Host-Only Network" and the adapter you are using to connect Internet (e.g. Ethernet or Wi-Fi). Right click on any of selected connections and choose Bridge Connections.

  • Once Bridging connections process is completed, a new network adapter will appear in adapters list (Network and Sharing Center>Change Adapter Settings>Network Bridge).

  • Bridging above Two connections means Guest Android can access all the network devices which you can access from your Host Windows using your specific adapter which you bridged with "VirtualBox Host-Only Network".

  • You will need to share some folders which you want to access in Guest Android. This is done just like you share folders on Windows to be accessed from any other computer (Right Click on folder to be shared>Share With>Specific People>Add Everyone in list and provide permission of Read or Read/Write as per your need)

Please Note: Only shared folders on host system through Windows Sharing will be accessed in Guest Android.


INSTRUCTIONS for Android Guest

  • Install any program file manager or other program in guest android which can access network computers. (I used ES File Explorer's LAN feature for this pirpose).

  • Install & Open ES File Explorer.

SIMPLE METHOD FOR ES FILE EXPLORER

Go to LAN Window of ES File Explorer. Press Scan to look for devices on network of Host Windows including your Host Windows. Once Devices found, try one by one to get shared folders of your host windows.

(If Found Devices are too many or Your Host Windows need Username and Password for sharing, Advanced method is recommended)

ADVANCED METHOD FOR ES FILE EXPLORER
  • You need to know your Host Windows IP Address (IPv4). For this purpose, check status details of newly created Bridged Network.
  • Once you identified IP of your Host Windows, Go to LAN Window of ES File Explorer and select Add Option to manually add server. Leave Domain Empty, Write Your Host Windows IP in Server. Further fill log in details to access your Host Windows or Tick Anonymous. Lastly, Name your server e.g. "My Host Window" in Display as and click OK.
  • If you have provided valid information, You will see a new Computer icon in LAN Window of ES File Explorer. Click on it to open it. You will see your shared folders of your Host Window here.
1
  • I use totalcmd with LAN plugin under Android on VBox. Just made a shared folder under host system (Windows 7 Pro) and added its IP to the Android using Network scanner.
    – NeoSer
    Jan 17, 2016 at 9:55
3

To use shared folders, VirtualBox guest additions have to be installed within the guest OS. However, it is cannot be done for Android as mentioned in the following SO thread: Getting VBox Guest Additions for Android x86

Hence, you cannot obtain access to your shared folder within the Android OS installed under virtualbox

One way to transfer files between Android in VBox and external resources is to use internet. You can create a free account on file sharing websites (e.g., deposit files or the like) and then upload files from VirtualBox and download them elsewhere, and vice versa.

2
  • I need to transfer files in every manner. I'll be thankful for any suggestion
    – Serjik
    Nov 7, 2013 at 4:44
  • This makes VB unusable for me. Mar 6, 2014 at 18:34
2

I have installed Terminal from Google Play in a Genymotion emulator. This works like the standard Linux terminal (as the name suggests).

If you then cd to /mnt/shared/ you should be able to see the shared folder and copy files to anywhere with cp.

Not the answer you're looking for? Browse other questions tagged or ask your own question.