寻觅生命中的那一片浅草......

vmware server 1.0.6 for linux相关命令

vmware server 1.0.6 for linux

一、服务启动、关闭等,跟普通服务的启动一样
/etc/init.d/vmware {start|stop|status|restart}

如果启动正常,用status参数查看,则应该会有如下信息:
[root@vmware svn.abc.net]# /etc/init.d/vmware status
At least one instance of VMware Server is still running.

Bridged networking on /dev/vmnet0 is running
Host-only networking on /dev/vmnet8 is running
NAT networking on /dev/vmnet8 is running
Module vmmon loaded
Module vmnet loaded

查看进程 ps aux | grep vmware,信息如下:

root      4623  0.0  0.0  1636  328 ?        Ss   09:43   0:00 /usr/bin/vmnet-natd -d /var/run/vmnet-natd-8.pid -m /var/run/vmnet-natd-8.mac -c /etc/vmware/vmnet8/nat/nat.conf
root      4629  0.0  0.3 17380 14692 ?       Ss   09:43   0:02 /usr/sbin/vmware-serverd -s -d
root      4653  0.0  0.0  1640  220 ?        Ss   09:43   0:00 /usr/bin/vmnet-dhcpd -cf /etc/vmware/vmnet8/dhcpd/dhcpd.conf -lf /etc/vmware/vmnet8/dhcpd/dhcpd.leases -pf /var/run/vmnet-dhcpd-vmnet8.pid vmnet8
root      4919  5.1 28.2 1277260 1172768 ?   S<sl 09:55   7:43 /usr/lib/vmware/bin/vmware-vmx -C /vmware/vmware/Windows.2003/Windows Server 2003 Enterprise Edition.vmx -@ “”
root      5669 13.6  5.6 362908 234864 ?     S<sl 11:04  11:16 /usr/lib/vmware/bin/vmware-vmx -C /vmware/vmware/svn.abc.net/Red Hat Enterprise Linux 4.vmx -@ “”
root      5686  1.1  0.0     0    0 ?        S<   11:04   0:57 [vmware-rtc]
root      5767  0.0  0.0  4872  648 pts/1    S+   12:26   0:00 grep vmware

二、命令行启动虚拟机
vmrun命令参数:
[root@vmware svn.abc.net]# vmrun –help
Invalid switch -help
vmrun version 1.0.6 build-91891

Usage: vmrun [Authentication flags] COMMAND [PARAMETERS]

Authentication flags
-h <hostName>
-P <hostPort>
-u <userName>
-p <password>

COMMAND          PARAMETERS                  DESCRIPTION
list                                         List all running VMs
start            Path to vmx file            Start a VM
stop             Path to vmx file            Stop a VM
reset            Path to vmx file            Reset a VM
suspend          Path to vmx file            Suspend a VM
upgradevm        Path to vmx file            Upgrade VM file format, virtual hw
installtools     Path to vmx file            Install Tools in Guest OS
snapshot         Path to vmx file            Create a snapshot of a VM
deleteSnapshot   Path to vmx file            Remove a snapshot from a VM
revertToSnapshot Path to vmx file            Set VM state to a snapshot

Examples:
vmrun list
vmrun upgradevm w2k.vmx

因为新建虚拟机时,vmware新建的机器名默认是有空格的,不过不要紧,系统会自动在空格前添加转移字符:\,如下

vmrun start /vmware/wmware/Red\ Hat\ Enterprise\ Linux\ 4.vmx

尚无评论

发表评论

2024年四月
« 5月    
1234567
891011121314
15161718192021
22232425262728
2930