Difference between revisions of "VMware ESXI notater"
m (→SSH access til ESXI boks) |
m (→Links) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
== Kommandoer i shell == | == Kommandoer i shell == | ||
* Se netværksconfig: ''esxcfg-nics -l'' og ''esxcfg-vmknic -l'' og '' esxcfg-info -n | more'' | * Se netværksconfig: ''esxcfg-nics -l'' og ''esxcfg-vmknic -l'' og '' esxcfg-info -n | more'' | ||
+ | * Add static route ''esxcfg-route -a 192.168.22.0/24 172.16.4.16'' | ||
= VMware Infrastructure Management Assistant (VIMA) = | = VMware Infrastructure Management Assistant (VIMA) = | ||
Line 39: | Line 40: | ||
=== virtual switch === | === virtual switch === | ||
<source lang=cli> | <source lang=cli> | ||
− | [root@vm ~]# <input>esxcfg-vswitch -l --server 192.168.1.101 --servicepath /sdk/webService --password | + | [root@vm ~]# <input>esxcfg-vswitch -l --server 192.168.1.101 --servicepath /sdk/webService --password SECRET_PW --username root</input> |
Switch Name Num Ports Used Ports MTU Uplinks | Switch Name Num Ports Used Ports MTU Uplinks | ||
vSwitch0 64 10 1500 vmnic0 | vSwitch0 64 10 1500 vmnic0 | ||
Line 87: | Line 88: | ||
=Slow disk performance in ESXi = | =Slow disk performance in ESXi = | ||
*See [http://www.vnotion.com/?p=38Slow disk read in ESXi] | *See [http://www.vnotion.com/?p=38Slow disk read in ESXi] | ||
+ | =FTP and RSYNC between ESXI servers= | ||
+ | *[http://www.vm-help.com/esx/esx3i/ESXi_enable_FTP.php FTP server] | ||
+ | *[http://communities.vmware.com/message/1407659 RSYNC] | ||
+ | *[http://wiki.neddix.com/Backup_of_ESXi_Virtual_Machines_using_Affa Backup of ESXi Virtual Machines using Affa] | ||
+ | =Installation med intel S5520HC = | ||
+ | Enable Inter Virtualization i BIOS under CPU ellers virker 32 bit kun | ||
+ | |||
+ | =Enable SNMP on ESXI 4.0= | ||
+ | *File: /etc/vmware/snmp.xml | ||
+ | <source lang=cli> | ||
+ | <config><snmpSettings><enable><notice>true</notice></enable><communities><notice>public</notice></communities><targets></targets></snmpSettings></config> | ||
+ | </source> | ||
+ | *Execute /sbin/services restart | ||
+ | =Dropbear= | ||
+ | Dropbear is a relatively small SSH 2 server and client. It runs on a variety of POSIX-based platforms. Dropbear is open source software, distributed under a MIT-style license. Dropbear is particularly useful for "embedded"-type Linux (or other Unix) systems, such as wireless routers. | ||
+ | |||
+ | VMware uses Busybox which are developed for embedded systems: http://www.busybox.net/ | ||
+ | |||
+ | For example the commands | ||
+ | *busybox nslookup lwn.net | ||
+ | *busybox hostname | ||
+ | *busybox uptime | ||
+ | |||
+ | ==Config== | ||
+ | /etc/inetd.conf | ||
+ | <source lang=cli> | ||
+ | # Internet server configuration database | ||
+ | # Remote shell access | ||
+ | ssh stream tcp nowait root /sbin/dropbearmulti dropbear ++min=0,swap,group=shell -i -K60 | ||
+ | ssh stream tcp6 nowait root /sbin/dropbearmulti dropbear ++min=0,swap,group=shell -i -K60 | ||
+ | # VMware authentication daemon | ||
+ | authd stream tcp nowait root /sbin/authd authd | ||
+ | authd stream tcp6 nowait root /sbin/authd authd | ||
+ | </source> | ||
+ | |||
+ | <source lang=cli> | ||
+ | <input>ps | grep drop</input> | ||
+ | 117681 117681 dropbearmulti dropbear | ||
+ | </source> | ||
+ | |||
+ | ==Link== | ||
+ | *http://matt.ucc.asn.au/dropbear/dropbear.html | ||
= Links = | = Links = | ||
Line 94: | Line 137: | ||
*[http://www.vmware.com/support/pubs/vs_pubs.html ESXi documentation] | *[http://www.vmware.com/support/pubs/vs_pubs.html ESXi documentation] | ||
*[http://www.vmware.com/pdf/vsphere4/r40_u1/vsp_40_u1_esxi_i_get_start.pdf ESXi Getting startet Guide] (PDF) | *[http://www.vmware.com/pdf/vsphere4/r40_u1/vsp_40_u1_esxi_i_get_start.pdf ESXi Getting startet Guide] (PDF) | ||
+ | *[http://www.vmware.com/pdf/vi3_san_design_deploy.pdf VMware SAN design] | ||
{{#css: | {{#css: | ||
Latest revision as of 09:12, 31 August 2012
Contents
- 1 SSH access til ESXI boks
- 2 VMware Infrastructure Management Assistant (VIMA)
- 3 VMware in VMware
- 4 VMware vCenter Converter
- 5 Opdatering
- 6 Automatisering
- 7 Slow disk performance in ESXi
- 8 FTP and RSYNC between ESXI servers
- 9 Installation med intel S5520HC
- 10 Enable SNMP on ESXI 4.0
- 11 Dropbear
- 12 Links
SSH access til ESXI boks
- BEMÆRK:SSH access til ESXI er ikke supporteret af VMWARE
- <CRTL>-<ALT>-<F1> på konsol
- skriv unsupported (Echoes ikke tilbage)
- Tast root password
- vi /etc/inetd.conf
- fjern # fra ssh linien
- exit
- <CRTL>-<ALT>-<F2> på konsol
- restart
Kommandoer i shell
- Se netværksconfig: esxcfg-nics -l og esxcfg-vmknic -l og esxcfg-info -n | more
- Add static route esxcfg-route -a 192.168.22.0/24 172.16.4.16
VMware Infrastructure Management Assistant (VIMA)
Pak ud i folder og Deploy OVF template fra VMware Client. Installerer Redhat Linux VM. Start og giv passwd til bruger vi-admin. Giv evt. root et passwd med sudo passwd root og ændre root i /etc/passwd med vipw fra nologin til /bin/bash.
VIMA kommandoer
[root@vm ~]# <input>vmware-cmd.pl -U root -P SECRET_PW -H 192.168.1.101 -l</input>
/vmfs/volumes/4b379b49-1ce09faa-230a-002186f400f1/CentOS54-1/CentOS54-1.vmx
/vmfs/volumes/4b379b49-1ce09faa-230a-002186f400f1/XP/XP.vmx
/vmfs/volumes/4b379b49-1ce09faa-230a-002186f400f1/FreeBSD/FreeBSD.vmx
/vmfs/volumes/4b379b49-1ce09faa-230a-002186f400f1/Solaris/Solaris.vmx
/vmfs/volumes/4b379b49-1ce09faa-230a-002186f400f1/Ubuntu desktop 9.04/Ubuntu desktop 9.04.vmx
/vmfs/volumes/4b379b49-1ce09faa-230a-002186f400f1/Ubuntu server 9.10 64bit/Ubuntu server 9.10 64bit.vmx
/vmfs/volumes/4b379b49-1ce09faa-230a-002186f400f1/VMware Infrastructure Management/VMware Infrastructure Management.vmx
[root@vm ~]# <input>vmware-cmd.pl -U root -P SECRET_PW -H 192.168.1.101 /vmfs/volumes/4b379b49-1ce09faa-230a-002186f400f1/FreeBSD/FreeBSD.vmx getuptime</input>
getuptime() = 20055
[root@vm ~]#
Tilføj brugere
[root@vm ~]# <input>esxcfg-user -g students -r admin -l ka -n "Karl Andersen" -s no -p KARLS_PW -e user -o add --server 192.168.1.101 --servicepath /sdk/webService --password ROOTS_PW --username root</input>
Created user ka Successfully
Assigned to the group students
Assigned the role admin
virtual switch
[root@vm ~]# <input>esxcfg-vswitch -l --server 192.168.1.101 --servicepath /sdk/webService --password SECRET_PW --username root</input>
Switch Name Num Ports Used Ports MTU Uplinks
vSwitch0 64 10 1500 vmnic0
PortGroup Name VLAN ID Used Ports Uplinks
VM Network 0 7 vmnic0
Management Network 0 1 vmnic0
VMware in VMware
Kører fint
VMware vCenter Converter
vCenter Converter kan installeres:
- lokalt
- som server
- som klient
- som agent
Konverterer fra
VMware vCenter Converter can import virtual machines created in:
- VMware Workstation
- VMware Player
- VMware Fusion
- VMware ESX/ESXi
- VMware Server
- VMware vCenter Server
- Microsoft Virtual PC
- Microsoft Virtual Server
- Microsoft Hyper-V. Microsoft Hyper-V VM imports are supported as a physical source.
Opdatering
vSphere host Update Utility
Ved installation af VMware vSphere Client sættes fluehak i installer WMware vSphere host Update Utility
Manual Patching
Automatisering
PowerCLI
- Windows PowerShell skal være installeret PowerShell
- PowerCLI fra VMware
Slow disk performance in ESXi
FTP and RSYNC between ESXI servers
Installation med intel S5520HC
Enable Inter Virtualization i BIOS under CPU ellers virker 32 bit kun
Enable SNMP on ESXI 4.0
- File: /etc/vmware/snmp.xml
<config><snmpSettings><enable><notice>true</notice></enable><communities><notice>public</notice></communities><targets></targets></snmpSettings></config>
- Execute /sbin/services restart
Dropbear
Dropbear is a relatively small SSH 2 server and client. It runs on a variety of POSIX-based platforms. Dropbear is open source software, distributed under a MIT-style license. Dropbear is particularly useful for "embedded"-type Linux (or other Unix) systems, such as wireless routers.
VMware uses Busybox which are developed for embedded systems: http://www.busybox.net/
For example the commands
- busybox nslookup lwn.net
- busybox hostname
- busybox uptime
Config
/etc/inetd.conf
# Internet server configuration database
# Remote shell access
ssh stream tcp nowait root /sbin/dropbearmulti dropbear ++min=0,swap,group=shell -i -K60
ssh stream tcp6 nowait root /sbin/dropbearmulti dropbear ++min=0,swap,group=shell -i -K60
# VMware authentication daemon
authd stream tcp nowait root /sbin/authd authd
authd stream tcp6 nowait root /sbin/authd authd
<input>ps | grep drop</input>
117681 117681 dropbearmulti dropbear