Hassan-Beh / vmfs

Automatically exported from code.google.com/p/vmfs
0 stars 0 forks source link

Webdav Mount as network drive #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi guys.
first of let me say many thanks for this.
this is just what i need in order to moung a esxi volume (after storage
snapshot) and back it up to tape.

now after i mount a snapshot on to my backup server i can see it in the
device manager.
after i run your script i can access the page through internet explorer.
but if i try to mount it i get the following error

net use * http://localhost:81/vmfs
system error 67 has occurred
the network name cannot be found.
( i am using server 2003 and changed the default webdav from 50080 to 81).
if i go into internet explorer ->open -> http://localhost:81/vmfs and mark
the "open as web folder" check box, i get "internet explorer could not open
http://localhost:81/vmfs as a web folder. would you like to see its default
view instead?
if i click yes, the view of the esxi volume is displayed.
so i know the webdav works great but i cant mount it.
i heard that i need to enable the "webclient" service and restarting the
server did not change a thing.
if i can get this to work, i have a full backup solution.
thanks in advance for all your help

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by mrmamas...@hotmail.com on 18 Mar 2009 at 7:19

GoogleCodeExporter commented 8 years ago
I experienced the same problem....but it seems that changing the port number to 
80 and 
using "net use * http://localhost/vmfs" (I read somewhere that Win2k3 doesn't 
support 
port numbers in the Webdav paths) takes me a step further... however I'm being 
asked 
for a username and password. Tried various options but didn't get authenticated.
Any ideas ?

Original comment by rene.van...@gmail.com on 26 Mar 2009 at 9:21

GoogleCodeExporter commented 8 years ago
Mounting as drive letter (with port!=80) works well on Vista.
We could reproduce the issue on Win2k3.

Original comment by fluidops...@gmail.com on 26 Mar 2009 at 11:53

GoogleCodeExporter commented 8 years ago
tried it again with port 80
same error.
isnt there a better way to let windows see vmfs partitions?

Original comment by mrmamas...@hotmail.com on 26 Mar 2009 at 12:02

GoogleCodeExporter commented 8 years ago
Think I found what the issue is:

Windows XP and 2003 check the options on the root of the WebDAV server
(even when specifying /VMFS as subfolder)

I wiresharked the session and saw the following while using 
net use * http://x.x.x.x/vmfs

OPTIONS / HTTP/1.1
translate: f
User-Agent: Microsoft-WebDAV-MiniRedir/5.1.2600
Host: x.x.x.x
Content-Length: 0
Connection: Keep-Alive

HTTP/1.0 404 Not Found
Content-Type: text/html; charset=iso-8859-1
Content-Length: 1287
Server: Jetty(6.1.11)

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 404 NOT_FOUND</title>
</head>
<body>
<h2>HTTP ERROR: 404</h2><pre>NOT_FOUND</pre>
<p>RequestURI=/</p>
<p><i><small><a href="http://jetty.mortbay.org">Powered by 
jetty://</a></small></i></p>

So it looks like the Net use command just gives up after receiving the 404 
Error from  
the root path.

Original comment by rene.van...@gmail.com on 26 Mar 2009 at 2:49

GoogleCodeExporter commented 8 years ago
I saw the "path prefix" issue on W2008 server...

Here's the current "success list" (will add details to the Wiki docs). More 
feedback
welcome:
- Win Vista works
- Mac OS X (10.5.6) works
- 3rd party NetDrive client mounts fine
- W2008 server works fine if no path prefix
- W2003 server works fine if default port (with the WebFolders upgrade, 
Microsoft
KB907306)
- Windows XP mounts *with* port and *with* path prefix by using the "Add Network
Place" wizard (this does not show up as drive letter though)

Original comment by fluidops...@gmail.com on 26 Mar 2009 at 3:47

GoogleCodeExporter commented 8 years ago
Hi Ulrich,

I have been trying more with W2003, but still no success. 
Still getting the System Error 67

My \windows\system32\drivers\mrxdav.sys file is the following version:
5.2.3790.4206 (srv03_sp2_gdr.071217-1230)

WebFolders upgrade is installed.... but without any difference

Original comment by rene.van...@gmail.com on 30 Mar 2009 at 8:45

GoogleCodeExporter commented 8 years ago
I am having the same issue as rene.van.dalen.

I am using vmfs_r87.

KB907306 is installed

Windows 2003 sp2

Do you have any other information to try?

Original comment by mckno...@gmail.com on 15 Dec 2009 at 12:11

GoogleCodeExporter commented 8 years ago
Additional information...

When I run the java -jar fvmfs.jar \\.\PhysicalDrive1 webdav the WebDAV/HTTP 
starts 
with the following two warnings:

log4j:WARN No appenders could be found for logger (org.mortbay.log).
log4j:WARN Please initialize the log4j system properly

I run the command from the command line and after the two warnings I do not get 
back 
a prompt.  I have to CTRL-C to get a command prompt.  (Is that the way it 
should 
work?)

I have to open a second command window in order to attempt the net use command 
of...

net use * http://localhost:50080/vmfs

This command returns the System error 67 has occurred.  The network name cannot 
be 
found.

I am able to open a web browser and successfully access 
http://localhost:50080/vmfs.

Original comment by mckno...@gmail.com on 15 Dec 2009 at 2:14

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Marked it as a (documentation / test) enhancement, as mounting success highly 
depends
on the WebDAV client in use, and it seems to be no bug in the WebDAV server.

Original comment by fluidops...@gmail.com on 26 Jan 2010 at 7:25

GoogleCodeExporter commented 8 years ago
@mcknocke
>>>
I run the command from the command line and after the two warnings I do not get 
back 
a prompt.  I have to CTRL-C to get a command prompt.  (Is that the way it 
should 
work?)
>>>

A year later but in the off chance..... 

I get the errors too (fyi for fo) but yeah, when you run it in webdav mode, 
vmfs.jar IS the server.

I didn't try mapping a drive (I forgot and got busy) but you might try "net use 
* \\127.0.0.1\vmfs" or  "net use * \\127.0.0.1:50080\vmfs" or try your actual 
IP address or your pc's hostname or "localhost".

Original comment by be...@technologist.com on 16 Nov 2010 at 12:30