openvz samba mounts error

copymaster

Member
Nov 25, 2009
183
0
16
Hi,

YES, i have used the search function.... And i found a good thread but it isn't working as expected:

I have a openvz container with a ubuntu 8.04 server working as a db server.

I found the following messages:
Code:
smbfs/cifs isn't virtualized now,
you can't use it inside VE.
All available in VE filesystems resides in /proc/filestystems
file inside VE.

You can do the following to make smb shares available in VE:

On HOST (!):
mount -t cifs //192.168.1.30/test /mn
mount --bind /mn /vz/root/101/mn

After that you can see contents of //192.168.1.30/test
inside VE in /mn directory.
You can automate this process using 101.mount and 101.umount
scripts in conf directory of OpenVZ.

HTH,
vass.

But when i mount a samba share on the HOST (/test)

and then do a

mount --bind /var/lib/vz/private/<vmid>/test

There's no error but when i ssh to the server, i can see no contents in the dir /test

any help???
 
Hi,

YES, i have used the search function.... And i found a good thread but it isn't working as expected:

I have a openvz container with a ubuntu 8.04 server working as a db server.

I found the following messages:
Code:
smbfs/cifs isn't virtualized now,
you can't use it inside VE.
All available in VE filesystems resides in /proc/filestystems
file inside VE.

You can do the following to make smb shares available in VE:

On HOST (!):
mount -t cifs //192.168.1.30/test /mn
mount --bind /mn /vz/root/101/mn

After that you can see contents of //192.168.1.30/test
inside VE in /mn directory.
You can automate this process using 101.mount and 101.umount
scripts in conf directory of OpenVZ.

HTH,
vass.
But when i mount a samba share on the HOST (/test)

and then do a

mount --bind /var/lib/vz/private/<vmid>/test

There's no error but when i ssh to the server, i can see no contents in the dir /test

any help???

read again the quoted text and you will see the difference (root instead of private).

See http://wiki.openvz.org/Bind_mounts
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!