小编Ash*_*der的帖子

VBoxManage.exe:错误:从 Jenkins 运行时找不到名为“Windows-PC”的注册机器

这是我的环境的详细信息。1. 我在 Jenkins 中添加了两个节点(win7x64 和 winserver2008R2)作为从节点。2. 我已将 virtualbox 安装到系统并创建了具有相同 MachineName、VM Name 和 Snapshot 名称的 virtualbox 映像。3.现在我有带有以下命令的批处理文件:

    cd /d "C:\Program Files\Oracle\VirtualBox"
    VBoxManage snapshot "Windows-PC" restore "CleanPC"
    VBoxManage startvm "Windows-PC"

    VBoxManage --nologo guestcontrol "Windows-PC" execute --image "c:\\IntegrationTestAssemblies\\RunIntegrationTests.bat" --username "user1" --password "pwdddd" --wait-exit --wait-stdout --wait-stderr

    VBoxManage controlvm WindowsPC poweroff
Run Code Online (Sandbox Code Playgroud)

*

  1. 当我从主机/从机手动运行此命令时,它运行良好。我已经检查过,vms 已注册,VBoxManage list vms也返回 vms 列表。

  2. 但是我面临的问题是,当我尝试使用多配置项目通过 jenkins 运行它时,它无法启动 vm 并出现错误

    [exec] C:\Program Files\Oracle\VirtualBox>VBoxManage.exe 快照 "Windows-PC" 还原 "CleanPC" [exec] [exec] C:\Program Files\Oracle\VirtualBox>VBoxManage.exe startvm "Windows-PC " [exec] [exec] 2/25/2015 7:33:18 PM:错误:VBoxManage.exe:错误:找不到名为“Windows-PC”的注册机器 [exec] …

virtualbox jenkins jenkins-plugins

4
推荐指数
1
解决办法
1万
查看次数

标签 统计

jenkins ×1

jenkins-plugins ×1

virtualbox ×1