VirtualBox

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#10465 closed defect (invalid)

vbox can't automount transient shared folders after logining in guest os

Reported by: jinsheng Owned by:
Component: shared folders Version: VirtualBox 4.1.8
Keywords: automount shared folder Cc:
Guest type: Windows Host type: Windows

Description

According sdk document, I can creates transient new shared folders by IConsole::createSharedFolder([in]wstring name,[in] wstring hostPath,[in] boolean writable,[in] boolean automount). And I set the automount ture. I wrote some code like below:

IMachine machine = vbox.findMachine("windowsxp");
IProcess process = machine.launchVMProcess(session, "gui", null);
progress.waitForCompletion(10000);
IConsole console = session.getConsole();
sharename = "shared" + String.valueOf(new Random().nextInt());
console.createSharedFolder(sharename, "d:\\uml", false, true);

And the code work well. The shared folder was automounted, and i see a new driver with a driver letter in windows explorer. But after i logined in my guest xp, i wanted to add a new transient shared folder(like d:
nst) and i used some code like upside. Then i can't see a new driver representing the new shared folder. And I must mount the folder manually in order to use the folder.

Is this a bug in guest additions?Thank you.

Attachments (1)

vbox.log.txt (42.7 KB ) - added by jinsheng 12 years ago.
the vbox log file

Download all attachments as: .zip

Change History (3)

by jinsheng, 12 years ago

Attachment: vbox.log.txt added

the vbox log file

comment:1 by Klaus Espenlaub, 12 years ago

Cc: mapapis@… removed
Resolution: invalid
Status: newclosed

Documented behavior, see user manual section "Automatic mounting", last paragraph. The behavior isn't set in stone though, so if you (or someone else) wants to improve this we'll gladly accept contributions. Eventually we might get to it, too, but it's low priority.

comment:2 by jinsheng, 12 years ago

Thank you very much.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use