หน้าแรก | กระดานข่าว |  ปฏิทิน |  ค้นหา |  ติดต่อเรา VMWARE.IN.TH | Largest unofficial VMware Thailand User
หน้า: [1]   ลงล่าง
  พิมพ์  
ผู้เขียน หัวข้อ: ESXi 3.5 : ESXi enable FTP  (อ่าน 1134 ครั้ง)
vmware.in.th
"วีเอ็มแวร์ อิน ไทย" .. สังคมคน virtualization ออน์ไลน์
Administrator
Hero Member
*****
ออฟไลน์ ออฟไลน์

กระทู้: 1,172


pumpithu@gmail.com
ดูรายละเอียด เว็บไซต์ อีเมล์
รู้สึกว่า Copy ผ่าน SFTP แล้วรู้สึกว่าช้ามากมายเลย ลองหาดูว่าจะให้ส่งไฟล์เข้าไปที่ ESXi ผ่านทาง FTP เจอบทความหนึ่งแต่ผมลองแล้วไม่สำเร็จ .. เพื่อน ๆ ท่านใดลองแล้วใช้งานได้แจ้งกันบ้างนะครับ

Some have found the download speed using the datastore browser in the VI client or via vifs.pl in the RCLI to be too slow for day to day transfers. It is possible to enable SSH, but sometimes even the performance of that is not great due to the inability of ESXi to perform SFTP transfers thus relying on the more inefficient SCP. Note that if you're using SSH you can speed up your transfers by setting the encryption to be blowfish rather than the usual default of AES in your SSH client.

If security is not a high concern in your environment, you can add an FTP daemon to your ESXi. Here are the steps to accomplish this. These instructions come courtesy of this user on VMware's forums. If you just want to download an oem.tgz file that will make these changes for you, see here for ESXi 4.0 and here for ESXi 3.5.

Update: the oem.tgz file at the above link has been updated to include a wget version which will copy folders and rsync. To run the enhanced wget version specify the command as /bin/wget. Otherwise the default busybox version will be run. Wget is version 1.11.4. Rsync is version 3.0.3. Since the vmkernel does not support TLS, this version of rsync does not either. If you wish to create your own oem.tgz file, wget can be downloaded here (here for ESXi 4.0) and rsync from here (these downloads should be saved with no file extension).

อ้างถึง
1) Enable SSH access to your host.
2) Download and extract this zip file.
3) Copy proftpd to /sbin
4) Copy tcpd to /sbin
5) Copy proftpd.conf to /ejavascript:void(0);tc. You may wish to edit the file to suit your environment.
6) Add the below lines to /etc/inetd.conf. See the instructions here on editing this file.

# activate proftp daemon

Update: for ESXi 4.0 the above line should be ftp stream tcp nowait root /usr/sbin/proftpd proftpd

7) Determine the process id for inetd with the command ps | grep inetd
เจ๋ง Restart inetd with this command kill -HUP <process id>

Note that this change will not survive a reboot with ESXi. To have this available after a reboot you'll need to add these changes to oem.tgz.

If you need to transfer a file from one ESXi host to another with ftp, ESXi includes the command wget. You can use the command with the syntax to copy a file: wget http://ftp://root:password@source_ESXi_IP/path/file

Note: if you have previously updated inetd.conf and then added one of the oem.tgz files, then that copy of inetd.conf in state.tgz (or local.tgz for ESXi Embedded) will overwrite the copy in oem.tgz. If that is your case, then you'll need to manually edit inetd.conf and restart the host.

อ้างอิงบทความจาก : http://www.vm-help.com/esx/esx3i/ESXi_enable_FTP.php
บันทึกการเข้า

Freelance implementer Microsoft, Linux System, Data Storage and Virtualization Technology.

Twitter : http://twitter.com/pumpithu
Facebook : http://www.facebook.com/pumpithu
 
sumpaee
Newbie
*
ออฟไลน์ ออฟไลน์

กระทู้: 12


ดูรายละเอียด
ขออนุญาติขุดนะครับ

ช่วงนี้อยู่บ้านหลายวันเลยทดลองทำดูบ้างครับ สรุปวิธีทำเป็นภาษาไทยให้ละกันนะครับมีปรับเพิ่มเติมนิดหน่อย ความเร็ว FTP สูงสุดเท่าที่ผมลองทดสอบดู 11MB/S วิ่งที่ Gigabit
เพื่อนๆคนไหนทำได้เร็วกว่านี้รบกวนช่วยนำวิธีมาแชร์ด้วยนะครับ (อยากได้เร็วกว่านี้)  ยิ้มเท่ห์

ESXi3 U5 Enable FTP

1. ทำการเปิด SSH ตามขั้นตอนนี้ http://www.vmware.in.th/forum/index.php/topic,22.0.html
2. Download ไฟล์ proftpd.zip แล้วแตกไฟล์ออกมา
3. SSH ไปที่ ESXi3 แล้วทำการสร้างโฟลเดอร์ใน Datastore (vmfs/volumes/datastore.../)
    -cmd : mkdir tmp
    -cmd : cd tmp
    -cmd : mkdir -p oem/etc
    -cmd : mkdir -p oem/sbin
4. ใช้ VI Client Browse ไปที่ datastore แล้วคัดลอกไฟล์ไปวางตามนี้
    -ไฟล์ inetd.conf และ proftpd.conf วางที่ tmp/oem/etc
    -ไฟล์ proftpd และ tcpd วางที่ tmp/oem/sbin
    -เปลี่ยนสิทธิ์ของไฟล์เป็น 755
    -cmd : chmod 755 proftpd
    -cmd : chmod 755 tcpd
    -แก้ไขไฟล์ proftpd.conf โดยเอา # ออกจากหน้า Port    21
    -cmd : vi tmp/oem/etc/proftpd.conf
   

    -แก้ไขไฟล์ inetd.conf โดยเอา # ออกจากหน้า ftp แล้วแก้ไขสคริปดังนี้
    -ftp stream tcp nowait root /usr/sbin/tcpd proftpd
    -cmd : vi tmp/oem/etc/inetd.conf
   

5. สร้างไฟล์ oem.tgz
    -cmd : tar -cvzf oem.tgz etc sbin
6. คัดลอกไฟล์ oem.tgz ไปวางไว้ใน /bootbank/
    -cmd : cp oem.tgz /bootbank/oem.tgz
7. แก้ไขไฟล์ hosts ในบรรทัด
    -127.0.0.1 hostname.domainname localhost
    -ให้แก้ชื่อ   hostname.domainname ให้ตรงตามที่ได้ตั้งไว้ใน ESXi3 management console
   

8. Reoboot เครื่อง ESXi3
   

หวังว่าจะเป็นประโยช์บ้างนะครับ
ที่มาเพิ่มเติม http://communities.vmware.com
บันทึกการเข้า
 
vmware.in.th
"วีเอ็มแวร์ อิน ไทย" .. สังคมคน virtualization ออน์ไลน์
Administrator
Hero Member
*****
ออฟไลน์ ออฟไลน์

กระทู้: 1,172


pumpithu@gmail.com
ดูรายละเอียด เว็บไซต์ อีเมล์
ขอบคุณครับมาอัพเดทให้นะครับ แต่หลัง ๆ ผมทำผ่าน SFTP ครับ ไม่ต้องเปิด Service เพิ่ม แค่เราต้องเข้า SSH ให้ได้ครับ ก็จะใช้งาน SFTP ได้เลยครับ เปลี่ยนจาก Port 21 เป็น Port 22 ครับ ..
บันทึกการเข้า

Freelance implementer Microsoft, Linux System, Data Storage and Virtualization Technology.

Twitter : http://twitter.com/pumpithu
Facebook : http://www.facebook.com/pumpithu
 
หน้า: [1]   ขึ้นบน
  พิมพ์  
 
กระโดดไป:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2008, Simple Machines LLC | Thai language by ThaiSMF Valid XHTML 1.0! Valid CSS!