VirtualBox

Opened 17 years ago

Closed 16 years ago

#399 closed defect (fixed)

Problem with removing of shared folder

Reported by: moonlight Owned by:
Component: other Version: VirtualBox 1.4.0
Keywords: Cc:
Guest type: other Host type: other

Description

Host: Ubuntu 7.04

To reproduce:
1 Create folder and make it shared (VBoxManage sharedfolder add)
2 Unregister shared folder (VBoxManage sharedfolder remove)
3 Remove ex-shared folder from host
Result:
vm becomes inaccessible (recovers if restore folder on host)

Change History (3)

comment:1 by Michael Thayer, 17 years ago

I was unable to reproduce this. Was the VM running at the time? In a saved state? Could you give a more exact sequence of events (including the command lines you used)?

comment:2 by moonlight, 17 years ago

Try to experiment with this script. It causes very strange effects sometimes

#!/bin/sh

VM_NAME=Core

cd /opt/VirtualBox-1.4.0/

mkdir /tmp/test1
./VBoxManage sharedfolder add $VM_NAME -name my_share -hostpath /tmp/test1
./VBoxManage startvm $VM_NAME &
sleep 150 # Boot guest, attach share, write something
./VBoxManage controlvm $VM_NAME poweroff
sleep 5
./VBoxManage sharedfolder remove $VM_NAME -name my_share
rm -R /tmp/test1
mkdir /tmp/test2
./VBoxManage sharedfolder add $VM_NAME -name my_share -hostpath /tmp/test2
./VBoxManage startvm $VM_NAME


./VBoxManage sharedfolder remove $VM_NAME -name my_share
rm -R /tmp/test1
rm -R /tmp/test2

comment:3 by Sander van Leeuwen, 16 years ago

Resolution: fixed
Status: newclosed

Try again with 1.6.0 and report back if it's still relevant. Thanks.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use