Hacker News new | past | comments | ask | show | jobs | submit login

If you go this way, why not simply use SCP on the host?



Where would I scp to?


You open a shell on the host, and then `scp guest:path/to/file target/path/to/file`.


What is 'guest' here? As far as I know, the VM does not have an IP on the lan.


I mean, you need to be able to use your VM Manager tool to find out what is the IP/hostname of your guest.


A Default VirtualBox configuration does not allow direct host-> guest access, it's on some hidden VB-only NAT. You need to change the Network Interface type to Bridged or Host-only or something else to have access to the VM.


I haven't done it for some time, but in my memory it was neither a problem on OSX nor on Linux with VBox. Maybe try Vagrant? I don't remember, sorry. But ask around and you should find a super easy way to make this happen.


SCP from Guest to Host


What is the ip of the host? I am pretty sure the guest is seeing a lan that only contains itself.


It sounds like you are talking about NAT mode on virtualbox. In this case you can set up port forwarding in the network settings. Also, you can actually reach the host from the guest. In my case my guest has an IP of 10.0.2.15 by default, and I can reach the host on 10.0.2.2




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: