2019年9月25日 星期三
How to run vmware workstation VN guest by CLI command
How to run vmware workstation VN guest by CLI command
C:\Program Files (x86)\VMware\VMware Workstation>vmrun -T ws start "D:\XXXX.vmx"
2016年2月3日 星期三
Could Not Find Trusted Signer Error While Installing VIBs in VMware vSphere ESXi 5.x
Could Not Find Trusted Signer Error While Installing VIBs in VMware vSphere ESXi 5.x
ould not find a trusted signer
Add the --no-sig-check switch to your command when installing the VIB.
Example : # esxcli software vib install -d /vmfs/volumes/datastore1/offline-bundle.zip --no-sig-check
ould not find a trusted signer
Add the --no-sig-check switch to your command when installing the VIB.
Example : # esxcli software vib install -d /vmfs/volumes/datastore1/offline-bundle.zip --no-sig-check
2016年1月13日 星期三
How to mount usb device to ESXi
How to mount usb device to ESXi
1.) Stop the usbarbitrator service by running this command
/etc/init.d/usbarbitrator stop
2.) Disconnect and reconnect the usb device. The device might be automatically mounted under
/vmfs/volumes/NO NAME/ (just navigate here to export or import your files)
**) If not automatically mounted, use the following commands to find out where the device is connected to (e.g. /dev/sda1)
fdisk -l
tail /var/log/messages
tail /var/log/messages
To mount the device, first create a folder
mkdir /ExtUSB
mount the device with
mount -t ext3 /dev/sda1 /ExtUSB/
3.) After using the device, run the following command to start the usbarbitrator service
/etc/init.d/usbarbitrator start
2015年8月6日 星期四
How to check/install RAID(LSI 2308) driver under ESXi
How to check RAID(LSI 2308) driver version under ESXi
Check driver version
#esxcli storage core adapter list
#esxcli software vib list | grep mpt2sas
Upload driver package to ESXi (By vsphere or USB key)
#esxcli software vib install –viburl file:/tmp/DRIVERVERSION.vib
Check driver version
#esxcli storage core adapter list
#esxcli software vib list | grep mpt2sas
Upload driver package to ESXi (By vsphere or USB key)
#esxcli software vib install –viburl file:/tmp/DRIVERVERSION.vib
2015年3月13日 星期五
error 'Call "HostStorageSystem.ComputeDiskPartitionInfo" for object "storageSystem" on ESXi
error 'Call "HostStorageSystem.ComputeDiskPartitionInfo" for object "storageSystem" on ESXi
The disk I was using had existing partitions (a Linux swap partition and a Linux MD5 RAID partition).
Please manually delete the partitions logged in as root to ESXi shell.
Useful commands:
# esxcfg-scsidevs -l
this lists the disk devices, the device file will be /dev/disks/<NAME>
output looks like:
t10.ATA_____ST3320620AS_________________________________________6QF1PZXB
Device Type: Direct-Access
Size: 305245 MB
Display Name: Local ATA Disk (t10.ATA_ST3320620AS_6QF1PZXB)
Multipath Plugin: NMP
Console Device: /vmfs/devices/disks/t10.ATA_____ST3320620AS_________________________________________6QF1PZXB
Devfs Path: /vmfs/devices/disks/t10.ATA_____ST3320620AS_________________________________________6QF1PZXB
Vendor: ATA Model: ST3320620AS Revis: 3.AA
SCSI Level: 5 Is Pseudo: false Status: on
Is RDM Capable: false Is Removable: false
Is Local: true Is SSD: false
Other Names:
vml.010000000020202020202020202020202036514631505a5842535433333230
VAAI Status: unknown
# partedUtil get /dev/disks/t10.ATA_...
this shows the partitions on the device
output looks like:
38913 255 63 625142448
1 63 514079 130 128
2 514080 625137344 253 0
this disk has 2 partitions, numbers 1 and 2
# partedUtil delete /dev/disks/t10.ATA_... 2
deletes partition 2
# partedUtil delete /dev/disks/t10.ATA_... 1
deletes partition 1
If partedUtil doesn't work , pleate try "fdisk /dev/disks/t10.ATA......." to delete partition.
The disk I was using had existing partitions (a Linux swap partition and a Linux MD5 RAID partition).
Please manually delete the partitions logged in as root to ESXi shell.
Useful commands:
# esxcfg-scsidevs -l
this lists the disk devices, the device file will be /dev/disks/<NAME>
output looks like:
t10.ATA_____ST3320620AS_________________________________________6QF1PZXB
Device Type: Direct-Access
Size: 305245 MB
Display Name: Local ATA Disk (t10.ATA_ST3320620AS_6QF1PZXB)
Multipath Plugin: NMP
Console Device: /vmfs/devices/disks/t10.ATA_____ST3320620AS_________________________________________6QF1PZXB
Devfs Path: /vmfs/devices/disks/t10.ATA_____ST3320620AS_________________________________________6QF1PZXB
Vendor: ATA Model: ST3320620AS Revis: 3.AA
SCSI Level: 5 Is Pseudo: false Status: on
Is RDM Capable: false Is Removable: false
Is Local: true Is SSD: false
Other Names:
vml.010000000020202020202020202020202036514631505a5842535433333230
VAAI Status: unknown
# partedUtil get /dev/disks/t10.ATA_...
this shows the partitions on the device
output looks like:
38913 255 63 625142448
1 63 514079 130 128
2 514080 625137344 253 0
this disk has 2 partitions, numbers 1 and 2
# partedUtil delete /dev/disks/t10.ATA_... 2
deletes partition 2
# partedUtil delete /dev/disks/t10.ATA_... 1
deletes partition 1
If partedUtil doesn't work , pleate try "fdisk /dev/disks/t10.ATA......." to delete partition.
2015年2月12日 星期四
Migrating a virtual machine in vSphere 5.x fails with the error: The operation is not allowed in the current connection state of the host
Migrating a virtual machine in vSphere 5.x fails with the error: The operation is not allowed in the current connection state of the host
To resolve this issue, perform these steps, verifying if the issue is resolved after each step:
Symptoms
- Cannot migrate a virtual machine in a vSphere 5.x environment.
- Migrating a virtual machine fails with the error:
Relocate virtual machine
The operation is not allowed in the current connection state of the host
Time: xx/xx/xxxx xx:xx:xx
Target: xxxxx
vCenter Server: xxxxx - The Summary tab of the powered on virtual machine reports this information:
- CPU Usage - 0 MHz
- Memory Usage - 0.00 MB
Resolution
- Restart the VMware VirtualCenter Server Service.
- Restart the Management agents on the ESX host running the virtual machine. For more information, see Restarting the Management agents on an ESXi or ESX host (1003490).
- Disconnect and reconnect the ESX host that is running the virtual machine to force vCenter Server to retrieve an updated set of data relating to the objects registered to the host.
VM with Windows 2008/2012 fail to power on when setup Intel X520/X540 SRIOV NIC
VM with Windows 2008/2012 fail to power on when setup Intel X520/X540 SRIOV NIC
Details
vmware.log file reports an out of MSI-X vectors message.This issue also occurs when you install the Windows PF driver for these adapters. You see an error similar to
PCIPassthru: 07:00.1 tried to modify MSI-X vectors number 32-32, but maximum supported vector number is 31. During load time, the X520-2 device is marked as unsafe. The driver does not load what appears to be an unsafe device. The virtual machine starts and shows the error message.Solution
pciPassthru0.maxMSIXvectors = 31parameter to the virtual machine's configuration file.From the vSphere Web Client
- Right-click the virtual machine and select Edit Settings.
- Click the Options tab and click General.
- Click Configuration.
- Click Add Row.
- Add the parameter to the new row:
- In the Name column, add pciPassthru0.maxMSIXvectors.
- In the Value column, add 31.
- Click OK.
Note: Do not reinstall the driver before modifying the
.vmx file.- Open the
.vmxfile for the virtual machine in a text editor. - Add this entry to the file:
pciPassthru0.maxMSIXvectors = 31 - Reinstall the driver in the virtual machine.
Note: If multiple devices are present, ensure to add entries for each PCI device.
pciPassthru0.maxMSIXvectors = xx, pciPassthru1.maxMSIXvectors = xx2015年1月8日 星期四
How to enable TXT function on ESXi
How to enable TXT function on ESXi
1. Plug in TPM module. Ensure that there were no issues or interference with the installation.
2. Boot into BIOS setup
a. ensure that VT and VT-d are enabled;
b. Under the "Security" menu, set an administrative password and reboot the system;
3. Boot into BIOS Setup:
a. Under the "Security" menu, under "TPM Administrative Control" select "Turn On" and then reboot the system
4. Boot into BIOS Setup:
a. a. Go to the Security Menu and the TPM State’ should show as [Enabled/Activated]
b. Under Advanced --> Processor Configuration, set "Intel (R) Txt" to "Enable" and reboot the system.
5. Boot into EFI Shell
6. Execute ServerTXTINFO –C:a –a –V:2 > LogFile.txt
7. Edit LogFile.txt:
6a. Search for “ERROR”.
6b. At the end of the file there should be the following statement:
All checks are passed. Platform appears to be correctly configured for establishing of TXT environment.”
8. Boot the server to ESXi
9. Check if "TrustedBoot" is enabled:
8a Login to the ESXi Shell (ALT-F1) and
8b. Enter the following command: bootOption –o
The "TrustedBoot" value should equal "TRUE"
1. Plug in TPM module. Ensure that there were no issues or interference with the installation.
2. Boot into BIOS setup
a. ensure that VT and VT-d are enabled;
b. Under the "Security" menu, set an administrative password and reboot the system;
3. Boot into BIOS Setup:
a. Under the "Security" menu, under "TPM Administrative Control" select "Turn On" and then reboot the system
4. Boot into BIOS Setup:
a. a. Go to the Security Menu and the TPM State’ should show as [Enabled/Activated]
b. Under Advanced --> Processor Configuration, set "Intel (R) Txt" to "Enable" and reboot the system.
5. Boot into EFI Shell
6. Execute ServerTXTINFO –C:a –a –V:2 > LogFile.txt
7. Edit LogFile.txt:
6a. Search for “ERROR”.
6b. At the end of the file there should be the following statement:
All checks are passed. Platform appears to be correctly configured for establishing of TXT environment.”
8. Boot the server to ESXi
9. Check if "TrustedBoot" is enabled:
8a Login to the ESXi Shell (ALT-F1) and
8b. Enter the following command: bootOption –o
The "TrustedBoot" value should equal "TRUE"
2014年5月4日 星期日
雲端網路實務 2013/5/5
01-Apache 2 安裝與啟動
更新套件情單
Apache 2 安裝
$ sudo apt-get install apache2
[問題] 由上述安裝資訊, Apache 2 已啟動那些 Module ?
檢視 Apache 2 的內部設定值
$ /usr/sbin/apache2 -V
[註] 由上面資訊中, 可以得知 Apache 2 的主要設定檔是 /etc/apache2/apache2.conf
檢視 /etc/apache2/sites-enabled/000-default 設定檔 (網站根目錄, cgi-bin 目錄)
這個設定檔, 定義 Apache 2 網站根目錄所在的目錄 (DocumentRoot /var/www), 還有定義 /cgi-bin 目錄, 執行 CGI 程式
網站根目錄放置在 /var/www 這個目錄嗎? 為什麼呢?因為 DocumentRoot 這個設定值的關係啦!此外,由於 Apache 允許 Internet 對我們的資料進行瀏覽, 所以你當然必須要針對可被瀏覽的目錄進行權限的相關設定,那就是 <Directory> 這個設定值的重要特色!先讓我們來看看預設的主網頁設定吧!
更新套件情單
$ sudo apt-get update
Apache 2 安裝
$ sudo apt-get install apache2
[sudo] password for student:
正在讀取套件清單... 完成
正在重建相依關係
正在讀取狀態資料... 完成
以下套件是被自動安裝進來的,且已不再會被用到了:
linux-headers-2.6.32-21 linux-headers-2.6.32-22
linux-headers-2.6.32-22-generic-pae
使用 'apt-get autoremove' 來將其移除。
下列的額外套件將被安裝:
apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1
libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
建議套件:
apache2-doc apache2-suexec apache2-suexec-custom
下列【新】套件將會被安裝:
apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common
libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
升級 0 個,新安裝 9 個,移除 0 個,有 1 個未被升級。
需要下載 3,328kB 的套件檔。
此操作完成之後,會多佔用 10.1MB 的磁碟空間。
是否繼續進行 [Y/n]?y
下載:1 http://tw.archive.ubuntu.com/ubuntu/ lucid/main libapr1 1.3.8-1build1 [116kB]
下載:2 http://tw.archive.ubuntu.com/ubuntu/ lucid/main libaprutil1 1.3.9+dfsg-3build1 [85.4kB]
下載:3 http://tw.archive.ubuntu.com/ubuntu/ lucid/main libaprutil1-dbd-sqlite3 1.3.9+dfsg-3build1 [27.1kB]
下載:4 http://tw.archive.ubuntu.com/ubuntu/ lucid/main libaprutil1-ldap 1.3.9+dfsg-3build1 [25.1kB]
下載:5 http://tw.archive.ubuntu.com/ubuntu/ lucid/main apache2.2-bin 2.2.14-5ubuntu8 [2,622kB]
下載:6 http://tw.archive.ubuntu.com/ubuntu/ lucid/main apache2-utils 2.2.14-5ubuntu8 [159kB]
下載:7 http://tw.archive.ubuntu.com/ubuntu/ lucid/main apache2.2-common 2.2.14-5ubuntu8 [290kB]
下載:8 http://tw.archive.ubuntu.com/ubuntu/ lucid/main apache2-mpm-worker 2.2.14-5ubuntu8 [2,364B]
下載:9 http://tw.archive.ubuntu.com/ubuntu/ lucid/main apache2 2.2.14-5ubuntu8 [1,482B]
取得 3,328kB 用了 2s (1,345kB/s)
選取了原先未被選取的套件 libapr1。
(正在讀取資料庫 ... 系統目前共安裝了 159384 個檔案和目錄。)
正在解開 libapr1 (從 .../libapr1_1.3.8-1build1_i386.deb)...
選取了原先未被選取的套件 libaprutil1。
正在解開 libaprutil1 (從 .../libaprutil1_1.3.9+dfsg-3build1_i386.deb)...
選取了原先未被選取的套件 libaprutil1-dbd-sqlite3。
正在解開 libaprutil1-dbd-sqlite3 (從 .../libaprutil1-dbd-sqlite3_1.3.9+dfsg-3build1_i386.deb)...
選取了原先未被選取的套件 libaprutil1-ldap。
正在解開 libaprutil1-ldap (從 .../libaprutil1-ldap_1.3.9+dfsg-3build1_i386.deb)...
選取了原先未被選取的套件 apache2.2-bin。
正在解開 apache2.2-bin (從 .../apache2.2-bin_2.2.14-5ubuntu8_i386.deb)...
選取了原先未被選取的套件 apache2-utils。
正在解開 apache2-utils (從 .../apache2-utils_2.2.14-5ubuntu8_i386.deb)...
選取了原先未被選取的套件 apache2.2-common。
正在解開 apache2.2-common (從 .../apache2.2-common_2.2.14-5ubuntu8_i386.deb)...
選取了原先未被選取的套件 apache2-mpm-worker。
正在解開 apache2-mpm-worker (從 .../apache2-mpm-worker_2.2.14-5ubuntu8_i386.deb)...
選取了原先未被選取的套件 apache2。
正在解開 apache2 (從 .../apache2_2.2.14-5ubuntu8_i386.deb)...
正在進行 man-db 的觸發程式 ...
正在進行 ufw 的觸發程式 ...
正在進行 ureadahead 的觸發程式 ...
ureadahead will be reprofiled on next reboot
正在設定 libapr1 (1.3.8-1build1) ...
正在設定 libaprutil1 (1.3.9+dfsg-3build1) ...
正在設定 libaprutil1-dbd-sqlite3 (1.3.9+dfsg-3build1) ...
正在設定 libaprutil1-ldap (1.3.9+dfsg-3build1) ...
正在設定 apache2.2-bin (2.2.14-5ubuntu8) ...
正在設定 apache2-utils (2.2.14-5ubuntu8) ...
正在設定 apache2.2-common (2.2.14-5ubuntu8) ...
Enabling site default.
Enabling module alias.
Enabling module autoindex.
Enabling module dir.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module status.
Enabling module auth_basic.
Enabling module deflate.
Enabling module authz_default.
Enabling module authz_user.
Enabling module authz_groupfile.
Enabling module authn_file.
Enabling module authz_host.
Enabling module reqtimeout.
正在設定 apache2-mpm-worker (2.2.14-5ubuntu8) ...
* Starting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[ OK ]
正在設定 apache2 (2.2.14-5ubuntu8) ...
正在進行 libc-bin 的觸發程式 ...
ldconfig deferred processing now taking place
[問題] 由上述安裝資訊, Apache 2 已啟動那些 Module ?
檢視 Apache 2 的內部設定值
$ /usr/sbin/apache2 -V
Server version: Apache/2.2.14 (Ubuntu)
Server built: Apr 13 2010 19:29:28
Server's Module Magic Number: 20051115:23
Server loaded: APR 1.3.8, APR-Util 1.3.9
Compiled using: APR 1.3.8, APR-Util 1.3.9
Architecture: 32-bit
Server MPM: Worker
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/worker"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT=""
-D SUEXEC_BIN="/usr/lib/apache2/suexec"
-D DEFAULT_PIDLOG="/var/run/apache2.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
-D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"
[註] 由上面資訊中, 可以得知 Apache 2 的主要設定檔是 /etc/apache2/apache2.conf
檢視 /etc/apache2/sites-enabled/000-default 設定檔 (網站根目錄, cgi-bin 目錄)
這個設定檔, 定義 Apache 2 網站根目錄所在的目錄 (DocumentRoot /var/www), 還有定義 /cgi-bin 目錄, 執行 CGI 程式
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
網站根目錄放置在 /var/www 這個目錄嗎? 為什麼呢?因為 DocumentRoot 這個設定值的關係啦!此外,由於 Apache 允許 Internet 對我們的資料進行瀏覽, 所以你當然必須要針對可被瀏覽的目錄進行權限的相關設定,那就是 <Directory> 這個設定值的重要特色!先讓我們來看看預設的主網頁設定吧!
DocumentRoot "/var/www" 放置首頁的目錄!這個設定值重要到不行,因為他規範了 WWW 伺服器主網頁所放置的『目錄』所在。這個設定值是可以被隨意更動的,不過更動之後你必須要針對該目錄進行權限設定,也就是底下要講到的 Directory 這個設定值來規範目錄的權限才行喔!
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
以最嚴格設定值, 設定系統根目錄 (/)2014年1月16日 星期四
ESXi SRIOV
ESXi SRIOV fuction
1.Upload driver(Including all folder and file under "ixgbe-3.18.7" to datastore)
2.Enter VM to maintain mode (Right click vm host under vsphere=>Enter manintain mode)
3.Execute CLI command: (Enable ESXi shell)
#esxcli software vib install -v /vmfs/volume/datastore/xxx.vib (必須用絕對路徑)
4.#esxcli system module parameters set -m ixgbe -p "max_vfs=8,8"
If you have more NIC card, execute
#esxcli system module parameters set -m ixgbe -p "max_vfs=8,8,8,8"
5.Reboot
(By my experince ,SRIOV total number cannot over 52 clients)
1.Upload driver(Including all folder and file under "ixgbe-3.18.7" to datastore)
2.Enter VM to maintain mode (Right click vm host under vsphere=>Enter manintain mode)
3.Execute CLI command: (Enable ESXi shell)
#esxcli software vib install -v /vmfs/volume/datastore/xxx.vib (必須用絕對路徑)
4.#esxcli system module parameters set -m ixgbe -p "max_vfs=8,8"
If you have more NIC card, execute
#esxcli system module parameters set -m ixgbe -p "max_vfs=8,8,8,8"
5.Reboot
(By my experince ,SRIOV total number cannot over 52 clients)
2013年4月27日 星期六
雲端網路實務 2013/4/28
下載android模擬器(選擇 eeepc 版本)
http://www.android-x86.org/download

建立新的虛擬機器















設定鍵盤格式
請選擇美式鍵盤, 這樣在終端機模式下, 才能正常操作
取消休眠功能
設定 TCP/IP 網路
1. 選擇 Terminal Emulator

2. 登入為 root 帳號


3. 檢視 TCP/IP 設定

4. 手動設定 DNS IP
手動設定 TCP/IP
設定畫面如下 :

[註] alt+f1 直接進入終端機, alt+f7 離開終端機, 然後再按 ESC 鍵
http://www.android-x86.org/download
建立新的虛擬機器
設定鍵盤格式
請選擇美式鍵盤, 這樣在終端機模式下, 才能正常操作
取消休眠功能
設定 TCP/IP 網路
1. 選擇 Terminal Emulator
2. 登入為 root 帳號
3. 檢視 TCP/IP 設定
4. 手動設定 DNS IP
手動設定 TCP/IP
$ su - $ cd etc $ vi init.sh : ifconfig eth0 192.168.122.77 netmask 255.255.255.0 route add default gw 192.168.122.1 dev eth0 route add -net 192.168.99.0 netmask 255.255.255.0 gw 192.168.122.99 dev eth0 setprop net.dns1 168.95.1.1
設定畫面如下 :

訂閱:
文章 (Atom)
TEMP-2026
123
-
Use AMISCE tool to update BIOS configuration under linux Test fucntion without change dump file 1.Copy SCELNX_64 to Linux_Flash folder 2...
-
123
