开发者

Virtualbox and Ruby on Rails application : How to access to the application's files

开发者 https://www.devze.com 2023-02-20 16:51 出处:网络
New to webdevelopment and virtualization I just installed the Ruby On Rails Turnkey appliance on my computer using Virtualbox.

New to webdevelopment and virtualization I just installed the Ruby On Rails Turnkey appliance on my computer using Virtualbox.

The installation was easy but there is one thing the newbie I am do not understand.

Via Vista's Explorer I just can't find the files of the 2 ROR applications I created with the Web Shell.

I know I creat开发者_C百科ed one new hard drive when installing the ROR appliance. I was just wondering whether I can access to these files via Vista's Explorer (if it is possible) (I know I can do it via the Web Shell).

Does the .vdi file (the file containing the ROR appliance hard drive) act like a black box ? I just can't see there how many files are in this .vdi file.

Additional info : OS : Vista

Thanks in advance for your answers.


The Rails appliance (and any TurnkeyLinux appliance) isn't going to share files by default. The easiest way for you to get in will be to use an SSH/SFTP client to access the folders on the system.

SSH/SFTP connection

For my Turnkey boxes I use FileZilla to connect as root@10.0.2.15:22. Note that the actual IP address will change but you should see it on the blue splash screen after your Turnkey guest VM has booted.

Port Forwarding - last resort

If for some reason you can't access the IP address listed on that screen then you can set up port forwarding in the Virtualbox settings under Devices > Network Adapters > Port Forwarding. In that case you'll forward host port 2222 to guest port 22. Once that's done retry a FileZilla connection to root@localhost:22.


I'm using an another solution (no Turnkey, just Ubuntu in VirtualBox, but who prevent you from installing additional software?), Samba server on virtual machine. On windows I mount samba share as network drive, so I can access it like local files.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号