微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

带有 WSL2 和 Virtualbox 的 BOSH Lite

如何解决带有 WSL2 和 Virtualbox 的 BOSH Lite

我正在尝试通过 WSL2 在 Windows 10 上运行 Bosh Lite,但是在运行 bucc up 命令后遇到错误。我已经使用了 this article 和其他一些地方的说明,但我也会把我用过的步骤放在这里

Windows 10 ver 1909 Build 18363.1256
Ubuntu 20.04
VirtualBox 6.0.10 (6.1 is apparently bugged and fails to mount the disk)
Hyper-V disabled
Virtual Machine Platform enabled
Windows Hypervisor Platform enabled
bcdedit /set hypervisorlaunchtype auto (Without this WSL doesn't work and Docker complains)

首先,我在 WSL2 中预期的 VBoxManage 二进制位置与相同的 Windows 二进制文件之间创建了一个符号链接

sudo ln -s “/mnt/c/Program Files/Oracle/VirtualBox/VBoxManage.exe” /usr/local/bin/VBoxManage

然后我创建了一些额外的链接来满足工作目录的期望:

mkdir -p /mnt/c$HOME/.bosh_virtualBox_cpi
ln -s /mnt/c$HOME/.bosh_virtualBox_cpi $HOME/.bosh_virtualBox_cpi

已安装 BOSH cli:https://bosh.io/docs/cli-v2-install/

克隆此存储库:https://github.com/starkandwayne/bucc.git

为了防止上传干细胞时出现哈希错误,我必须运行 this command

VBoxManage setexTradata global "VBoxInternal/NEM/UseRing0Runloop" 0

bucc up

有时这在大多数情况下会顺利进行,有时我必须执行 bucc down 和/或 bucc clean 并重新运行,但最终它会提示我使用 UAC 并在 VirtualBox 中创建两个 VM,一个名为sc-xxxxxxxxxxxx 和另一个名为 vm-xxxxxxx。 sc-* vm 保持关闭状态,vm-* VM 将显示为正在运行。但在这一切之后不久我会遇到这个错误

Compiling package 'credhub-cli/492c6726d284c471c394a74c272e0860c6408fa0'... Skipped [Package already compiled] (00:00:00)
Compiling package 'director/f32385256198535b797059dd4990fcb3b65c0c07337990163c24275a7a29b7e1'... Skipped [Package already compiled] (00:00:02)
  Updating instance 'bosh/0'... Failed (00:00:20)
Failed deploying (00:03:56)

Cleaning up rendered CPI jobs... Finished (00:00:00)

deploying:
  Applying the agent state:
    Sending apply spec to agent:
      Sending 'get_task' to the agent:
        Agent responded with error: Action Failed get_task: Task 23ea8d1a-f1e2-4903-655a-4cabed88847f result: Applying: Applying job bpm: Applying package uaa for job bpm: Fetching package blob: Checking blob '8012181c-6e15-406b-5bec-4e0b6497522d': Expected stream to have digest '89ae2e6cce479062482bd0a9484bc4e03e8a9efe' but was 'eb38fcd5951007f5e323ed215a4b604eedcd8200'

Exit code 1

失败的包名各不相同。我无法超越这一点,任何帮助将不胜感激。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。