Esxi下vm虚拟机命令

Esxi下vm虚拟机命令


简单说,直接到 /bin 目录和 /sbin  目录查找

/bin 目录下,可以查看到如下命令:
~ # cd /bin
/bin # ls -al
lrwxrwxrwx    1 root     root                 17 Feb 17  2012 vmware -> /sbin/vmkvsitools
-r-xr-xr-x    1 root     root               6076 Feb 17  2012 vmware-vimdump
-r-sr-xr-x    1 root     root           13050984 Feb 17  2012 vmx
-r-xr-xr-x    1 root     root              17793 Feb 17  2012 vmx-buildtype
-r-sr-xr-x    1 root     root           15035928 Feb 17  2012 vmx-debug
-r-sr-xr-x    1 root     root           13732576 Feb 17  2012 vmx-stats
/bin #

/sbin 目录下,可以查看到如下命令: (/sbin 目录下比/bin 目录下的命令多)

/sbin 和 /bin  区别:
/sbin :s就是Super User的意思,也就是说这里存放的是一些系统管理员使用的系统管理程序。
/bin:bin是binary(二进制)的缩写。这个目录是对UNIX系统习惯的沿袭,存放着使用者最经常使用的命令。

~ # cd /sbin
/sbin # ls -al
lrwxrwxrwx    1 root     root                 44 Feb 17  2012 vm-support -> /usr/lib/vmware/hostd/cgi-bin/vm-support.cgi
-r-xr-xr-x    1 root     root              17904 Feb 17  2012 vmcp
-r-xr-xr-x    1 root     root               9816 Feb 17  2012 vmdumper
-r--r--r--    1 root     root                483 Feb 17  2012 vmfs-support
-r-xr-xr-x    1 root     root              35740 Feb 17  2012 vmkbacktrace
-r-xr-xr-x    1 root     root               9716 Feb 17  2012 vmkchdev
-r-xr-xr-x    1 root     root              17976 Feb 17  2012 vmkdevmgr
-r-xr-xr-x    1 root     root             141524 Feb 17  2012 vmkdump_extract
-r-xr-xr-x    1 root     root              58872 Feb 17  2012 vmkerrcode
-r-xr-xr-x    1 root     root              22028 Feb 17  2012 vmkeventd
-r-xr-xr-x    1 root     root            2453680 Feb 17  2012 vmkfstools
-r-xr-xr-x    1 root     root            1409304 Feb 17  2012 vmkiscsi-tool
-r-xr-xr-x    1 root     root            1134200 Feb 17  2012 vmkiscsid
-r-xr-xr-x    1 root     root              13868 Feb 17  2012 vmkload_mod
-r-xr-xr-x    1 root     root              18044 Feb 17  2012 vmkmicrocode
-r-xr-xr-x    1 root     root              13912 Feb 17  2012 vmkmkdev
-r-xr-xr-x    1 root     root              22168 Feb 17  2012 vmkperf
-r-xr-xr-x    1 root     root              34292 Feb 17  2012 vmkping
-r-xr-xr-x    1 root     root               9772 Feb 17  2012 vmkramdisk
lrwxrwxrwx    1 root     root                 17 Feb 17  2012 vmksystemswap -> /sbin/vmkvsitools
-r-xr-xr-x    1 root     root              68084 Feb 17  2012 vmkvsitools
-r-xr-xr-x    1 root     root              17928 Feb 17  2012 vmtar
-r-xr-xr-x    1 root     root               2699 Feb 17  2012 vmware-autostart.sh
-r-xr-xr-x    1 root     root            1047452 Feb 17  2012 vmware-usbarbitrator
/sbin #


命令详解:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
vmcp
/sbin # vmcp --help
Usage: vmcp [-LcPepSh] [[-b] [-s ]] -i -o
        -L -- do not follow symbolic links                           
        -D -- do not quit on broken symbolic links                   
        -c -- do not clobber existing files                          
        -P -- do not create parent directories if they do not exist  
        -e -- ignore read errors (i.e. from proc files)              
        -p -- preserve owner, group, and permissions                 
        -h -- prints this message                                    
        -b -- copy the end of the file (specify size with -s )
        -s -- copy only KB of the file                 
        -i -- input file (Required)                             
        -o -- output file (Required)                            
                                                               
        Return values:                                               
         0: No errors                                 
         1: Usage error                               
         2: Non-existent input file                   
         3: Non-critical error (doesn't cause exit)   
         4: Copy failed for a file or directory       
         5: Write failed                              
         6: Something serious failed  

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
vmdumper
/sbin # vmdumper --help
vmdumper: [options]
         -f: ignore vsi version check
         -h: print friendly help message
         -l: print information about running VMs
         -g: log specified text to the vmkernel log

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
vmfs-support

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
vmkbacktrace

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
vmkchdev

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
vmkdevmgr

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
vmkdump_extract

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
vmkerrcode

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
vmkeventd

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
vmkfstools
/sbin # vmkfstools --help

OPTIONS FOR FILE SYSTEMS:

vmkfstools -C --createfs [vmfs3|vmfs5]
               -b --blocksize #[mMkK]
               -S --setfsname fsName
           -Z --spanfs span-partition
           -G --growfs grown-partition
   deviceName

           -P --queryfs -h --humanreadable
           -T --upgradevmfs
   vmfsPath

OPTIONS FOR VIRTUAL DISKS:

vmkfstools -c --createvirtualdisk #[gGmMkK]
               -d --diskformat [zeroedthick|
                                thin|
                                eagerzeroedthick]
               -a --adaptertype [buslogic|lsilogic|ide]
           -w --writezeros
           -j --inflatedisk
           -k --eagerzero
           -K --punchzero
           -U --deletevirtualdisk
           -E --renamevirtualdisk srcDisk
           -i --clonevirtualdisk srcDisk
               -d --diskformat [zeroedthick|
                                thin|
                                eagerzeroedthick|
                                rdm:|rdmp:|
                                2gbsparse]
               -N --avoidnativeclone
           -X --extendvirtualdisk #[gGmMkK]
               [-d --diskformat eagerzeroedthick]
           -M --migratevirtualdisk
           -r --createrdm /vmfs/devices/disks/...
           -q --queryrdm
           -z --createrdmpassthru /vmfs/devices/disks/...
           -v --verbose #
           -g --geometry
           -I --snapshotdisk srcDisk
           -x --fix [check|repair]
           -e --chainConsistent
   vmfsPath

OPTIONS FOR DEVICES:

           -L --lock [reserve|release|lunreset|targetreset|busreset|readkeys|readresv] /vmfs/devices/disks/...
           -B --breaklock /vmfs/devices/disks/...

vmkfstools -H --help

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
vmkiscsi-tool

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
vmkiscsid

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
vmkload_mod

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
vmkmicrocode

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
vmkmkdev

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
vmkperf

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
vmkping

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
vmkramdisk

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
vmksystemswap -> /sbin/vmkvsitools

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
vmkvsitools

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
vmtar

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
vmware-autostart.sh

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
vmware-usbarbitrator

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29500582/viewspace-1360887/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/29500582/viewspace-1360887/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值