Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127009 - vmware-mount.pl script incorrect for modern kernels
Summary: vmware-mount.pl script incorrect for modern kernels
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo VMWare Bug Squashers [disabled]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-20 13:52 UTC by Evan Teran
Modified: 2008-11-30 19:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evan Teran 2006-03-20 13:52:13 UTC
There is a script which comes with vmware called vmware-mount.pl, it's purpose it to be able to mount a vmware virtual disk to a mountpoint. Kinda handy when you need it.

Anyway, it seems vmware hasn't really updated it to work with 2.6 kernels...

Fortunately, all it takes is a one line fix :)

changing line 30 from
my $nbd_prefix = "/dev/nb";
to
my $nbd_prefix = "/dev/nbd";

does the trick just fine, would be nice if this was patched during install instead of me doing it manually every time I update. It probably should do some version detection, but that's I'll leave that up to you guys. The script already has code to check what version it is running in which looks like this:

if (Kernel_RunningVersion() >= Kernel_MakeVersion(2, 4, 0)) {
}


Also, it likes to attempt to create /dev/nbd[n] entries if you don't have the nbd.ko module, may wanna disable this when udev is in use.

Evan Teran
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2006-03-20 19:10:28 UTC
Ehh, "with vmware" meaning vmware-workstation? vmware-player? both?
Comment 2 Evan Teran 2006-03-20 20:35:17 UTC
sorry bout that, I have only looked at vmware-workstation, I haven't toyed with vmware-player but since player isn't supposed to let you do anything more than run a VM, I doubt that it would have this script.

Obviously, this shoudl be double checked though

proxt
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2006-09-28 12:19:47 UTC
Sorry that this has sat for so long.  I've honestly just been busy working on other things.  I'm going to guess that this hasn't corrected itself, even with the new 5.5.2 ebuilds, right?
Comment 4 Bryan Jacobs 2007-03-05 16:19:03 UTC
(In reply to comment #3)
> Sorry that this has sat for so long.  I've honestly just been busy working on
> other things.  I'm going to guess that this hasn't corrected itself, even with
> the new 5.5.2 ebuilds, right?
> 

I can confirm that the fix detailed here works for kernel 2.6.18-gentoo-r2 on amd64, with the nbd module loaded, and vmware server 1.0.1.29996-r4.  This is not fixed in vmware-server-1.0.2.39867.  Please make the given change, this script is handy.
Comment 5 Stefan Behte (RETIRED) gentoo-dev Security 2008-04-27 14:07:02 UTC
I think this should be reported to upstream and not just patched "downstream" in gentoo itself...
Comment 6 Mike Auty (RETIRED) gentoo-dev 2008-11-30 19:10:48 UTC
The latest versions of vmware-workstation use FUSE rather than a perl script.  I'm therefore going to close this bug.  Please reopen it if you are still have problems when using the latest versions of vmware.