Subversion checkout from guest OS

This is for discussing general topics about how to use VirtualBox.
Post Reply
bardu
Posts: 8
Joined: 13. Feb 2008, 06:56
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 7

Subversion checkout from guest OS

Post 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
selden
Posts: 71
Joined: 1. Oct 2010, 18:01
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Alma Linux 9
Location: usa

Re: Subversion checkout from guest OS

Post 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

Code: Select all

svn://<username>@<remote.host>/
which seems to be the opposite order from what you're specifying.
Last edited by selden on 10. Oct 2010, 05:57, edited 1 time in total.
Selden
bardu
Posts: 8
Joined: 13. Feb 2008, 06:56
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 7

Re: Subversion checkout from guest OS

Post by bardu »

My mistake, I should have mentioned that

Code: Select all

svn checkout
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

Code: Select all

Network/VBOXSVR/\\VBOXSVR/...
In this case what should I provide for X:?

Regards,
Stephan
selden
Posts: 71
Joined: 1. Oct 2010, 18:01
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Alma Linux 9
Location: usa

Re: Subversion checkout from guest OS

Post 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.
Selden
bardu
Posts: 8
Joined: 13. Feb 2008, 06:56
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 7

Re: Subversion checkout from guest OS

Post 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.
selden
Posts: 71
Joined: 1. Oct 2010, 18:01
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Alma Linux 9
Location: usa

Re: Subversion checkout from guest OS

Post by selden »

You're very welcome.
Selden
Post Reply