Issue to access shared path of Guest VM
-
HuaMin
- Posts: 239
- Joined: 17. Jan 2012, 07:01
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: Oracle linux
Issue to access shared path of Guest VM
Hi,
Guest VM is with NAT having IPs below. How to access its shared path based on such IPs from the host?
Guest VM is with NAT having IPs below. How to access its shared path based on such IPs from the host?
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: Issue to access shared path of Guest VM
enp0s8 is getting a Virtualbox NAT IP address. NAT acts like a typical house router between the host and the VM, see Virtualbox Networks: In Pictures: NAT.
You'd have to open ports in NAT's Port Forwarding (see the Advanced dropdown in the NAT adapter settings). You should web-search what ports to open to access a shared folder on the VM OS.
It would be easier to use a Host-Only or Bridged network, then Virtualbox would have no ports that require opening. The VM OS may need its own settings in its firewall.
emp0s3 has an APIPA address, self-selected by the VM OS, because it is looking for a DHCP server on that network and it cannot find one. What kind of Virtualbox network is being connected for enp0s3?
You'd have to open ports in NAT's Port Forwarding (see the Advanced dropdown in the NAT adapter settings). You should web-search what ports to open to access a shared folder on the VM OS.
It would be easier to use a Host-Only or Bridged network, then Virtualbox would have no ports that require opening. The VM OS may need its own settings in its firewall.
emp0s3 has an APIPA address, self-selected by the VM OS, because it is looking for a DHCP server on that network and it cannot find one. What kind of Virtualbox network is being connected for enp0s3?
-
HuaMin
- Posts: 239
- Joined: 17. Jan 2012, 07:01
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: Oracle linux
Re: Issue to access shared path of Guest VM
Thanks. I've selected Host-only adapter on guest VM. How to access VM's shared path from the host? Guest VM is with IP like 192.168.56.101. But I cannot refer to its path using "\\192.168.56.101\sh_path".
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: Issue to access shared path of Guest VM
If enp0s3 was the Host Only adapter and is still showing the 169.254 address then the VM OS's configuration of the Host-Only adapter is not responding correctly, or the Host Only network is not set up correctly.
If enp0s3 is now showing the 192.168.56.101 address, then try pinging 192.168.56.101 from the host OS. The VM OS's firewall should be opened to allow ping.
If the ping works, then you should be able to web-search how to access a shared folder on a Linux OS from a Windows OS. And the address 192.168.56.101 would be the Linux OS's "server" address in Windows.
If enp0s3 is now showing the 192.168.56.101 address, then try pinging 192.168.56.101 from the host OS. The VM OS's firewall should be opened to allow ping.
If the ping works, then you should be able to web-search how to access a shared folder on a Linux OS from a Windows OS. And the address 192.168.56.101 would be the Linux OS's "server" address in Windows.
-
HuaMin
- Posts: 239
- Joined: 17. Jan 2012, 07:01
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: Oracle linux
Re: Issue to access shared path of Guest VM
There is already shared path on guest below
\\192.168.56.101\sh_path
Within host OS, I can ping 192.168.56.101 well. Why can't I access it from Host OS?
\\192.168.56.101\sh_path
Within host OS, I can ping 192.168.56.101 well. Why can't I access it from Host OS?
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: Issue to access shared path of Guest VM
Since you can ping, the Virtualbox network is working. Now you need to web-search how to share a Linux folder so that a networked Windows OS can access it. This is a question for Linux and Windows help channels now. Virtualbox has done all it can do.
-
HuaMin
- Posts: 239
- Joined: 17. Jan 2012, 07:01
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: Oracle linux
Re: Issue to access shared path of Guest VM
I have set up Samba to share path within this VM. In the past, I could access it via
\\113.255.251.156\sh_path
Now even if it is having Host-Only adapter, I cannot access it via
\\192.168.56.101\sh_path
How to resolve it?
\\113.255.251.156\sh_path
Now even if it is having Host-Only adapter, I cannot access it via
\\192.168.56.101\sh_path
How to resolve it?
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: Issue to access shared path of Guest VM
Please right-click the VM in the main Virtualbox window's VM list, choose Show in Explorer/Finder/File Manager. Zip the VM's .vbox file (not the .vbox-prev file), and post the zip file, using the forum's Upload Attachment tab. (Configure your host OS to show all extensions if the folder that opens does not show a .vbox file.)
In the Windows OS, open a Command Prompt and run ipconfig /all. Post the command output.
In the Linux OS, open a Terminal and run ifconfig or ip address. Post the command output.
In the Windows OS, open a Command Prompt and run ipconfig /all. Post the command output.
In the Linux OS, open a Terminal and run ifconfig or ip address. Post the command output.
-
HuaMin
- Posts: 239
- Joined: 17. Jan 2012, 07:01
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: Oracle linux
Re: Issue to access shared path of Guest VM
Thanks a lot. Please see .vbox file, and IP details on both Win host and Ubuntu guest.
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: Issue to access shared path of Guest VM
Everything is working correctly in Virtualbox. The host-only network is connected and you can ping.
This is not a Virtualbox problem. You should pretend the host and VM are two real computers with a network between them, and solve by asking Microsoft and Linux forums how to get Windows to see a Linux shared folder.
This is not a Virtualbox problem. You should pretend the host and VM are two real computers with a network between them, and solve by asking Microsoft and Linux forums how to get Windows to see a Linux shared folder.
-
HuaMin
- Posts: 239
- Joined: 17. Jan 2012, 07:01
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: Oracle linux
Re: Issue to access shared path of Guest VM
If there is one shared path like
\\my.own.ip.addr\sh_path
how to access it within Ubuntu?
\\my.own.ip.addr\sh_path
how to access it within Ubuntu?
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: Issue to access shared path of Guest VM
Inside the VM you can access Windows shared folders at 192.168.56.1
Inside Windows you can access Ubuntu shared folders at 192.168.56.101
Anything else after that is beyond Virtualbox:
Inside Windows you can access Ubuntu shared folders at 192.168.56.101
Anything else after that is beyond Virtualbox:
scottgus1 wrote:asking Microsoft and Linux forums how to get Windows to see a Linux shared folder.
-
HuaMin
- Posts: 239
- Joined: 17. Jan 2012, 07:01
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: Oracle linux
Re: Issue to access shared path of Guest VM
Thanks. Within VM, how to directly access this IP?Inside the VM you can access Windows shared folders at 192.168.56.1
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: Issue to access shared path of Guest VM
These questions are about how to use an operating system, not about how to use Virtualbox. We help with how to use Virtualbox here, not with how to use operating systems. Ask the Linux folks.