Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bosh-Lite on VirtualBox 7.0.20 fails to install #470

Open
eaglerainbow opened this issue Aug 25, 2024 · 0 comments
Open

Bosh-Lite on VirtualBox 7.0.20 fails to install #470

eaglerainbow opened this issue Aug 25, 2024 · 0 comments

Comments

@eaglerainbow
Copy link

eaglerainbow commented Aug 25, 2024

Running on

$ vboxmanage --version
7.0.20r163906

$ bosh --version
version 7.7.0

Succeeded

as of 3f797c6, installation using the description at https://bosh.io/docs/bosh-lite/ fails with the following error message:

[driver.LocalRunner] 2024/08/24 18:19:09 DEBUG - Execute 'VBoxManage --version'
[Cmd Runner] 2024/08/24 18:19:09 DEBUG - Running command 'VBoxManage --version'
[Cmd Runner] 2024/08/24 18:19:09 DEBUG - Stdout: WARNING: Environment variable LOGNAME or USER does not correspond to effective user id.
7.0.20r163906
[Cmd Runner] 2024/08/24 18:19:09 DEBUG - Stderr:
[Cmd Runner] 2024/08/24 18:19:09 DEBUG - Successful: true (0)
panic: Internal inconsistency: Expected len(Interface '(.+)' was successfully created matches) >= 3:

goroutine 1 [running]:
bosh-virtualbox-cpi/vm/network.Networks.getVboxVersion({{0x6fd610, 0xc000012b40}, {0x702b48, 0xc000011260}})
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/tmp/bosh-release-pkg1356596893/bosh-virtualbox-cpi/vm/network
/system_info.go:61 +0x159
bosh-virtualbox-cpi/vm/network.Networks.NewSystemInfo({{0x6fd610, 0xc000012b40}, {0x702b48, 0xc000011260}})
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/tmp/bosh-release-pkg1356596893/bosh-virtualbox-cpi/vm/network/system_info.go:18 +0x4c
bosh-virtualbox-cpi/vm/network.Networks.HostOnlys({{0x6fd610, 0xc000012b40}, {0x702b48, 0xc000011260}})
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/tmp/bosh-release-pkg1356596893/bosh-virtualbox-cpi/vm/network/networks.go:149 +0x6e
bosh-virtualbox-cpi/vm.hostOnlysAdapter.List(...)
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/tmp/bosh-release-pkg1356596893/bosh-virtualbox-cpi/vm/host.go:188
bosh-virtualbox-cpi/vm.(*hostNetwork).Enable(0xc000150308)
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/tmp/bosh-release-pkg1356596893/bosh-virtualbox-cpi/vm/host.go:90 +0x42
bosh-virtualbox-cpi/vm.Host.EnableNetworks({{{0x6fd610, 0xc000012b40}, {0x702b48, 0xc000011260}}}, 0x4)
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/tmp/bosh-release-pkg1356596893/bosh-virtualbox-cpi/vm/host.go:46 +0x2a7
bosh-virtualbox-cpi/vm.Factory.Create({{{0xc0001166a0, 0x1a}, {0xc00001971c, 0x4}, 0x1}, {0x6f9580, 0x8df5d0}, {0x6fd610, 0xc000012b40}, {0x6fe578, ...}, ...}, ...)
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/tmp/bosh-release-pkg1356596893/bosh-virtualbox-cpi/vm/factory.go:86 +0x1ac
bosh-virtualbox-cpi/cpi.VMs.CreateVMV2({{0x6f92a0, 0xc000071c20}, {0x6f92e0, 0xc00017c000}, {0x6f9300, 0xc00017c100}}, {{{0xc000016840, 0x8b0440}}}, {{{0xc0000168a0, 0x27}}}, ...)
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/tmp/bosh-release-pkg1356596893/bosh-virtualbox-cpi/cpi/vms.go:40 +0xe2
github.com/cloudfoundry/bosh-cpi-go/apiv1.ActionFactory.Create.func4({{{0xc000016840, 0xc000150fa8}}}, {{{0xc0000168a0, 0x8}}}, {{0xc000016900, 0x9, 0x100000000000000}}, 0x7f3225c0a2a0, {0x8df5d0, 0x0, ...}, ...)
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/tmp/bosh-release-pkg1356596893/bosh-virtualbox-cpi/vendor/github.com/cloudfoundry/bosh-cpi-go/apiv1/action_factory.go:56 +0x11a
reflect.Value.call({0x671300, 0xc00000c750, 0xc000122240}, {0x6a3c47, 0x4}, {0xc000122240, 0x6, 0x7045d0})
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/packages/golang-1-linux/src/reflect/value.go:543 +0x814
reflect.Value.Call({0x671300, 0xc00000c750, 0xc00004c9c0}, {0xc000122240, 0x6, 0x8})
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/packages/golang-1-linux/src/reflect/value.go:339 +0xc5
github.com/cloudfoundry/bosh-cpi-go/rpc.JSONCaller.Call({}, {0x671300, 0xc00000c750}, {0xc00004c9c0, 0x6, 0x6})
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/tmp/bosh-release-pkg1356596893/bosh-virtualbox-cpi/vendor/github.com/cloudfoundry/bosh-cpi-go/rpc/json_caller.go:44 +0x229
github.com/cloudfoundry/bosh-cpi-go/rpc.JSONDispatcher.Dispatch({{0x6f9480, 0xc000040bd0}, {0x6f9500, 0x8df5d0}, {0x6a7a18, 0x12}, {0x702b48, 0xc000011260}}, {0xc000170000, 0x196b, ...})
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/tmp/bosh-release-pkg1356596893/bosh-virtualbox-cpi/vendor/github.com/cloudfoundry/bosh-cpi-go/rpc/json_dispatcher.go:74 +0x2dc
github.com/cloudfoundry/bosh-cpi-go/rpc.CLI.ServeOnce({{0x6f8fc0, 0xc00000e010}, {0x6f8fe0, 0xc00000e018}, {0x6f9520, 0xc00006c6c0}, {0x6a3ad1, 0x3}, {0x702b48, 0xc000011260}})
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/tmp/bosh-release-pkg1356596893/bosh-virtualbox-cpi/vendor/github.com/cloudfoundry/bosh-cpi-go/rpc/cli.go:38 +0x16d
main.main()
        /root/.bosh/installations/6337eb13-b11e-4155-552c-f1607bfe5bcf/tmp/bosh-release-pkg1356596893/bosh-virtualbox-cpi/main/main.go:43 +0x6f8
':
            exit status 2
Exit code 1

I assume that the warning message

WARNING: Environment variable LOGNAME or USER does not correspond to effective user id.

throws the parser off.

Note that VirtualBox 6.1 has not received any patch version since January 2024 and therefore needs to be assumed "end of life" (see also https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/2073267/comments/14).

Full DEBUG log files attached.
(I am aware that the log contains sensitive cryptographic data such as RSA private keys. They are used in a private environment and all keys have been deleted/rotated such that their publication will be of no use for any attacker).

@eaglerainbow eaglerainbow changed the title Bosh-Lite with VirtualBox 7.0.20 fails to install Bosh-Lite on VirtualBox 7.0.20 fails to install Aug 25, 2024
@beyhan beyhan moved this from Inbox to Waiting for Changes | Open for Contribution in Foundational Infrastructure Working Group Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Waiting for Changes | Open for Contribution
Development

No branches or pull requests

1 participant