อธิบายการ Patch Security Update สำหรับ VMware vSphere Data Protection หรือ VDP Appliance ในตัวอย่างเป็นการ Patch จาก version 6.1.5 เป็น 6.1.6
1. Download Patch Version ISO File จาก https://my.vmware.com/group/vmware/details?productId=491&downloadGroup=VDP616
และ Upload ไปที่ Datastore
2. Login เข้า VMware vSphere Web Client ไปที่ VMs and Templates
3. Mount ISO File โดยไปที่ VDP Appliance (VM ที่ Deploy เป็น VDP) คลิ๊กขวา Edit และไปที่ CD/DVD drive 1 Browse Datastore ISO File ไปที่ File Patch ที่ Upload ขึ้นไปจากข้อที่ 1 และติ๊ก Connected
4. ตรวจสอบว่า Mount เรียบร้อยหรือไม่ โดย SSH ไปที่ VDP และใช้คำสั่ง df -h Mount Point ต้องเป็น /dev/sr0 5.1G 5.1GB 0 100% /mnt/auto/cdrom ถ้ายังไม่ถูก Mount ต้อง Mount Manual โดยใช้คำสั่ง
#mount /dev/sr0 /mnt/auto/cdrom
5. สร้าง Snapshot ก่อนดำเนินการ Upgrade โดยคลิ๊กขวาที่ VM และ Take Snapshot และกำหนด Disk Mode เป็น Dependent โดยคลิ๊กขวาที่ VM และกำหนดค่า Disk Mode
6. เข้าสู่ขั้นตอนการ Upgrade โดย Login ไปที่ VDP Client ผ่าน Web Browser ด้วย URL https://
ปัญหา: ไม่สามารถเรียก vCloud Director https://{IP_Adress}/cloud/ Error: JDBCConnectionException: Cannot open connection HTTP ERROR: 503 การตรวจสอบและแก้ไข: ตรวจสอบว่า service รันอยู่หรือไม่ หรือลอง restart service ด้วยคำสั่ง # service vmware-vcd restart ตรวจสอบ logs ที่ #/opt/vmware/vcloud-director/logs (https://pubs.vmware.com/vcd-51/index.jsp?topic=%2Fcom.vmware.vcloud.admin.doc_51%2FGUID-F5FA614B-611E-4794-B638-7716DEE8A6F2.html) ถ้า Error ไม่สามารถ Connect SQL ให้ตรวจสอบ Port 1433 ว่าเปิดอยู่หรือไม่ ตรวจสอบและเปิด Port 1433 ที่ Firewall แล้ว Restart vCloud อีกครั้ง
เอกสาร: Linux VMware Datasheet อัพเดทล่าสุด : 11/11/2020 ภาษา: ไทย รูปแบบ: PDF Format (2 หน้า) ข้อมูลเกี่ยวกับเอกสาร: สำหรับผู้ประกอบการ องค์กรภาครัฐและเอกชน เกี่ยวกับฟีเจอร์, ฟังก์ชั่นการทำงานและราคาของแพลนต่างๆ ของ Linux VMware VPS เพื่อประกอบการตัดสินใจได้ง่ายขึ้น
ขั้นตอนการยกเลิก VMware vSphere Data Protection (VDP) และ Unregister จาก vCenter 1. Shutdown VDP VM (อย่า Power Off) 2. คลิ๊กขวาที่ VDP และ Delete from disk 3. Unregister จาก vCenter โดยจัดการที่หน้า Manage Object Browser หรือเรียกจาก Web Browser 4. Login ด้วย vCenter Credentials 5. คลิ๊กที่ content แล้วไปที่ ExtensionManager 6. หา com.vmware.vdp2 และ com.vmware.vdp2.config (VDP 5.1:com.vmware.vdp) 7. คลิ๊ก unregisterextension ใส่รายละเอียดตามข้อ 6 คือ com.vmware.vdp2 แล้วก็ com.vmware.vdp2.config และคลิ๊ก Invoke Method 8. ข้อความ Method Invocation Result: Void ดำเนินการเรียบร้อย 9. ไปที่ vSphere Web Client คลิ๊ก Logout และ Login เข้าไปอีกครั้ง 10. ตรวจสอบต้องไม่มี VDP Plug-in แสดงอยู่ที่ Home >> Inventories
ขั้นตอนการ Migrate VM มาที่ VMware วิธีที่ 1 ใช้โปรแกรม VMware vCenter Converter Standalone สามารถ Convert ได้ทั้ง Linux และ Windows เปิดโปรแกรม VMware vCenter Converter Standalone Client Convert machine และเลือก Select source type ที่ต้องการ Convert ตัวอย่างเราไม่สนใจ Virtualization Program ต้องการ Convert Linux หรือ Windows ให้เลือก Powered-on machine ใส่ข้อมูล Source ต้นทางให้ถูกต้อง (IP, User, Root) และ OS Family ตรวจสอบ Connection ได้โดย View source detais… ถ้าสามารถ Connect ได้จะต้องแจ้งรายละเอียดเครื่องต้นทางเช่น ชื่อเครื่อง, cpu, ram คลิ๊ก Next ระบุ Destination Source ในที่นี้คือข้อมูล VMware vCenter Login เพื่อให้เครื่องต้นทาง Transter ข้อมูลไปที่เครื่องปลายทาง ถ้าเชื่อมต่อเครื่องปลายทางได้จะต้องสามารถเลือก Datastore และรายละเอียดอื่นๆได้ และคลิ๊ก Next สรุปข้อมูลที่ต้องการย้าย หากข้อมูลถูกต้องให้คลิ๊ก Finish และรอจนกระทั่งการดำเนินการเสร็จสิ้น เวลาขั้นอยู่กับข้อมูลและความเร็วในการ Transfer กรณีเกิด Error vmware converter unable to query the live linux source machine ให้ตรวจสอบว่า /tmp ที่เครื่องต้นทางสามารถเขียนไฟล์ได้หรือไม่ ตรวจสอบได้โดย 1. รันคำสั่ง mount | grep /tmp 2. ถ้าขึ้นว่า “noexec” หรือ “nosuid” แสดงว่าไม่สามารถเขียนได้ ตัวอย่าง #[root@server ~]# mount |grep /tmp #/usr/tmpDSK on /tmp type ext3 (rw,noexec,nosuid,loop=/dev/loop0) #/tmp on /var/tmp type none (rw,noexec,nosuid,bind) 3. แก้ไขโดยการรัน mount -o remount,exec /tmp 4. ทดสอบอีกครั้ง #[root@server ~]# mount |grep /tmp #/usr/tmpDSK on /tmp type ext3 (rw,loop=/dev/loop0) #/tmp on /var/tmp type none (rw,noexec,nosuid,bind) วิธีที่ 2 ใช้ Tools หรือเครื่องมือ Convert VM โดย V2V ช่วย ด้วยโปรแกรม StarWind V2V Converter เหมาะกับ Windows Server (ESXi, Hyper-V) วิธีที่ 3 ใช้วิธีการ Migrate ระบบจาก KVM ไปที่ VMware โดยการ Convert จาก QCOW2 File และ Restore บน VMware สำหรับ Linux System สมมติ VM บน KVM คือ vps.test50.com 1. ตรวจสอบ logical volume โดยใช้คำสั่ง #lvscan #ACTIVE '/dev/vg_newkvm/test50' [48.83 GiB] inherit 2. Convert LVM เป็น qcow2 โดยใช้คำสั่ง #qemu-img convert -O qcow2 /dev/vg_newkvm/test50 /backup/test50.qcow2 3. Convert qcow2 เป็น .vmdk ที่ VMware รองรับ #qemu-img convert -f qcow2 -O vmdk /backup/test50.qcow2 /backup/test50.vmdk 4. SCP ไปที่เครื่อง VMware หรือ ESXi #scp /backup/test50.vmdk root@192.168.1.50:/vmfs/volumes/ISO/ISO/ 5. ที่เครื่อง ESXi ไปที่ Path /vmfs/volumes/ISO/ISO/ หาไฟล์ test50.vmdk 6. Convert เป็น Disk Type ที่ VMware รองรับโดยใช้คำสั่ง (หากไม่ Convert จะสามารถ Restore ได้เฉพาะบน VMware Workstation เท่านั้น) #vmkfstools -i test50-s001.vmdk -d thin test50-new.vmdk *** สังเกตุจะได้ไฟล์ชื่อว่า test50-new-flat.vmdk และ test50-new.vmdk 7. Login ไปที่ VMware vSphere Client สร้าง VM ตามปกติ 8. ในขั้นตอนการกำหนด Resource ให้ Add New device และเลือก Add Existing Hard Disk และให้เลือก test50.vmdk (ให้ลบ Disk เดิมออกด้วย) 9. Start VM และทดสอบ *** Datastore อาจอยู่บน Host ที่เราสร้าง VM จำเป็นต้องย้ายโดยการ Migrate เพื่อ vMotion VM และ Storage ไปอยู่บน Datastore ที่เราต้องการ