หน้าเว็บ

แสดงบทความที่มีป้ายกำกับ Vmware แสดงบทความทั้งหมด
แสดงบทความที่มีป้ายกำกับ Vmware แสดงบทความทั้งหมด

วันพุธที่ 8 กรกฎาคม พ.ศ. 2563

VMware : VMware ไม่ Boot เข้า CD

VMware : VMware ไม่ Boot เข้า CD
เกิดจากการเพิ่ม Disk แล้ว Bios ของ VM Set ให้ Boot เข้า Disk ก่อน ทำให้ไม่ Boot CD

วิธีแก้

1. Edit VMware ที่ไม่ Boot เข้า CD
ที่ Tab VM Options ทำเครื่องหมายถูกที่ Force BIOS Setup ตามรูป เพื่อให้ Boot เข้า Bios
2. ตั้งค่า Bios ให้ Boot จาก CD ก่อน แล้ว Save




เครื่องก็จะ Boot เข้า CD

วันพฤหัสบดีที่ 28 พฤศจิกายน พ.ศ. 2562

Ubuntu : Ubuntu 14.04 Update Vmware Tools แล้ว Error

Ubuntu : Ubuntu 14.04 Update Vmware Tools แล้ว Error
https://intranet.sci.com/blog.php?u=3&b=832

root@webax:/tmp/vmware-tools-distrib# ./vmware-install.pl -d
open-vm-tools packages are available from the OS vendor and VMware recommends
using open-vm-tools packages. See http://kb.vmware.com/kb/2073803 for more
information.
Do you still want to proceed with this installation? [no]
INPUT: [no] default


ต้อง run คำสั่ง
  1. ./vmware-install.pl -f


https://kb.vmware.com/s/article/2107676

วันจันทร์ที่ 28 ตุลาคม พ.ศ. 2562

VMware SD-WAN By VeloCloud อบรบ FYI Center 20191024 ครั้งที่ 12 (ProeN+SIS)

VMware SD-WAN By VeloCloud อบรบ FYI Center 20191024 ครั้งที่ 12 (ProeN+SIS)
เป็นตัวเชื่อมโยงระหว่าง สาขา ที่ต้องการเข้าถึงข้อมูลเดียวกัน คล้าย VPN แต่จะดีกว่ามีเส้น Backup และ Run APP มี Reports ให้ดู
เหมาะกับลูกค้าที่มีมากกว่า 2 สาขาขึ้นไปหรือเป็นพันสาขา ที่ต้องการเข้าถึงข้อมูลร่วมกัน และ รองรับ APP ที่ Run บน Cloud ได้มากกว่า 3300+

ข้อมูล Spec และคุณสมบัติ ต่าง ๆ
Router VeloCloud Box
- Edge software+hardware เป็น Box

- Controllers หน้าจอ MANAGEMENT Multi-tenalt On Cloud เห็นเฉพาะของเราของคนอื่น ไม่เห็น
- Gateways ติดตั้งใกล้ Saas Service Edge เข้า Gateways ออก Internet ทำให้ ออกใช้งาน App ได้ไวขึ้น
ง่ายไม่มี Command Line ใช้ผ่าน GUI หมด เห็น Link เชื่อมโยงกัน ระหว่าง Router ข้ามจังหวัด ข้ามประเทศ

DATA ที่ใช้ส่วนมากจะมีแค่ 3 ส่วน คือ
วิดีโอ เสียง ข้อมูล ข้อดีของ VeloCloud Box
1. ติดตั้งง่าย เปลี่ยนจากติดตั้งเอง เป็น เช่า Server Config ต่าง ๆ เพื่อลด Cost
2. DNPO packed loss ช่วยให้ไป AWS และ Saas Service ได้ไวขึ้น วิ่งไป มีเน็ต 5 เส้น มันจะรู้ได้ว่าตัวไหนวิ่งไปได้เท่าไหร่ ทำรวม Banwith เพื่อให้รวมแล้วิ่งได้เร็วขึ้น
ส่ง packed ถ้าขาดจะส่งเฉพาะที่ขาด ไม่ส่งใหม่ทั้งหมด
3. Manage On Cloud

Config Router VeloCloud
เหมือน Firewall Config Rute กำหนดด้วยหน้าจอ GUI ไม่ต้อง Run ผ่าน Command
Firewall กำหนดทีเดียว มีผลทุก Edge
Config แล้วล่ม สามารถ Restore Config เก่า กลับมาคืนใช้งานได้ตามปกติ

Deep Dive Technical
Components :
Orchestrator - Management ดู Overview Bandwidth Or App use View All
รองรับ API phyton หรือ java เข้าดูตัวอย่างได้ที่
https://code.vmware.com/home
gateway - Optimization
Edge - มีหลาย model รุ่น ในรูป อุปกรณ์ Dell เป็นคนทำให้ สามารถ นำ Virtual Edge ลงได้ใน VM Esxi ซื้อ License ไม่มีให้ทดลอง ได้ไฟล์ VCO มา Add ใส่ VM Esxi แล้ว Config
ซื้อ Bandwidth เท่าที่ใช้ ตามขนาดที่ใช้แล้ว SD-WAN Box ถ้าเกินจะมีแจ้งเตือน จ่ายเพิ่มปีหน้า ต่อ MA
คู่มือ Run VCO บน VMware Esxi


เข้าดูได้แต่ไม่มีสิทธ์ Download ต้องติดต่อทาง ProeN เพื่อใส่สิทธิ์ และ เสนอ License
https://my.vmware.com/web/vmware/info/slug/networking_security/vmware_sd_wan/3_3_1l

Link Steering Option

- Mandatory หลักตายเปลี่ยนไปอีกเส้น
- Preferred พวก Time packed Loss 2% พวกเสียง VoIP
- Available ขาดและหาย Web ตัดพวกเว็บออกเพื่อให้เหลือพวกที่สำคัญกว่า

Security
- TLS1.2 และ PCI DSX Banking ใช้ ไม่สามารถดักจับ ได้
- VPN
- Firewall Support เป็น Stateless Full Firewall
- End To End

CDE แบบ PCI dls 3.2 ปิดไว้จะมองไม่เห็น Log ทั้งหมดเช่นพวก App ธนาคาร Transation ต่าง ๆ จะไม่แสดงใน Log


Lab Internet คนใช้เยอะ Run VMware ไม่ขึ้น

1. เข้าไปที่ สมัครสมาชิก เมล์ ทดลองได้ 8-9 วันก็จะหมดเวลา
https://labs.hol.vmware.com/
https://labs.hol.vmware.com/HOL/catalogs/catalog/1212
2. register
3. ค้นหา sd-wan 2040 Start labs ติดตั้ง slide 37
4. vnc ตัวที่เป็น chicaco
5. ie กด vco เข้า เพื่อ Register ขึ้นนี้ทำไม่ผ่านเพราะเน็ตแรงไม่พอ
6. เข้า Edge send mail อีกครั้ง กด Link ignore Activate slide 47 ผ่านทำตาม Slide activate ผ่าน
7. กลับไปที่ Google Chrome ตัว Edge หลัก slide49
วิธี config :
ราคายังไม่ทราบ สอนทาง Tech มากกว่า
เบื้องต้น
เป็นการขายแบบเช่าไม่ได้ซื้อขาด เหมือนการเช่าสัญญาณ Internet จ่ายรายเดือนหรือรายปี
อยู่ที่ ใช้กี่สาขา ใช้ Bandwidth ระหว่างสาขาเท่าไหร่ เท่าไหร่
หรือใช้งาน Service อื่น ๆ Oncloud ด้วยหรือไม่ เช่น Run App Oncloud Database เป็นต้น
ต้องใน Sales เข้ามาสำรวจความต้องการใช้ของ User แล้วเสนอราคา

Slide : https://drive.google.com/open?id=18-QVatcfz9ZM2rHd0qu59WrvdUtQLvdD

วันพฤหัสบดีที่ 22 สิงหาคม พ.ศ. 2562

VMware : VMware Tools Windows 2003 On ESXi 6.7

VMware : VMware Tools Windows 2003 On ESXi 6.7 มีอาการ จอฟ้า จึงทดลองติดตั้ง VMware Tools

VMware Tools
VMware Tools 10.3.2 Release Notes

These Notes clear stats that there is no iso or packages has been released for Windows 2003 or earlier OS. The list of the OS which support these latest VMware tools are below.

Windows OS level prerequisites
Windows Server 2016
Windows 10
Windows Server 2012 R2
Windows 8.1
Windows Server 2012
Windows 8
Windows Server 2008 R2 Service Pack 1 (SP1)
Windows 7 SP1
Windows Server 2008 Service Pack 2 (SP2)
Windows Vista SP2
Windows Server 2012 R2 with Microsoft update KB2919355
Windows 8.1 with Microsoft update KB2919355

ไม่มี Windows server 2003 ถูกตัดออก เนื่องจาก
End of Support for Microsoft Windows Server 2003 as well as some other old traditional legacy EUC OS
Microsoft Product Life Cycle
https://support.microsoft.com/en-gb/lif ... 02003%20R2

ต้องใช้ VMware Tools Version 10.0.12
winPreVista.iso
ติดตั้งได้
แต่จะมีข้อความขึ้น
VMware Tools is installed and supported, but a newer version is available on the host.
The configured guest OS (Microsoft Windows Server 2003 (32-bit)) for this virtual machine does not match the guest that is currently running (Microsoft Windows Server 2003 Standard (32-bit)). You should specify the correct guest OS to allow for guest-specific optimizations.

วันอาทิตย์ที่ 16 มิถุนายน พ.ศ. 2562

VMware :: VMware Esxi Upgrade 6.7 update U1 Error

VMware :: VMware Esxi Upgrade 6.7 update U1 Error
[root@esxi99:/vmfs/volumes/543e1f7f-9c6a2848-b192-2c44fd93cff0/ISO/UpDateVM/UpdateVm 6.7] esxcli software vib update -d /vmfs/volumes/543e1f7f-9c6a2848-b192-2c44fd93cff0/ISO/UpDa
teVM/UpdateVm\ 6.7/update-from-esxi6.7-6.7_update01.zip
[DependencyError]
VIB VMware_bootbank_esx-base_6.7.0-1.28.10302608 requires esx-update << 6.7.0-1.29, but the requirement cannot be satisfied within the ImageProfile.
VIB VMware_bootbank_esx-base_6.7.0-1.28.10302608 requires esx-update >= 6.7.0-1.28, but the requirement cannot be satisfied within the ImageProfile.
Please refer to the log file for more details.

แก้โดย
Open the ESXi firewall for HTTP traffic. The ESXi host must have internet access.
  1. esxcli network firewall ruleset set -e true -r httpClient


แล้ว Update โดยใช้คำสั่ง
  1. esxcli software profile update -p ESXi-6.7.0-20181002001-standard  -d /vmfs/volumes/543e1f7f-9c6a2848-b192-2c44fd93cff0/ISO/UpDateVM/UpdateVm\ 6.7/update-from-esxi6.7-6.7_update01.zip


Close ESXi firewall.
  1. esxcli network firewall ruleset set -e false -r httpClient


แล้วค่อย Update Patch อื่นตามปกติ

https://communities.vmware.com/thread/598912

วันศุกร์ที่ 7 มิถุนายน พ.ศ. 2562

VMware :: VMware Esxi cancel copy task

Cannot cancel copy task in ESXi Web interface
On Esxi only, not ESX: Restart the VM client daemon after SSH Login

/etc/init.d/hostd restart

https://serverfault.com/questions/889256/cannot-cancel-copy-task-in-esxi-web-interface

วันพฤหัสบดีที่ 6 มิถุนายน พ.ศ. 2562

VMware :: VMware Esxi Upgrade 6.5 To 6.7
(วิธีนี้ทำไม่ได้)
ถ้าจะ Download File มา Upgrade ใหม่ต้องสมัครเมล์ใหม่ และอาจจะได้ Licence ใหม่
เมื่อเขา Download Esxi 6.7 จะมีข้อความบอก ว่าไม่สามารถ UP จาก Version 6.5 ไป 6.7 ไม่ได้
https://my.vmware.com/group/vmware/details?downloadGroup=ESXI670&productId=742#errorCheckDiv

วิธีที่ทำได้คือ Download และ Upgrade ผ่าน Code ลองแล้วผ่านใช้ได้
How to update ESXi 6.5 to 6.7 via command line

1. Place the host you are about to upgrade into Maintenance Mode.
2. Now SSH into the host using PuTTY (or any other SSH client/terminal).
3. Type the following command to open the firewall for outgoing HTTP requests:

esxcli network firewall ruleset set -e true -r httpClient


4. Type the following command to upgrade to the latest ESXi 6.7 Build 9484548 (latest as of writing)

*** ถ้า DNS ปิดต้อง Fix resolv.conf
[code]nano /etc/resolv.conf[/code]
add nameserver
[quote]nameserver 8.8.8.8[/quote]
esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-6.7.0-20180804001-standard


5. After the update has finished disable the HTTP firewall rule by typing:
esxcli network firewall ruleset set -e false -r httpClient


6. And finally, reboot the ESXi host to complete the upgrade.
reboot

Once the host comes back online, remove it from Maintenance mode and you’re good to go. It also wouldn’t hurt to also disable SSH when you’re done, for security purposes.

Tip: To view a list of all available ESXi profiles type the following in your SSH session:

esxcli software sources profile list --depot=https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml

https://miketabor.com/how-to-upgrade-esxi-6-5-to-esxi-6-7/


แล้วค่อย Update Patches 6.7 ต่อ
https://intranet.sci.com/blog.php?u=281&b=1527

VMware :: Vmware ESXi 6.5.0 Upgrade patches last version ESXi650-201905001 : 13635690 Show warning

VMware :: Vmware ESXi 6.5.0 Upgrade patches last version ESXi650-201905001 : 13635690
Show warning
This host is potentially vulnerable to issues described in CVE-2018-3646, please refer to https://kb.vmware.com/s/article/55636 for details and VMware recommendations.
Fix the problem by.
1. Connect to the ESXi host by opening a web browser to https://HOSTNAME.
2. Click the Manage tab
3. Click the Advanced settings sub-tab
4. Click in the Filter box and search VMkernel.Boot.hyperthreadingMitigation
5. Select the setting by name and click the Edit pencil icon
6. Change the configuration option to true (default: false)
7. Click Save.
8. Reboot the ESXi host for the configuration change to go into effect.

https://kb.vmware.com/s/article/55806

วันศุกร์ที่ 27 เมษายน พ.ศ. 2561

Vmware : Vmawre Esxi 6.5 status invalid ไม่สามารถลบปกติได้ ด้วยการคลิกขวา ลบ หรือ Unregister ได้

Vmware : Vmawre Esxi 6.5 status invalid ไม่สามารถลบปกติได้ ด้วยการคลิกขวา ลบ หรือ Unregister ได้
แก้โดย
vmware remove virtual machine status invalid by command
1. ssh เข้าเครื่อง Server Vmware ที่ Error
2. Stop vpxa and hostd service before edit คำสั่งนี้ Server อื่น ๆ ยังสามารถเข้าใช้งานได้ตามปกติ
  1. /etc/init.d/vpxa stop
  1. /etc/init.d/hostd stop

3. เข้าไปที่ /etc/vmware/hostd
  1. cd /etc/vmware/hostd

3. แก้ไฟล์ vmInventory.xml ด้วยคำสั่ง vi backup ไฟล์เดิมไว้ก่อนแก้ไขด้วย
  1. vi vmInventory.xml

4. หา Line ที่ Vm Error แล้วกด ลบ ด้วยการกด dd ลบทั้งบรรทัดออก
เช่น
  1.  <ConfigEntry id="0002">
  2.     <objID>3</objID>
  3.     <secDomain/>
  4.     <vmxCfgPath>/vmfs/volumes/590cca43-c78bd3ac-1234-000c2908a466/VMware vCenter Server Appliance/VMware vCenter Server Appliance.vmx</vmxCfgPath>
  5.   </ConfigEntry>

5. กด :wq เพื่อออกจาก จาก คำสั่ง vi
6. Start service vpxa and hostd service
  1. /etc/init.d/vpxa start
  1. /etc/init.d/hostd start

เสร็จแล้วลองเข้าดู Vm ที่ Error จะหายไป
https://communities.vmware.com/thread/582673
คำสั่ง vi เพิ่มเติม
http://thaiopensource.org/%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%87%E0%B8%B2%E0%B8%99-vi-editor-%E0%B9%80%E0%B8%9A%E0%B8%B7%E0%B9%89%E0%B8%AD%E0%B8%87%E0%B8%95%E0%B9%89%E0%B8%99/

วันจันทร์ที่ 30 ตุลาคม พ.ศ. 2560

Ubuntu : Ubuntu install cer VMware Server.

Ubuntu : Ubuntu install cer VMware Server.

1. You must have file cert for server file .cer
You Can use this step.
https://intranet.scivalve.com/blog.php?u=281&b=1060
2. On Ubuntu Go to folder /usr/share/ca-certificates/
3. Create a new folder, i.e. "sudo mkdir chrome"
4. Copy the .crt file into the chrome folder
5. Make sure the permissions are OK (755 for the folder, 644 for the file)
6. Run "sudo update-ca-certificates"

Test login to server VMware ESXi

https://askubuntu.com/questions/645818/how-to-install-certificates-for-command-line

VMware : Vmware ESXi 6.5.0 Copy and Move Folder

VMware : Vmware ESXi 6.5.0 Copy and Move Folder
* ไม่สามารถทำผ่านหน้า Web Browser ได้ หน้า Web Copy หรือ Move ได้ทีละไฟล์ *

เจอวิธีใหม่ Copy ผ่านหน้า Web ได้ แต่ต้องมี Folder มารอง ต่อจาก Folder Disk ก่อน
เช่น /vmfs/volumes/DATA/OS/ ภายใน OS จึงจะสามารถวางข้อมูลเป็น Folder ได้
หรือถ้าจะ Move ให้พิมพ์ชื่อของ Folder ที่ตำแหน่งที่จะ Move ไปด้วย


ถ้าต้องการ Copy หรือ Move Folder หลาย ๆ File พร้อมกันต้อง SSH เข้าไปแล้วใช้คำสั่งผ่าน Terminal
เข้าไปที่ Data Store ของ VMware ESXi อยู่ที /vmfs/volumes/
  1. cd /vmfs/volumes/

1. คำสั่ง Move ใช้ mv
Usage: mv [-fin] SOURCE DEST
or: mv [-fin] SOURCE... DIRECTORY

Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY

-f Don't prompt before overwriting
-i Interactive, prompt before overwrite
-n Don't overwrite an existing file

เช่น
  1. mv -fin AX_DB_Test/ /vmfs/volumes/DATA/ActiveServer/


2. คำสั่ง Copy สามารถใช้ copy -r ได้เลย เช่น
  1. cp -r Test/ /vmfs/volumes/DATA/ActiveServer/

VMware : Vmware ESXi 6.5.0 Update patches

VMware : Vmware ESXi 6.5.0 Update patches
1. Download patches ที่ต้องการ Update ที่
https://my.vmware.com/group/vmware/patch

เลือก ESXi(Embedded and Installable) และ 6.5.0 แล้วเลือก Download patch update ที่เราต้องการ

2. นำไฟล์ Zip ที่ได้ Up ขึ้นไปไว้ที่ Datastore ของ Server เช่น
ESXi --> UpDateVm หรือที่อื่น ตามที่เราต้องการ

3. ปิดเครื่องที่ Run อยู่ใน VM ทั้งหมด
4. SSH ไปที่เครื่อง VM หรือไปที่หน้าเครื่อง กด Alt+F1 (ในของจริงกดแล้วไม่ขึ้นให้ Login)
จึงใช้วิธี SSH เอา
5. ใช้คำสั่ง เพื่อเปิด mode maintenance
  1. vim-cmd hostsvc/maintenance_mode_enter

6. เข้าไปที่ Up load file ไว้ ตามข้อ 2.
  1. cd /vmfs/volumes/ESXi/UpDateVM/

7. ls ดูว่ามีไฟล์อยู่หรือไม่
  1. ls

8. ติดตั้งโดยใช้คำสั่ง
  1. esxcli software vib update -d /vmfs/volumes/58e65db8-567b22bb-3035-30e171533e54/UpDateVM/ESXi650-XXX.zip

XXX.zip เป็นชื่อไฟล์ วันที่ ที่จะ Update
9. reboot เครื่องโดยใช้คำสั่ง
  1. reboot

10. เสร็จแล้วใช้คำสั่ง เพื่อปิด mote maintenance
  1. vim-cmd hostsvc/maintenance_mode_exit

เลข Build ก็จะเปลี่ยนไปตาม patch ที่เรา Update

ที่มา
https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2008939

PfSense : ติดตั้ง VMware Tools PfSense ON VMWare Esxi 6.5

PfSense : ติดตั้ง VMware Tools PfSense ON VMWare Esxi 6.5
การติดตั้ง Vmware Tools ของ PfSense ทำได้โดย
เครื่อง PfSense ต้องออก Internet ตรงได้ ถึงจะสามารถ Download Package ต่าง ๆ ได้
1. Login เข้า PfSense เลือก Menu System --> Package Manger
2. เลือก Available Packages
3. เลือก Open-VM-Tools แล้วกด Install รอจนกว่าจะเสร็จ

ติดตั้งเสร็จแล้ว

วันจันทร์ที่ 9 มกราคม พ.ศ. 2560

VMware : ติดตั้ง VMware Tools แบบ CLI

VMware : ติดตั้ง VMware Tools แบบ CLI
Ubuntu Server with only a command line interface
1.Go to Virtual Machine > Install VMware Tools (or VM > Install VMware Tools).
Note: If you are running the light version of Fusion, or a version of Workstation without VMware Tools, or VMware Player, you are prompted to download the Tools before they can be installed. Click Download Now to begin the download.

2.In the Ubuntu guest, run these commands:
Create a directory to mount the CD-ROM by running the command:

  1. sudo mkdir /mnt/cdrom

When prompted for a password, enter your Ubuntu admin user password.
Note: For security reasons, the typed password is not displayed. You do not need to enter your password again for the next five minutes.

Mount the CD-ROM by running the command:
  1. sudo mount /dev/cdrom /mnt/cdrom or sudo mount /dev/sr0 /mnt/cdrom


The file name of the VMware Tools bundle varies depending on your version of the VMware product. Run this command to find the exact name:
  1. ls /mnt/cdrom

Extract the contents of the VMware Tools bundle by running the command:
  1. tar xzvf /mnt/cdrom/VMwareTools-x.x.x-xxxx.tar.gz -C /tmp/


Note: x.x.x-xxxx is the version discovered in the previous step.

Change directories into the VMware Tools distribution by running the command:
  1. cd /tmp/vmware-tools-distrib/


Install VMware Tools by running the command:
  1. sudo ./vmware-install.pl -d

Note: The -d switch assumes that you want to accept the defaults. If you do not use -d, press Return to accept each default or supply your own answers.

Run this command to reboot the virtual machine after the installation completes:
  1. sudo reboot


http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1022525

วันอังคารที่ 3 มกราคม พ.ศ. 2560

VMware : VMware ทำงานหนักผิดปกติ

VMware : VMware ทำงานหนักผิดปกติ
- ที่ห้อง Server มีเสียงพัดลมของเครื่องดังผิดปกติต่อเนื่อง
- Network ช้า
- การเข้าใช้งาน Server ต่าง ๆ ช้า

เกิดจากมี Server หรือ Windows บางตัว Run หรือทำงานอะไรบางอย่างอยู่ทำให้ CPU ของเครื่อง VM ทำงาน 100% จึงทำให้เกิดปัญหาดังกล่าว

วิธีแก้ไข
1. เข้า VSphere Client ดูที่ Tab Performance แล้วเลือก Switch To เป็น CPU จะเห็นว่า มี VMware : VMware ทำงานหนักผิดปกติ CPU ทำงาน 100% ตามรูป

2. เข้าไปไล่ดู Tab Performance และเลือก Switch To เป็น CPU จะถ้าเห็นว่าเครื่องนั้นทำงานหนักผิดปกติ ให้ไปดูที่เครื่อง เช่น
- เครื่อง Alfresco ทดลอง Restart Service ว่าลดลงหรือไม่ ถ้าไม่หายต้อง Reboot เครื่อง Alfresco
- Win10-IT มี Processes บางตัวที่ Run CPU อยู่ 100% ให้ปิดมัน
3. ถ้าปิด Processes หรือ Restart แล้ว CPU ของแต่ล่ะเครื่องจะลดลง ตามรูป

และ CPU ของเครื่อง โดยรวมก็จะทำงานลดลง พัดลมก็จะมีเสียงเบาปกติ

วันเสาร์ที่ 20 สิงหาคม พ.ศ. 2559

VMware : Copy Old VM To New VM On Virtual Machine

VMware : Copy Old VM To New VM On Virtual Machine

1. ถ้าเครื่อง VMware ปิดอยู่
- เข้า Data store เลือก Download หรือ Copy ทั้ง Folder ไปที่ใหม่ได้เลย

2. ถ้าเครื่อง VMware เปิดอยู่ แต่ต้องการ Copy หรือ Download ให้ทำดังนี้
- Download ไฟล์ .vmx กับ .vmsd
- สร้าง Snapshot
- Download หรือ Copy ไฟล์ทั้งหมด ยกเว้น 2 ไฟล์แรก และไฟล์ .vmdk , ไฟล์ .vswp อันล่าสุด
- เสร็จแล้ว Add ไฟล์ .vmx to inventory
- ลบ Lan network แล้ว Add ใหม่เพื่อไม่ให้ซ้ำกับเครื่องเดิม แล้วเปิดเครื่อง Set IP ใหม่ เปลี่ยนชื่อเครื่องใหม่

วันศุกร์ที่ 3 มิถุนายน พ.ศ. 2559

เพิ่มขนาด ของ HDD ในเครื่อง VM

- ปิดเครื่อง VM ที่ต้องการ เพิ่มขนาด HDD
- เข้าไปที่ Edit เพิ่มขนาดได้เลขตามที่ต้องการ
- Mount แผ่น boot gpart ถ้าไม่ boot จากแผ่นเข้าไป Seting เลือก option แล้วตั้งเวลาให้นานขึ้น หรือ ติ๊กให้เข้า Bios
- เมื่อ Boot เข้า Gpart ได้แล้วใช้ gpartition resize ได้เลย
- ถ้า Resize ไม่ได้ติด Swop ต้องลบออกก่อน Resize เสร็จแล้วค่อยสร้าง Swap ใหม่
- แล้วแก้ /etc/fstab ใส่ UUID ที่ได้ใหม่ของ Swap เข้าไป ใช้คำสั่ง blkid เพื่อดู UUID http://porpramarn.blogspot.com/2016/06/linux-mount-new-ext4-hard-disk.html

VMEXSi Add Harddisk เพิ่มและ Formate สร้าง Partition

1. ไปที่เครื่อง VM ที่ต้องการเพิ่ม HDD คลิกขวาที่เครื่องที่ต้องการ เลือก Edit Setting เครื่องที่ต้องการจะปิดหรือเปิดเครื่องอยู่ก็ทำได้
2. Add Hard Disk เพิ่มเข้ามา
3. ที่ Disk จะติ๊ก Independent คือ ไม่มีผลหลังจากทำ Snap Shot แต่ถ้าติ๊กคือมีผลด้วย
4. เข้าที่เครื่อง fdisk -l ดู จะมี HDD ขึ้นมาอีก 1 ก้อนที่ยังไม่ได้สร้าง Partition
5. ใช้คำสั่ง sudo fdisk /dev/sda
6. กด m เพื่อ ดู help
7. Creating a Partition
Use the n command to create a new partition. You can create a logical or primary partition (l for logical or p for primary). A disk can only have four primary partitions.
8. Use w to write the changes you’ve made to disk. Or Use q if you want to quit without saving changes.
9. Formatting a Partition use the command. sda5 is mean disk.
sudo mkfs.ext4 /dev/sda5
10. check disk fdisk -l
11. Use partition by follow link http://porpramarn.blogspot.com/2016/06/ubuntu-symbolic-link-shortcut.html
Step :
- Create /DATA
- Set fstab for mount DATA when boot ever.
- Set Symbolic Link
- Move Data.