[Users] Samba inside Container

Andy Loughran andy at zrmt.com
Sat Sep 27 15:56:29 EDT 2008


John Drescher wrote:
> On Fri, Sep 26, 2008 at 1:05 PM, Andy Loughran <andy at zrmt.com> wrote:
>   
>> Guys,
>>
>> I'm trying to run a samba server inside a virtual machine... however,
>> I'm hitting a brick wall when it comes to the networking setup.
>>
>>     
>
> Not sure what your problem is. This works fine for me on venet0
>
>  # ifconfig
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:14721 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:14721 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:1212834 (1.1 MiB)  TX bytes:1212834 (1.1 MiB)
>
> venet0    Link encap:UNSPEC  HWaddr
> 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
>           inet addr:192.168.1.230  P-t-P:192.168.1.230  Bcast:0.0.0.0
> Mask:255.255.255.255
>           UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
>           RX packets:823047 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:575509 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:453992815 (432.9 MiB)  TX bytes:117053101 (111.6 MiB)
>
>
> vs_ldap1 ~ # smbstatus
> params.c:pm_process() - Processing configuration file "/etc/samba/smb-ldap.conf"
> Processing section "[global]"
> params.c:pm_process() - Processing configuration file
> "/etc/samba/smb-idmap.conf"
> Processing section "[global]"
> params.c:pm_process() - Processing configuration file
> "/etc/samba/smb-winbind.conf"
> Processing section "[global]"
> params.c:pm_process() - Processing configuration file
> "/etc/samba/smb-shares.conf"
> Processing section "[homes]"
> Processing section "[netlogon]"
> Processing section "[Profiles]"
> Processing section "[Public]"
>
> Samba version 3.0.32
> PID     Username      Group         Machine
> -------------------------------------------------------------------
>  1481   jdrescher     Domain Users  radimgws53   (192.168.2.42)
>
> Service      pid     machine       Connected at
> -------------------------------------------------------
> netlogon     1481   radimgws53    Fri Sep 26 13:12:57 2008
> IPC$         1481   radimgws53    Fri Sep 26 13:12:54 2008
>
> Locked files:
> Pid          Uid        DenyMode   Access      R/W        Oplock
>     SharePath   Name   Time
> --------------------------------------------------------------------------------------------------
> 1481         1000       DENY_NONE  0x100001    RDONLY     NONE
>     /home/netlogon   .   Fri Sep 26 13:12:57 2008
>
> John
> _______________________________________________
> Users mailing list
> Users at openvz.org
> https://openvz.org/mailman/listinfo/users
>   
I can't set venet0 with an external ip.. I always have

lo 127.0.0.1
venet0 127.0.0.1 &
venet0:0 192.168.6.101

I run a CentOS host, and CentOS guest for this.

Regards,

Andy


More information about the Users mailing list