Page 1 of 1
Subversion checkout from guest OS
Posted: 10. Oct 2010, 03:05
by bardu
Hi,
In my IDE on a Windows7 guest I'm trying to checkout a project from the Linux host such as
svn://10.0.2.2/repository_path@2
but attempt failed with message
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
My network adapter is attached to NAT. I have already tried Bridged Adapter but same result.
Does someone can advice me to properly setup my system to make this work?
Thanks in advance.
Stephan
Re: Subversion checkout from guest OS
Posted: 10. Oct 2010, 05:33
by selden
That subversion syntax looks wrong to me.
Checking out a package would be something like
svn checkout <access protocol>://<repository location>
Two examples would be
Code: Select all
svn checkout file:///Z:/repository/product/trunk
if the host is sharing directories with the guest
(Note the 3 initial /s -- the 3rd one is part of the file specification.
See page 77 of the current VirtualBox user manual for how to share host directories with the guest.)
or perhaps
Code: Select all
svn co https://host.ip.address/repository/product/trunk
if the host is running an http based anonymous access subversion server
(checkout and co are synonyms)
p.s.
I was unfamiliar with the ...@... syntax, since I've only used anonymous servers. Sorry.
The only use I've found documented shows it as
which seems to be the opposite order from what you're specifying.
Re: Subversion checkout from guest OS
Posted: 10. Oct 2010, 05:48
by bardu
My mistake, I should have mentioned that
is automatically added by my IDE (NetBeans).
I know that your first example is the syntax to checkout from a Windows box, however, the repository is in a shared folder, so from Windows 7 it is accessible from
In this case what should I provide for X:?
Regards,
Stephan
Re: Subversion checkout from guest OS
Posted: 10. Oct 2010, 06:04
by selden
(see my p.s. above about the svn: @ syntax)
The device name to specify on the Windows side is the one you've specified in the VboxManage command. It's shown in the manual on page 77.
From the command line, you can create shared folders using the VBoxManage
command line interface; see chapter 8, VBoxManage, page 121. The command
is as follows:
VBoxManage sharedfolder add "VM name" --name "sharename" --hostpath "C:\test"
Of course, you'd use a linux file path, not a Windows one e.g. "/usr/users/svndir" or something similar.
and later
In a Windows guest, starting with VirtualBox 1.5.0, shared folders are
browseable and are therefore visible in Windows Explorer. So, to attach the
host’s shared folder to your Windows guest, open Windows Explorer and look
for it under “My Networking Places” -> “Entire Network” -> “VirtualBox Shared
Folders”. By right-clicking on a shared folder and selecting “Map network drive”
from the menu that pops up, you can assign a drive letter to that shared folder.
Alternatively, on the Windows command line, use the following:
net use x: \\vboxsvr\sharename
While vboxsvr is a fixed name (note that vboxsrv would also work), replace
“x:“ with the drive letter that you want to use for the share, and sharename with
the share name specified with VBoxManage.
Re: Subversion checkout from guest OS
Posted: 10. Oct 2010, 08:59
by bardu
Thanks for your help.
Assigning a drive to the shared folder has made things much easier. I can directly access my Linux NetBeans project from Windows guest, test OS and IE specifics and commit changes, which is sufficient for my setup and needs, and return to Linux.
So, there is no need anymore to checkout the project from Windows guest.
Thanks again.
Re: Subversion checkout from guest OS
Posted: 10. Oct 2010, 21:27
by selden
You're very welcome.