VMware Cloud Community
bobduprout
Contributor
Contributor

Samba Server

Hello,

Does somebody know how to install samba server on VMware ESX Server 3.0.1 ?

0 Kudos
8 Replies
piacas
Enthusiast
Enthusiast

ESX I don't believe comes with a SAMBA server PRM. I would not make ESX a SAMBA server. If you are doing this to move data to ESX, use WinSCP or FastSCP.....don't setup ESX as a SAMBA server......

0 Kudos
bobduprout
Contributor
Contributor

Thx for your response but in fact, my esx server is just for tests, I don't care about security on it... It would be really easiest for me transfering data with my windows park with samba.

So if someone has any idea...

0 Kudos
kbk00
Hot Shot
Hot Shot

http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/install.html

You can just follow the normal route for installation (on linux). VI3's COS is based on RHEL 3 so just walk through the standard linux installs.

I have to say, i can't believe it's worthwhile... up to you though.

If you found this posting to be useful, great. I didn't waste your time.
dingding
Enthusiast
Enthusiast

i think kbk00 is correct, only samba client is installed in ESX,

\[root@BI-ESX2 root]# rpm -qa|grep samba

samba-common-3.0.9-1.3E.10vmw

samba-client-3.0.9-1.3E.10vmw

since service console is a modified version of RHEL, you can install additional rpm in COS just as you install in RHEL. i have successfully use this method to install mkisofs.

---- Idleness is not doing nothing. Idleness is being free to do anything.
0 Kudos
kbk00
Hot Shot
Hot Shot

Since Dingding mentioned the samba client, I thought I'd follow that up with a posting that's active right now.

esiebert7625 has a nice entry discussing the samba client and what to do. It's here:

http://www.vmware.com/community/thread.jspa?messageID=651857&tstart=0#651857

It talks about how to enable an ESX host to mount a windows share for things like ISOs, for example.

I would think this would be a much better plan than installing samba server.

If you found this posting to be useful, great. I didn't waste your time.
0 Kudos
user127777
Contributor
Contributor

Hi,

Per kbk00, I downloaded the Samba 3.0.28 tar file. I extracted it to a directory on my ESX box. Now I'd like to install samba (the goal is to share a single directory on my ESX host to a single Windows host) on my network. However, I'm not finding clear instructions on how to kick off the install. Here is what I see in the directory after I untarred it:

COPYING Manifest README source

docs packaging README.Coding swat

examples pcp REVISION testsuite

MAINTAINERS Read-Manifest-Now Roadmap WHATSNEW.txt

I took a stab at running ./packaging/RHEL/makerpms.sh and got this:

# ./makerpms.sh

Supported RPM version http://4.2.3

/vmfs/volumes/LocalStorage/Software/samba-3.0.28/packaging/RHEL /vmfs/volumes/LocalStorage/Software/samba-3.0.28/packaging/RHEL

/vmfs/volumes/LocalStorage/Software/samba-3.0.28/packaging/RHEL

/vmfs/volumes/LocalStorage/Software/samba-3.0.28/packaging/RHEL /vmfs/volumes/LocalStorage/Software/samba-3.0.28/packaging/RHEL

Creating samba-3.0.28.tar.bz2 ... Done.

/vmfs/volumes/LocalStorage/Software/samba-3.0.28/packaging/RHEL

setup/

setup/filter-requires-samba.sh

setup/samba.log

setup/samba.pamd

setup/samba.sysconfig

setup/smb.conf

setup/smb.init

setup/smbprint

setup/smbusers

setup/swat

setup/swat.desktop

setup/winbind.init

makerpms.sh: Getting Ready to build release package

error: Failed build dependencies:

pam-devel is needed by samba-3.0.28-1

readline-devel is needed by samba-3.0.28-1

libacl-devel is needed by samba-3.0.28-1

openldap-devel is needed by samba-3.0.28-1

krb5-devel is needed by samba-3.0.28-1

cups-devel is needed by samba-3.0.28-1

makerpms.sh: Done.

#

It looks like I may need to install some other dependent software and try the makerpms.sh script again??? Pls help. I can configure the smb.conf file but am new to installing software on esx (rhel)..

0 Kudos
anonimous
Enthusiast
Enthusiast

to install samba on ESX

download samba-3.0.9-1.3E.14.3vmw.i386.rpm

rpm -i samba-3.0.9-1.3E.14.3vmw.i386.rpm

configure /etc/samba/smb.conf

create a samba user

smbpasswd -a hhuser

restart samba

/etc/init.d/smb restart

add to startup level

ln -s /etc/init.d/smb /etc/rc3.d/S94smb

0 Kudos
Texiwill
Leadership
Leadership

Hello,

The samba-server package is available off the VMware ESX media but it is seriously frowned upon installing. You should never make your ESX host into a file server. The number of SMB style attacks available is incredible. You can run the client but from a security perspective running the samba server is frowned upon.


Best regards,

Edward L. Haletky

VMware Communities User Moderator

====

Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.

SearchVMware Blog: http://itknowledgeexchange.techtarget.com/virtualization-pro/

Blue Gears Blogs - http://www.itworld.com/ and http://www.networkworld.com/community/haletky

As well as the Virtualization Wiki at http://www.astroarch.com/wiki/index.php/Virtualization

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
0 Kudos