Running VB 1.5.2 on Kubuntu 7.10 host/XP guest
Recently, all shared folders became inaccessible. When I attempt to access I get the following XP error dialog:
\\VBOXSVR\<directory> is not accessible. you might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions.
The network path was not found.
All of the shared folders are local to the host. I tried deleting and reinstalling the folders with no improvement.
Any help would be greatly appreciated.
Paul
shared folders stopped working
You can setup a bridge for the transparent connection of the guest to the corporate network. And then you can setup a second interface reserved only for samba. Samba can restrict access to this interface.
I've setup this in a short on my test machine.
My /etc/network/interfaces:
My Samba settings:
~$ testparm -s
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[winbox]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
workgroup = HOME
interfaces = tap1
bind interfaces only = Yes
obey pam restrictions = Yes
passdb backend = tdbsam
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
panic action = /usr/share/samba/panic-action %d
invalid users = root
[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0700
directory mask = 0700
browseable = No
[winbox]
comment = Windows box application data
path = %H/.winbox
valid users = %U
read only = No
create mask = 0700
directory mask = 0700
browseable = No
~$
Setting up interfaces to VirtualBox:
This are the interfaces on the guest. Adapter 1 has DHCP enabled, Adapter 2 has a static IP address and NO Default Gateway:
For me it works:
I've setup this in a short on my test machine.
My /etc/network/interfaces:
Code: Select all
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# setting up the bridge #######
auto eth0
iface eth0 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
auto tap0
iface tap0 inet manual
tunctl_user ingo
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
auto br0
iface br0 inet dhcp
bridge_ports eth0 tap0
# End setting up the bridge ###
# an interface only for a local connection to samba
auto tap1
iface tap1 inet static
tunctl_user ingo
address 192.168.2.1
netmask 255.255.255.0
~$ testparm -s
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[winbox]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
workgroup = HOME
interfaces = tap1
bind interfaces only = Yes
obey pam restrictions = Yes
passdb backend = tdbsam
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
panic action = /usr/share/samba/panic-action %d
invalid users = root
[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0700
directory mask = 0700
browseable = No
[winbox]
comment = Windows box application data
path = %H/.winbox
valid users = %U
read only = No
create mask = 0700
directory mask = 0700
browseable = No
~$
Setting up interfaces to VirtualBox:
Code: Select all
~$ VBoxManage modifyvm "MyVM" -nic1 hostif -hostifdev1 tap0 -cableconnected1 on -nic2 hostif -hostifdev2 tap1 -cableconnected2 on -nic3 none -nic4 none
~$
Code: Select all
C:\Documents and Settings\Ingo>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : MyGuest
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Broadcast
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : private.hoeft-online.de
Ethernet adapter Local Area Connection 2:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : AMD PCNET Family PCI Ethernet Adapter #2
Physical Address. . . . . . . . . : 08-00-27-A6-A1-0D
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.2.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Ethernet adapter Local Area Connection 1:
Connection-specific DNS Suffix . : privat.hoeft-online.de
Description . . . . . . . . . . . : AMD PCNET Family PCI Ethernet Adapter #1
Physical Address. . . . . . . . . : 08-00-27-79-16-A7
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.1.41
Subnet Mask . . . . . . . . . . . : 255.255.255.128
Default Gateway . . . . . . . . . : 192.168.1.2
DHCP Server . . . . . . . . . . . : 192.168.1.3
DNS Servers . . . . . . . . . . . : 192.168.1.3
Lease Obtained. . . . . . . . . . : Sonntag, 9. Dezember 2007 17:11:36
Lease Expires . . . . . . . . . . : Sonntag, 9. Dezember 2007 19:11:36
C:\Documents and Settings\Ingo>
Code: Select all
C:\Documents and Settings\Ingo>ping www.virtualbox.org
Pinging www.virtualbox.org [88.198.19.108] with 32 bytes of data:
Reply from 88.198.19.108: bytes=32 time=47ms TTL=57
Reply from 88.198.19.108: bytes=32 time=44ms TTL=57
Reply from 88.198.19.108: bytes=32 time=45ms TTL=57
Reply from 88.198.19.108: bytes=32 time=45ms TTL=57
Ping statistics for 88.198.19.108:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 44ms, Maximum = 47ms, Average = 45ms
C:\Documents and Settings\Ingo>dir \\MyHost\winbox
Volume in drive \\MyHost\winbox is winbox
Volume Serial Number is 5351-0BFD
Directory of \\MyHost\winbox
19.11.2007 10:34 <DIR> .
09.12.2007 18:03 <DIR> ..
13.09.2007 15:05 <DIR> Documents and Settings
0 File(s) 0 bytes
3 Dir(s) 22.708.080.640 bytes free
C:\Documents and Settings\Ingo>