กระดานข่าว : ศูนย์คอมพิวเตอร์และเครือข่ายวารินชำราบ

ทิป เทคนิค สำหรับผู้ดูแลระบบ => ทิป เทคนิค ติดตั้งและใช้งาน VMware ESXi server => ข้อความที่เริ่มโดย: ผู้ดูแลระบบ ที่ วันที่ 22 กรกฎาคม 2017, 16:26:04

หัวข้อ: VMware ESXi - เทคนิคการดาวน์โหลดไฟล์ ISO ด้วย VMware CLI
เริ่มหัวข้อโดย: ผู้ดูแลระบบ ที่ วันที่ 22 กรกฎาคม 2017, 16:26:04
VMware ESXi - เทคนิคการดาวน์โหลดไฟล์ ISO ด้วย VMware CLI (http://www.voip4share.com/vmware-hypervisor-esxi-f103/vmware-esxi-iso-vmware-cli-t3953.html#p9316)
(http://www.voip4share.com/styles/prosilver/imageset/icon_post_target.gif) (http://www.voip4share.com/post9316.html#p9316)โดย nuiz (http://www.voip4share.com/member168.html) » 19 ก.ค. 2016 10:26
ผมเคยแนะนำเทคนิควิธีการอัพโหลดไฟล์ ISO ของ Guest Operating System เข้าสู่ VMware ESXi มาครั้งหนึ่งแล้วตามบทความนี้ครับ อัพโหลดไฟล์ ISO ของ Guess Operating System ไปเก็บไว้ใน VMware (http://www.voip4share.com/forum-f13/vmware-esxi-iso-virtual-machine-t3940.html) ซึ่งมีขั้นตอนคือ ดาวน์โหลดไฟล์มาเก็บไว้ในเครื่อง PC ก่อน แล้วค่อยอัพโหลดเข้า VMware อีกที
แต่ในบทความนี้ผมจะแนะนำวิธีการดาวน์โหลดไฟล์ ISO มาเก็บไว้ใน VMware เลย โดยใช้ Command Line Interface (CLI) ของ VMware ครับ วิธีการมีดังต่อไปนี้ครับ

1. เปิดให้รีโมท SSH เข้า VMware ได้
ทำบนหน้าจอล๊อกอินของ VMware เลยนะครับ ไม่สามารถทำบนโปรแกรม VMware vSphere Client ได้ ให้ดูจากบทความนี้ เซ็ต IP Address ให้ VMware ESXi และเปิดให้รีโมททาง SSH (http://www.voip4share.com/forum-f13/vmware-esxi-ip-address-ssh-t3947.html) ข้อ 10 ครับ

2. ใช้โปรแกรม SSH Client อะไรก็ได้ เช่น Putty, Bitvise, SecureCRT รีโมทเข้า VMware
ผมใช้โปรแกรม SecureCRT ครับ
(http://www.voip4share.com/images/shared2/vmware-esxi-remote-ssh-1.png)

เจอข้อความแบบนี้ กด No ครับ
(http://www.voip4share.com/images/shared2/vmware-esxi-remote-ssh-2.png)

ใส่พาสเวอร์ด อันเดียวกับที่เราใช้ล๊อกอินด้วย VMware vSphere Client นั่นแหล่ะครับ แล้วกด OK
(http://www.voip4share.com/images/shared2/vmware-esxi-remote-ssh-3.png)

จะได้หน้าจอ CLI ของ VMware ESXi ตามรูปครับ จะเห็นพร้อมท์ CLI ซึ่งเราสามารถใช้คำสั่งบน Linux ได้ และใช้คำสั่งเฉพาะของ VMware ESXi ได้
โค้ด: เลือกทั้งหมด (http://www.voip4share.com/#)The time and date of this login have been sent to the system logs.

VMware offers supported, powerful system administration tools.  Please
see www.vmware.com/go/sysadmintools (http://www.vmware.com/go/sysadmintools) for details.

The ESXi Shell can be disabled by an administrative user. See the
vSphere Security documentation for more information.
[root@ESXi:~]


4. ก๊อบลิ้งค์ URL ของไฟล์ ISO ที่จะดาวน์โหลด
สมมติว่าผมจะดาวน์โหลดไฟล์ ISO ของ Debian ลิ้งค์ที่ผมก๊อบมาเป็นแบบนี้
โค้ด: เลือกทั้งหมด (http://www.voip4share.com/#)http://mirror.ku.ac.th/debian-cd/8.5.0/amd64/iso-dvd/debian-8.5.0-amd64-DVD-1.iso (http://mirror.ku.ac.th/debian-cd/8.5.0/amd64/iso-dvd/debian-8.5.0-amd64-DVD-1.iso)


5. ที่ CLI ของ VMware ESXi ให้เปลี่ยนโฟลเดอร์ไปยัง datastore1
โค้ด: เลือกทั้งหมด (http://www.voip4share.com/#)cd vmfs/volumes/datastore1

ถ้าจะสร้างโฟลเดอร์ใหม่ชื่อ iso ให้พิมพ์คำสั่งนี้
โค้ด: เลือกทั้งหมด (http://www.voip4share.com/#)mkdir iso

เปลี่ยนโฟลเดอร์ไปยัง iso
โค้ด: เลือกทั้งหมด (http://www.voip4share.com/#)cd iso

เริ่มดาวน์โหลดไฟล์ ISO ใช้คำสั่ง wget
โค้ด: เลือกทั้งหมด (http://www.voip4share.com/#)wget http://mirror.ku.ac.th/debian-cd/8.5.0/amd64/iso-dvd/debian-8.5.0-amd64-DVD-1.iso (http://mirror.ku.ac.th/debian-cd/8.5.0/amd64/iso-dvd/debian-8.5.0-amd64-DVD-1.iso)

รอจนดาวน์โหลดเสร็จ เราก็จะมีไฟล์ Debian ISO ไว้ติดตั้ง Debian แล้วครับ

ออกจาก ESXi CLI พิมพ์คำสั่ง exit ครับ
โค้ด: เลือกทั้งหมด (http://www.voip4share.com/#)exit
หัวข้อ: Top Product Info
เริ่มหัวข้อโดย: FrankJScott ที่ วันที่ 05 มกราคม 2024, 22:39:29
Please try Google (https://www.google.com/) before asking about Best Product Info (http://hsien.com.freehostia.com/viewthread.php?tid=572711&pid=2721568&page=1&extra=#pid2721568) 55e0b24