Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

This page is a work in progress



Samba

sudo apt-get install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  attr libaio1 libfile-copy-recursive-perl python-dnspython samba-dsdb-modules
  samba-vfs-modules tdb-tools update-inetd
Suggested packages:
  bind9 bind9utils ctdb ldb-tools smbldap-tools winbind
The following NEW packages will be installed:
  attr libaio1 libfile-copy-recursive-perl python-dnspython samba samba-dsdb-modules
  samba-vfs-modules tdb-tools update-inetd
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,549 kB of archives.
After this operation, 14.8 MB of additional disk space will be used.

Create the mount directory

sudo mkdir /media/lxdfolder

Edit the samba config to define your mount point

sudo vi /etc/samba/smb.conf

Add the entry to the file

   guest ok = no

[lxdfolder]
   comment = this is a shared folder
   path = /media/lxdfolder
   browseable = yes
   readonly = no
   guest ok = no

# Please note that you also need to set appropriate Unix permissions

Now add your shared folder to the local container

lxc config device add containername lxdfolder disk source=/media/lxdfolder path=/media/lxdfolder
  • No labels