Can Wine open an actual file system shared through a Vm?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
zath13
Newbie
Newbie
Posts: 2
Joined: Sun Jun 26, 2011 7:05 pm

Can Wine open an actual file system shared through a Vm?

Post by zath13 »

This may sound redundent but im a Dual boter And i use Ubuntu as a
zath13
Newbie
Newbie
Posts: 2
Joined: Sun Jun 26, 2011 7:05 pm

contin.

Post by zath13 »

a virtual machine in vm ware player and i wanted to know can wine open the exe files in a shared folder bypassing its virtual folder for the real thing
User avatar
SpawnHappyJake
Level 5
Level 5
Posts: 272
Joined: Sun Feb 06, 2011 5:57 am

Ahhh... Just read this.

Post by SpawnHappyJake »

To my knowledge, WINE doesn't interpret filesystems (FAT32, ext3, NTFS, HFS+, etc.), or is even filesystem-aware. But that shouldn't matter if your operating system is able to interpret a filesystem for it. If you can get your operating system to mount what it is you want WINE to use to a folder, you can go into winecfg and associate that folder with a drive letter in WINE.

But be careful what you do with it. Don't install a program into Windows and then have WINE run that program off the Windows partition. Only run programs that have been installed by WINE when running programs with WINE. In fact, JUST from a program being on an NTFS partition, that can cause problems with WINE.

To get WINE to see anything, go into winecfg, go to the drives tab, and associate a drive letter with the folder containing what you want WINE to see. Remember that Linux and Mac OS X don't have drive letters. There is only one root directory. In that directory folders can be made, and you can tell the operating system to display the contents of a partition in any folder. So if you want WINE to use a drive, you associate the path to the folder in which the drive's contents are displayed to a drive letter.
So if you want WINE to see in a virtual machine made by VirtualBox, just do a VirtualBox network share, and associate the path to the share folder (as the operating system running WINE sees it).
If you want WINE to access the filesystem more directly, mount the hard drive image (virtual machine must be off...or SHOULD be) to a path (or paths, plural, if there is more than one partition) and associate that path(s) to (a) drive(s) letter(s).
To learn how to mount a vdi, read the sixth post here: http://ubuntuforums.org/showthread.php?t=871367.
Cheers,
Jake
User avatar
SpawnHappyJake
Level 5
Level 5
Posts: 272
Joined: Sun Feb 06, 2011 5:57 am

Does it need to be satisfied?

Post by SpawnHappyJake »

If your hunger for risky redundantness needs to be satisfied, you can try booting your "real" Windows side from your "real" Ubuntu side and your "real" Ubuntu side from your "real" Windows side by having VirtualBox use the real hard drive through a vmdk file. Just backup everything first.
*The above was meant to be a theoretical thriller more than anything else. Kind of like rootkits that attack hypervisors.

Just don't let Windows and Wine mix. That can break things.
I'm giving you a sledge hammer; be responsible (only use for copying thngs over): http://legroom.net/2007/08/05/how-mount ... nder-linux

Cheers,
Jake

P.S While I'm at it, don't run Wine as root, either.
oiaohm
Level 8
Level 8
Posts: 1020
Joined: Fri Feb 29, 2008 2:54 am

Post by oiaohm »

zath13 This is a new take on a old issue.

SpawnHappyJake that warning is a little light. Most people don't fully understand it.

Simple fact when most windows programs install they create registry entries. Wine does not read MS registry files at all. Result is upset windows programs.

Ok in testing and in some appdb enteries they will have notes they copied from a windows install to Linux. But this is more the exception to the rule not the normal. Ie the normal application not install just run it breaks because it does not have its registry keys. This is why registery cleaners can be so much a problem under windows.

Also I have to pick up people from time to time and break the bad news that if you set WINEPREFIX to windows location windows dies and have to be reinstalled.

So bad news any program you want to use in wine must be installed into wine or be designed portable. If designed portable still needs to be on ext3/4 or btrfs or some other Linux file system that fully works.

Now if you were just wanting to mount and access data files like word docs. That is possible. qemu-nbd is another way to mount the image it supports a broader range of images to the vmware solution.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Can Wine open an actual file system shared through a Vm?

Post by vitamin »

zath13 wrote:Can Wine open an actual file system shared through a Vm
No, Wine doesn't work with any file system directly.

Assuming you have vmware workstation that can mount VM disk you still won't get what you looking for (see other replies).
Locked