I need to connect to my virtual box running on my local machine to transer files from my local system to VM by using WINSCP.
How do I find the ip address.
When I go to the setting and network tab, there I find something related to ip, but when I use that, it says CANNOT FIND or invalid.
Login to virtual machine use below command to check ip address. (anyone will work)
- ifconfig
- ip addr show
If you used NAT for your virtual machine settings(your machine ip will be 10.0.2.15), then you have to use port forwarding to connect to machine. IP address will be 127.0.0.1
If you used bridged networking/Host only networking, then you will have separate Ip address. Use that IP address to connect virtual machine
Go to settings of your virtual box guest operating system. Then go to Shared folders and add the folder you want to share between your guest and host. Give the appropriate readonly (check the Read-only checkbox) or readwrite (uncheck the Read-only checkbox) permissions and turn on the Auto-mount (check the Auto-mount checkbox).
See screenshot below. I created a VMShared folder on my host (local machine). Then shared it with the guest ( operating system in virtual box ).
You should share a folder. There is an option to share a folder or folders between host and guest operating systems. It is much easier that way instead of doing through IP address.