设置开机自启动VirtualBox虚拟机系统


如果常用VirtualBox虚拟机系统的话,设置个随开机启动也是很方便的。不需要打开VirtualBox窗口,直接就是系统启动了。

又继续上网搜索学习了。(设置开机自启动VirtualBox虚拟机系统)总结如下:

Host机是XP下:

@ECHO OFF 
cd C:\Program Files\Oracle\VirtualBox\
start VirtualBox.exe -startvm centos
EXIT

找到VirtualBox的安装路径。 用VirtualBox.exe -startvm centos启动就行了。 centos是虚拟机设置的名称。新建一个记事本,然后把上面的代码粘贴在记事本。然后把该记事本重命名为Virtualbox.bat

然后把Virtualbox.bat拉到 “开始/所有程序/启动” 下。这样就能开机启动了。 VirtualBox.exe前面的start可以去掉,加上start是因为Dos窗口运行后可以自动关闭。正是我需要的。

这个方法我自己验证成功。

下面是Linux下:

假设VirtualBox安装在/usr/bin/下。编辑开机启动文件/etc/rc.local

vi /etc/rc.local
加入下面的代码,保存退出
/usr/bin/VBoxManage startvm WinXP --type vrdp &
还有一个--type的参数。默认是--type gui即以图形界面启动虚拟机。

VBoxManage [-q|–nologo] startvm <uuid>|<name> [–type gui|sdl|headless]

linux下的方法就没试过了。。


《“设置开机自启动VirtualBox虚拟机系统”》 有 98 条评论

  1. 兄弟好,我遇到了点问题,wordpress的URL链接带“/”有点疑问,最近,百度收录有两个重复页面,一个是链接不带/,一个是页面带/。我的设置应该是和您的一样的,所有页面都是带最后的/的,这该如何解决呢?我不想出现重复的收录,只收录带/的页面就行了。

  2. 博主你好,问下我的站
    太原SEOhttp://www.ytyfw.com 被谷歌K了该如何恢复?而且我都不知道谷歌为什么K我…

  3. I provide Chinese translation service…

    [Hello there, I discovered your site via Google at the same time as searching for a related subject, your web site got here up, it appears great. I have bookmarked it in my google bookmarks.I’d like to add more information to your post so as to have v…