VMware | 1412 https://xvlnw.com I'm on my way Wed, 10 Aug 2022 18:46:00 +0000 th hourly 1 https://wordpress.org/?v=5.5.13 ESXi Update ไม่ได้ ขึ้นข้อความ “No space left on device” https://xvlnw.com/topic/935 Tue, 02 Aug 2022 10:25:30 +0000 https://xvlnw.com/?p=935 สำหรับการอัพเดต ESXi ให้เป็นเวอร์ชั่นใหม่ผ่าน SSH ตัวอย่างเช่น และขึ้นข้อความดังต่อไปนี้ วิธีแก้ไข ให้ทำการรันคำสั่งเพิ่มขนาดของ swap ดังนี้ จากนั้น ลองรันอัพเดตอีกครั้งนะครับ

The post ESXi Update ไม่ได้ ขึ้นข้อความ “No space left on device” first appeared on 1412.]]>
สำหรับการอัพเดต ESXi ให้เป็นเวอร์ชั่นใหม่ผ่าน SSH ตัวอย่างเช่น

sxcli software profile update -p ESXi-xxxx

และขึ้นข้อความดังต่อไปนี้

[InstallationError]
 [Errno 28] No space left on device
       vibs = VMware xxxx

วิธีแก้ไข ให้ทำการรันคำสั่งเพิ่มขนาดของ swap ดังนี้

# Host swap - DS1 = Datastore Name
esxcli sched swap system set -n ds1 -d y
esxcli sched swap system get

# Example
[root@localhost:~] esxcli sched swap system get
   Datastore Active: false
   Datastore Enabled: false
   Datastore Name:
   Datastore Order: 0
   Hostcache Active: false
   Hostcache Enabled: true
   Hostcache Order: 1
   Hostlocalswap Active: false
   Hostlocalswap Enabled: true
   Hostlocalswap Order: 2

[root@localhost:~] esxcli sched swap system set -n datastore1 -d y

[root@localhost:~] esxcli sched swap system get
   Datastore Active: true
   Datastore Enabled: true
   Datastore Name: datastore1
   Datastore Order: 0
   Hostcache Active: false
   Hostcache Enabled: true
   Hostcache Order: 1
   Hostlocalswap Active: false
   Hostlocalswap Enabled: true
   Hostlocalswap Order: 2

จากนั้น ลองรันอัพเดตอีกครั้งนะครับ

The post ESXi Update ไม่ได้ ขึ้นข้อความ “No space left on device” first appeared on 1412.]]>
VMware Workstation สร้าง Snapshot แล้วช้า ขึ้นสถานะ Save state https://xvlnw.com/topic/927 Fri, 29 Jul 2022 11:42:40 +0000 https://xvlnw.com/?p=927 สำหรับใครที่ใช้งาน VMware Workstation และชอบสร้าง Snapshot บ่อยๆ แต่ว่าหลังจากกดสร้างแล้ว มันช้ามาก ขึ้นเป็น % Save state ด้านล่างโปรแกรม วิธีแก้ไขคือ Power off VM ก่อน ไปที่ ที่อยู่ของ VM และเปิดไฟล์ ชื่อ.vmx ใส่ค่านี้เพิ่มลงไป หลังจากนั้น Power on VM ตามปกติ และลอง Snapshot ดูใหม่อีกครั้งครับ หมาย…

The post VMware Workstation สร้าง Snapshot แล้วช้า ขึ้นสถานะ Save state first appeared on 1412.]]>
สำหรับใครที่ใช้งาน VMware Workstation และชอบสร้าง Snapshot บ่อยๆ แต่ว่าหลังจากกดสร้างแล้ว มันช้ามาก ขึ้นเป็น % Save state ด้านล่างโปรแกรม วิธีแก้ไขคือ

  1. Power off VM ก่อน
  2. ไปที่ ที่อยู่ของ VM และเปิดไฟล์ ชื่อ.vmx
  3. ใส่ค่านี้เพิ่มลงไป
mainMem.ioBlockPages = "2048" 
mainMem.iowait = "0" 

หลังจากนั้น Power on VM ตามปกติ และลอง Snapshot ดูใหม่อีกครั้งครับ

หมายเหตุ: แนะนำให้ลบ Snapshot อันเดิมออกก่อน เพราะว่าถ้าเราแก้ไขไฟล์ .vmx ไปแล้ว หากเราเปิดใช้งานตามปกติ และกด Restore Snapshot กลับไป ค่าที่เราเพิ่มขึ้นมาหลังจาก Snapshot เดิมก็จะหายไปด้วยนะครับ

The post VMware Workstation สร้าง Snapshot แล้วช้า ขึ้นสถานะ Save state first appeared on 1412.]]>
The vSphere Web Client reports 503 error https://xvlnw.com/topic/901 Tue, 10 May 2022 11:08:36 +0000 https://xvlnw.com/?p=901 The vCenter Server Appliance 6.0 is running at Update 2. The vSphere Web Client reports 503 error. Running the service-control –start –all fails to complete. You see the error: Stdout = Starting VMware Content Library Service… vmware-vdcs Enable SSH + Shell Login to vCenter Server …

The post The vSphere Web Client reports 503 error first appeared on 1412.]]>
  • The vCenter Server Appliance 6.0 is running at Update 2.
  • The vSphere Web Client reports 503 error.
  • Running the service-control –start –all fails to complete. You see the error: Stdout = Starting VMware Content Library Service… vmware-vdcs
    1. Enable SSH + Shell
    2. Login to vCenter Server via SSH
    3. Ehter shell command
    4. cd /var/log/vmware/vdcs
    5. mkdir clspid
    6. mv vmware-vdcs.pid clspid 
    7. Try to start again: service-control –start –all
    The post The vSphere Web Client reports 503 error first appeared on 1412.]]>
    Warning Registration/unregistration of a VASA vendor provider on a Virtual SAN host fails https://xvlnw.com/topic/871 Tue, 28 Sep 2021 07:13:30 +0000 https://xvlnw.com/?p=871 vCenter แจ้งเตือนข้อควา Warning เกี่ยวกับ vSAN ในระดับ Host ตามข้อความนี้ Warning Registration/unregistration of a VASA vendor provider on a Virtual SAN host fails วิธีการแก้ไข ให้ทำการ Restart vSAN Service ที่ระดับ Esxi Host ด้วยการ SSH เข้าไป และใช้คำสั่งนี้

    The post Warning Registration/unregistration of a VASA vendor provider on a Virtual SAN host fails first appeared on 1412.]]>
    vCenter แจ้งเตือนข้อควา Warning เกี่ยวกับ vSAN ในระดับ Host ตามข้อความนี้

    Warning Registration/unregistration of a VASA vendor provider on a Virtual SAN host fails

    วิธีการแก้ไข ให้ทำการ Restart vSAN Service ที่ระดับ Esxi Host ด้วยการ SSH เข้าไป และใช้คำสั่งนี้

    /etc/init.d/vsanvpd restart
    The post Warning Registration/unregistration of a VASA vendor provider on a Virtual SAN host fails first appeared on 1412.]]>
    VMware ยกเลิก​ Migration Tasks ที่ค้างอยู่ https://xvlnw.com/topic/697 Mon, 19 Oct 2020 14:00:31 +0000 https://xvlnw.com/?p=697 สำหรับ vCenter ที่มี Migration Tasks ค้างอยู่ ไม่ยอมเสร็จซักที คาดว่าระบบจะค้าง ให้ตรวจสอบว่า VM รันอยู่ที่ Host ไหน และให้ทำการ SSH เข้าไปยัง Host นั้นๆ จากนั้นหา Word ID ของตัว VM ด้วยคำสั่งนี้ เมื่อได้ค่า Word ID แล้ว ให้ทำการ Force VM Process ทิ้งทั้งหมด ในที่นี้จะแนะนำให้ใช้ force นะครับ

    The post VMware ยกเลิก​ Migration Tasks ที่ค้างอยู่ first appeared on 1412.]]>
    สำหรับ vCenter ที่มี Migration Tasks ค้างอยู่ ไม่ยอมเสร็จซักที คาดว่าระบบจะค้าง ให้ตรวจสอบว่า VM รันอยู่ที่ Host ไหน และให้ทำการ SSH เข้าไปยัง Host นั้นๆ จากนั้นหา Word ID ของตัว VM ด้วยคำสั่งนี้

    esxcli vm process list

    เมื่อได้ค่า Word ID แล้ว ให้ทำการ Force VM Process ทิ้งทั้งหมด

    esxcli vm process kill --type= [soft,hard,force] --world-id= WorldNumber

    ในที่นี้จะแนะนำให้ใช้ force นะครับ

    The post VMware ยกเลิก​ Migration Tasks ที่ค้างอยู่ first appeared on 1412.]]>