用VM搭建了个邮件服务器,请教如何自动启动vm
[i=s] 本帖最后由 secowu 于 2010-6-7 11:39 编辑 [/i]
因为,设定了宿主机器,自动重启计划。
想要知道的是,如何在宿主机重启后,vm能够自动重启指定的虚拟机。[code]
---------------------------
VMware Workstation
---------------------------
Usage: vmware [OPTION ...] [--] [configuration file(s)]
where OPTIONS are:
-v Show program version
-x Power on when a virtual machine or team is opened
-X Same as -x but also go into full screen mode;
not applicable to teams
-q Close virtual machine at power off
-s NAME=VALUE Set variable NAME to VALUE
-f hotfixFile Hot fix file name
-t Open a virtual machine or team in a new tab in an existing window
-n Open a new window
-m Automatically start in Quick Switch mode
-B Bare window (hide controls)
---------------------------
确定
---------------------------
[/code]
好像就是创建一个服务,让它自动启动,对吧
写个这样的批处理是不是就行了?[code]
"D:\VMware Workstation\vmware.exe" -x "D:\vmare\windows2003\windows server 2003.vmx"
[/code]
hyper-v就很简单。
[i=s] 本帖最后由 secowu 于 2010-6-3 13:38 编辑 [/i]
hyper-v需要额外安装,对吧
6月27日,微软发布了“Windows Server 2008 Hyper-V”的最终正式版。下面是Hyper-V各版本下载地址。
Windows Server 2008 Hyper-V 64位:
[url]http://download.microsoft.com/download/8/b/f/8bfabc2a-4fa5-4325-8ea7-21d474602293/Windows6.0-KB950050-x64.msu[/url]
Windows Server 2008 Hyper-V 32位:
[url]http://download.microsoft.com/download/d/0/f/d0ffe812-9cb5-4fb1-89e2-471642b75a4b/Windows6.0-KB950050-x86.msu[/url]
Hyper-V多国语言包64位:
[url]http://download.microsoft.com/download/2/7/4/2748315b-4faf-454f-8b12-263acee37c79/Windows6.0-KB951636-x64.msu[/url]
Hyper-V多国语言包32位:
[url]http://download.microsoft.com/download/8/c/c/8cc7b354-9c14-4acc-921a-3273ad667f67/Windows6.0-KB951636-x86.msu[/url]
Vista 64位远程管理补丁:
[url]http://download.microsoft.com/download/1/0/e/10ed8801-b2f9-43aa-bcd1-25a5b53699f4/Windows6.0-KB952627-x64.msu[/url]
Vista 32位远程管理补丁:
[url]http://download.microsoft.com/download/e/2/a/e2ac64a6-d545-46fc-94ee-579ba22107c1/Windows6.0-KB952627-x86.msu[/url]
知识库文章:
[url]http://support.microsoft.com/kb/950050/en-us/[/url]
我也有这样的要求,不过我有VPC
下了上面的两个32位的,安装时提示,更新不会应用到系统。
你在vm快捷方式后面 加一个 /? 里面就有参数弹出来
在hpyer-v里面应用自动启动vm绝对是个bad practice
[i=s] 本帖最后由 roxette 于 2010-6-7 09:06 编辑 [/i]
vmware server 有选项支持guest os随host os重启后自动启动
vmware workstation 版本不支持
vmware server 2.0.2测试成功。
[b]回复 [url=http://bbs.winos.cn/redirect.php?goto=findpost&pid=569146&ptid=94582]5#[/url] [i]secowu[/i] [/b]
Hyper-V也有32位的???
看5楼链接。。。。。。。。。。
---------------------------
VMware Workstation
---------------------------
Usage: vmware [OPTION ...] [--] [configuration file(s)]
where OPTIONS are:
-v Show program version
-x Power on when a virtual machine or team is opened
-X Same as -x but also go into full screen mode;
not applicable to teams
-q Close virtual machine at power off
-s NAME=VALUE Set variable NAME to VALUE
-f hotfixFile Hot fix file name
-t Open a virtual machine or team in a new tab in an existing window
-n Open a new window
-m Automatically start in Quick Switch mode
-B Bare window (hide controls)
---------------------------
确定
---------------------------
hyper - v好像评价不怎么样吧
建个快捷方式:
"C:\Program Files\VMware\VMware Workstation\vmware.exe" -t -X "your.vmx"
放到启动菜单就可以了。
转载于:https://blog.51cto.com/davidzhang2004/487085