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

Difficulties with deploying bosh using virtualbox #457

Closed
yangdeyue-root opened this issue Aug 24, 2023 · 3 comments
Closed

Difficulties with deploying bosh using virtualbox #457

yangdeyue-root opened this issue Aug 24, 2023 · 3 comments

Comments

@yangdeyue-root
Copy link

Hello everyone, I have encountered some problems when deploying bosh, my server system is centos 7.9, using virtualbox to install bosh, virtualbox version is 6.1, there is no problem during the installation process, but the output cannot start at the end, I hope you can help me. Thank you very much

System version: centos 7.9
virtualbox version: 6.1
ruby version: 3.1.4
bosh-cli version: 7.3.1
The bosh version is the latest one pulled from git

This is not the first time I have encountered this problem. The original solution was to use vcenter to deploy bosh, but I also encountered this problem. I could not find the cause of the problem, so I used virtualbox to install bosh, but this problem still exists

The source code compilation error is as follows:

[root@bogon bosh]# ./bosh-deployment/virtualbox/create-env.sh

==
===> Creating BOSH Director
==/

Deployment manifest: '/home/bosh/bosh-deployment/bosh.yml'
Deployment state: '/home/bosh/state.json'

Started validating
Downloading release 'bosh'... Finished (00:00:17)
Validating release 'bosh'... Finished (00:00:01)
Downloading release 'bpm'... Finished (00:01:41)
Validating release 'bpm'... Finished (00:00:01)
Downloading release 'bosh-virtualbox-cpi'... Finished (00:00:14)
Validating release 'bosh-virtualbox-cpi'... Finished (00:00:05)
Downloading release 'garden-runc'... Finished (00:01:02)
Validating release 'garden-runc'... Finished (00:00:04)
Downloading release 'bosh-warden-cpi'... Finished (00:00:14)
Validating release 'bosh-warden-cpi'... Finished (00:00:01)
Downloading release 'os-conf'... Finished (00:00:02)
Validating release 'os-conf'... Finished (00:00:00)
Downloading release 'uaa'... Finished (00:00:44)
Validating release 'uaa'... Finished (00:00:03)
Downloading release 'credhub'... Finished (00:00:11)
Validating release 'credhub'... Finished (00:00:01)
Validating cpi release... Finished (00:00:00)
Validating deployment manifest... Finished (00:00:00)
Downloading stemcell... Finished (00:01:30)
Validating stemcell... Finished (00:00:16)
Finished validating (00:06:52)

Started installing CPI
Compiling package 'golang-1-linux/79f531850e62e3801f1dfa4acd11c421aebe653cd4316f6e49061818071bb617'... Finished (00:00:27)
Compiling package 'golang-1-darwin/42353203720fdc244cc16f881167bb0363f38ff6f991247c4356e38bc6b5fb81'... Finished (00:00:46)
Compiling package 'virtualbox_cpi/039ce9658db7ec347a49c49f1819a501ff93b2a6cf8d4ead99c4618158138946'... Finished (00:01:18)
Installing packages... Finished (00:00:12)
Rendering job templates... Finished (00:00:00)
Installing job 'virtualbox_cpi'... Finished (00:00:00)
Finished installing CPI (00:02:45)

Uploading stemcell 'bosh-vsphere-esxi-ubuntu-jammy-go_agent/1.199'... Finished (00:03:16)

Started deploying
Creating VM for instance 'bosh/0' from stemcell 'sc-f5b826f6-a6dc-4fd8-7dab-b42629c6de49'... Finished (00:00:03)
Waiting for the agent on VM 'vm-3513d3a4-4c54-417a-44cb-ada68580e44e' to be ready... Finished (00:01:33)
Creating disk... Finished (00:00:00)
Attaching disk 'disk-adb9917e-1485-45c7-7079-72d6cba63d2f' to VM 'vm-3513d3a4-4c54-417a-44cb-ada68580e44e'... Finished (00:00:55)
Rendering job templates... Finished (00:00:31)
Compiling package 'autoconf/72f6018683a42677273491968274851f48195dd88c45dd854da29ebc7bcf3c80'... Skipped [Package already compiled] (00:00:00)
Compiling package 'pkg-config/6891143d489d5d281cc36f4717b579dab24f872d107134ae07b34d68da27306f'... Skipped [Package already compiled] (00:00:00)
Compiling package 'libtool/eb05d480577a53500bac5d5a54fed6a29cbcc2b6aed65f8a6cd5351cd1e1900a'... Skipped [Package already compiled] (00:00:00)
Compiling package 'automake/369b4f0a8bfda6a94c041c449dde63f663ecc887ef39675b6d96c14b235c55f1'... Skipped [Package already compiled] (00:00:00)
Compiling package 'golang-1-linux/29f2024e7d815be0694944c3c3c9512914a36a31d5fa1b2cbd2452c8d331ce90'... Skipped [Package already compiled] (00:00:01)
Compiling package 'gperf/8172f0479d87b3a097df0a2345b6c567d6144c30693c1f84cfd4ce221b51e13e'... Skipped [Package already compiled] (00:00:00)
Compiling package 'zlib/2c4ee9fde36d42651fdd4b22edcb81e71dfaf6f4e646bca32764cbe24fb8617d'... Skipped [Package already compiled] (00:00:00)
Compiling package 'util-linux/6310f68e8294c980de62481bced2fc915f449e3a2cc2d13a7a2a49c4a612d825'... Skipped [Package already compiled] (00:00:00)
Compiling package 'lzo/7e1e471f81c73a7aeb4f0b56d02d6b0a554d05baf6e02107b435b12d9f88f450'... Skipped [Package already compiled] (00:00:00)
Compiling package 'golang-1.20-linux/29f2024e7d815be0694944c3c3c9512914a36a31d5fa1b2cbd2452c8d331ce90'... Skipped [Package already compiled] (00:00:01)
Compiling package 'director-ruby-3.2/84ee2f9d0485530a75822fa03e7fd0c73544aa4c2f6fe24aaebebe1757195efe'... Skipped [Package already compiled] (00:00:00)
Compiling package 'garden-runc-golang-1-linux/b09468ac73cd3350333a35eb09c980c6a06c5465be0e1ba430da62757dc10a04'... Skipped [Package already compiled] (00:00:01)
Compiling package 'tini/3d7b02f3eeb480b9581bec4a0096dab9ebdfa4bc'... Skipped [Package already compiled] (00:00:00)
Compiling package 'bpm-runc/9f66395d85ace4b4d4908069742f7db27dc28d0a'... Skipped [Package already compiled] (00:00:00)
Compiling package 'golang-1.16-linux/b80bd5d07fd6ab5e609fb578d3079d2f75e0c66a2362b496174bbedf2fc2610e'... Skipped [Package already compiled] (00:00:02)
Compiling package 'libseccomp/79d94d0ec0ec34124cdaafb3300127628b7ec9a7b3378fc9a60f1fa018e30fd7'... Skipped [Package already compiled] (00:00:00)
Compiling package 'mysql/67dc3882464cb721ac6f0c093a0b2aeb4d4f963a0c7cd6a8a6e5764f3e193293'... Skipped [Package already compiled] (00:00:00)
Compiling package 'libpq/b309a72768019e24e2c592f3f25ded2679e98cbb90f774c3a4d6b7745760079f'... Skipped [Package already compiled] (00:00:00)
Compiling package 'openjdk_1.8.0/173e6f8b01cd4416dd49fa774b3920aa4d3c0baef39d2fdbbdb06b1dcaaab3ae'... Skipped [Package already compiled] (00:00:00)
Compiling package 'postgres-15/d60a5c68874e269beb9e2b03ea692912229bde7b0076d01f30203be6918323d2'... Skipped [Package already compiled] (00:00:00)
Compiling package 'luna-hsm-client-7.4/5956cbd4d17c28c2e4c29f3906e3faddc1d7b921708740f1a532a37d5b6fbe29'... Skipped [Package already compiled] (00:00:00)
Compiling package 'azure-storage-cli/7f8c12259e42f95b423d95048406215b197a4720c85c5e3e38c4145edbbae8d6'... Skipped [Package already compiled] (00:00:00)
Compiling package 'xfs-progs/e25666d83dedc8453866697e1cf6b80cea314c0ec7fd19aad5955251e04e0726'... Skipped [Package already compiled] (00:00:00)
Compiling package 'postgres-13/fe1546f1a699070e23310d860d6c6ea6e61d086eb5cac3e50092cbb4368e8fa1'... Skipped [Package already compiled] (00:00:00)
Compiling package 'tini/cd19db4c74ad08902ca63bea2a78ff60fdf1007abcd6bf2bf34b895282a45ac9'... Skipped [Package already compiled] (00:00:00)
Compiling package 'grootfs/f381c06eb002c555a7ef1285c688d4fc4b3d557d65e0c7b186cdb836126f7e49'... Skipped [Package already compiled] (00:00:00)
Compiling package 'netplugin-shim/9694f6e202928d27c93fc5bf0068f1306a12a2fcf42f137abfc19b0a8f41c5b6'... Skipped [Package already compiled] (00:00:00)
Compiling package 'nats/91e42e9a8eb4420f55775f33ddcf58293481dccf1ebfe2a640992e063b02f5f1'... Skipped [Package already compiled] (00:00:00)
Compiling package 'garden-idmapper/5dd5aa2737552b4b6d507919aa12a0afb48fcc23f4275f43492f8f8691ce067f'... Skipped [Package already compiled] (00:00:00)
Compiling package 'garden-runc-healthchecker/dd3ad48dff9709bd19d58a00455fd39719adf392db8050a46b0d95ffea94406d'... Skipped [Package already compiled] (00:00:00)
Compiling package 'busybox/12e67d1a3148c3ad4e62d68dad9b75219dd809ce30f2b9572f09fe9ad4923a5b'... Skipped [Package already compiled] (00:00:00)
Compiling package 'postgres-10/e3f2ed31116e1a0c929ae6fcdde983a9d6c000c25cafde8a784fd126e06400f9'... Skipped [Package already compiled] (00:00:00)
Compiling package 'health_monitor/cd4d357a133796e0b6e330719d51b2368da8bf31e57d16d4e02287bf4ecef590'... Skipped [Package already compiled] (00:00:00)
Compiling package 'bpm/a677a3b57b36b898c10f9709c9f9813da6d878f0'... Skipped [Package already compiled] (00:00:00)
Compiling package 's3cli/be30041528f36f4c50e085e957304c576136a3ecb39aeee88251a775ec2e7596'... Skipped [Package already compiled] (00:00:00)
Compiling package 'warden_cpi/fb1b857d91a1609d198560bb016274d4b6be7eeb3b006e31d153ca37a913f43f'... Skipped [Package already compiled] (00:00:00)
Compiling package 'tar/14174709e019d79b16f1d6316f993465709373972ea75cfff5a986cdf9e36075'... Skipped [Package already compiled] (00:00:00)
Compiling package 'greenskeeper/60540b9ca2a4774c66b1dbd7837fd82f7c6aef5ece367466e57e9c979eced07a'... Skipped [Package already compiled] (00:00:00)
Compiling package 'uaa/7593d5fc0744c44bcfc956f27746a455e07b9a27c6b64693575a64aa58f4375e'... Skipped [Package already compiled] (00:00:06)
Compiling package 'verify_multidigest/0e63380b2cee112e5e0788377a44081603ff7fe75468ddc6447b6857205882da'... Skipped [Package already compiled] (00:00:00)
Compiling package 'bosh-gcscli/fc2b4b43a11fa3a6e4ac9f86ad4b750975f516371214ff04e01330f26e2a1222'... Skipped [Package already compiled] (00:00:00)
Compiling package 'nginx/ea3eadaa82bb9344018a8798a825b98315b1195bb1d495257f38421b0b7618a5'... Skipped [Package already compiled] (00:00:00)
Compiling package 'davcli/778a4f5bf567bd8a64ab970b111669310477a0063fe6e01d09ac044284d683e4'... Skipped [Package already compiled] (00:00:00)
Compiling package 'runc/9fe80b077f2ea092eb72ba8a04ad831e596b5969c32102a72034892ad6ed231a'... Skipped [Package already compiled] (00:00:00)
Compiling package 'director/7a404dfde3111a84b41cc03edf94f86e1c62c14ab5db14663c6bebb0f39d34d3'... Skipped [Package already compiled] (00:00:00)
Compiling package 'containerd/2accdc4a2e1797715a351157163f3235b6a61b6a04deeed459e9c0f4857acfcd'... Skipped [Package already compiled] (00:00:00)
Compiling package 'dontpanic/8820c2b03be8e7dd1a5b7eaeda1e0ff155bc567175a0486c992824c31fa02c86'... Skipped [Package already compiled] (00:00:00)
Compiling package 'thresholder/a85b291d5c202aafe4c58f1501e3bfe44038abd72a87e8f10c54066b1356d052'... Skipped [Package already compiled] (00:00:00)
Compiling package 'guardian/58c669794a8a21bc6999040212cdb140e17ce4c291152e112c7b379cefcb352e'... Skipped [Package already compiled] (00:00:00)
Compiling package 'credhub/0eedd6d8a99c7cae1300fa9c0f2aa851502dc7025b0296febc5ea2390bb62771'... Skipped [Package already compiled] (00:00:01)
Compiling package 'iptables/8abb95a89ee9bb55e36082fdfe856dd4de869e3d21dcc3cc11a93b5d058c534e'... Skipped [Package already compiled] (00:00:00)
Updating instance 'bosh/0'... Finished (00:07:29)
Waiting for instance 'bosh/0' to be running... Failed (00:05:20)
Failed deploying (00:16:22)

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

Deploying:
Received non-running job state: 'failing'

Exit code 1

@ramonskie
Copy link
Contributor

try to ssh in to the vm and run

sudo su
monit summary

to see which jobs are failing. from there you can figure out which logs you need to check.
a likely cullprit is that something just takes to long to start or not enoough resource

@jpalermo
Copy link
Member

jpalermo commented Sep 7, 2023

Hi @yangdeyue-root , is this still a problem, or was this the same issue seen in cloudfoundry/bosh#2463?

@rkoster
Copy link
Contributor

rkoster commented Sep 21, 2023

Closing due to inactivity

@rkoster rkoster closed this as completed Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

4 participants