Hi,
I am trying to create a new custom stemcell for micro-bosh for VSphere. I
am using the stemcell builder in the cloudfoundry/bosh repo. Out of the box
the stemcell builder did not work for me. It is looking for a bosh folder
in release/src directory which is misisng and also the bosh create release
fails. I have been hacking around for a couple of days and I have got to a
point where I am failing at the bosh_micro stage. Here is the error. Here
are the contents of my settings file

# parameters for `base_debootstrap`
# UBUNTU_ISO=/tmp/lucid-server-amd64.iso
# UBUNTU_MIRROR=http://mirrors.us.kernel.org/ubuntu/

# parameters for `base_debootstrap_release`
# base_debootstrap_suite=precise

# parameters for `bosh_users`
bosh_users_password=c1oudc0w

# parameters for `bosh_agent`
bosh_agent_src_dir=/home/gpadmin/bosh/bosh_agent/
bosh_release_src_dir=/home/gpadmin/bosh/
# parameters for `bosh_micro`
bosh_micro_enabled=yes
bosh_micro_package_compiler_path=/home/gpadmin/bosh/bin/
bosh_micro_manifest_yml_path=/home/gpadmin/micro_bosh.yml
bosh_micro_release_tgz_path=/home/gpadmin/dev01-13.1-dev.tgz
mcf_enabled=no

# parameters for `system_parameters`
system_parameters_infrastructure=vsphere

# parameters for `image_create`
# image_create_disk_size=2048

# parameters for `image_vsphere_ovf`
image_vsphere_ovf_ovftool_path=/usr/bin/ovftool

# parameters for `stemcell`
stemcell_name=micro_bosh_dev
stemcell_version=0.1
stemcell_infrastructure=vsphere
stemcell_hypervisor=esxi
bosh_protocol_version=unknown
ruby_bin=/home/gpadmin/.rbenv/shims/ruby



Command I am running: bin/build_from_spec.sh $work_dir $specification_file
$settings_file

D, [2013-08-09T20:07:33.007647 #10890] DEBUG -- : untaring
/var/vcap/bosh/src/micro_bosh/release.tgz into /tmp/d20130809-10890-89jqg8
E, [2013-08-09T20:07:33.863649 #10890] ERROR -- : Error Could not find name
micro_vsphere in [{"name"=>"health_monitor", "version"=>"5.1-dev",
"fingerprint"=>"901c8d610b6be4aa1177cdfd61554bafc035e4dd",
"sha1"=>"a06064143230c6b0d00e34596fe3e09199be3921"}, {"name"=>"blobstore",
"version"=>"3.1-dev",
"fingerprint"=>"a7b923b179aa01f469c53f4a20f8165448dba3bf",
"sha1"=>"b17c7d82a786d8a678394328c0e24b2a071bd6d4"}, {"name"=>"powerdns",
"version"=>"3.1-dev",
"fingerprint"=>"9f244c972bd208e70382701b8068fd9c6bd78f45",
"sha1"=>"3347431127916f2e8d167927c8e520f355542d75"}, {"name"=>"postgres",
"version"=>"4.1-dev",
"fingerprint"=>"c1cbb44df822dccaba70e5c6aec2b62d423b3d77",
"sha1"=>"0ec7360032dea1b4dcec6c3893cdbd6bf278ece0"}, {"name"=>"nats",
"version"=>5, "fingerprint"=>"3cd9e026df21fa386a39e63e05873d7441abe4ba",
"sha1"=>"0bd349b6d9d2a4b39e7f90e9d83a0102cd01d8b2"}, {"name"=>"redis",
"version"=>3, "fingerprint"=>"7dec0ebdbb3bb18a4f04c9df7a399415da1ed051",
"sha1"=>"1a23f591c2904c8c47cddaace7130d973e9bb875"}, {"name"=>"registry",
"version"=>"0.1-dev",
"fingerprint"=>"7012bedfd8879c4547c9073cbb7715d1221a250d",
"sha1"=>"4dcb0ca9c2e9c1acf78c1db089f2b4631195c05f"}, {"name"=>"director",
"version"=>"11.1-dev",
"fingerprint"=>"b29f29552097a076b5ad0c21ed1b4c5965accb2d",
"sha1"=>"fded55b87ff5385ea89d37c9d70375dedc58ae62"}],
/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/lib/package_compiler/compiler.rb:105:in
`find_by_name'
/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/lib/package_compiler/compiler.rb:65:in
`block (2 levels) in compile'
/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/lib/package_compiler/compiler.rb:64:in
`each'
/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/lib/package_compiler/compiler.rb:64:in
`block in compile'
/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/lib/package_compiler/compiler.rb:215:in
`untar'
/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/lib/package_compiler/compiler.rb:60:in
`compile'
/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/lib/package_compiler/compiler.rb:29:in
`start'
/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/lib/package_compiler.rb:17:in
`start'
/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/bin/package_compiler:54:in
`<top (required)>'
/var/vcap/bosh/bin/package_compiler:23:in `load'
/var/vcap/bosh/bin/package_compiler:23:in `<main>'
cp: cannot stat
`/tmp/tmp.cuoPbMEHM9/work/chroot//var/vcap/micro/apply_spec.yml': No such
file or directory



Also is there a more fresher write up on how to go about creating your own
stemcell for vsphere. The ones on the web refer to non-existing git repos?

Search Discussions

  • Tammer Saleh at Aug 9, 2013 at 10:11 pm
    The BOSH team is currently in the process of rewriting the stemcell
    creation logic (current implementation is untested and a combination of
    rake and bash code). This will make it much easier for outside
    contributors to create their own stemcells.

    Cheers,
    Tammer Saleh


    On Fri, Aug 9, 2013 at 2:18 PM, Sujeet Varakhedi
    wrote:
    Hi,
    I am trying to create a new custom stemcell for micro-bosh for VSphere. I
    am using the stemcell builder in the cloudfoundry/bosh repo. Out of the box
    the stemcell builder did not work for me. It is looking for a bosh folder
    in release/src directory which is misisng and also the bosh create release
    fails. I have been hacking around for a couple of days and I have got to a
    point where I am failing at the bosh_micro stage. Here is the error. Here
    are the contents of my settings file

    # parameters for `base_debootstrap`
    # UBUNTU_ISO=/tmp/lucid-server-amd64.iso
    # UBUNTU_MIRROR=http://mirrors.us.kernel.org/ubuntu/

    # parameters for `base_debootstrap_release`
    # base_debootstrap_suite=precise

    # parameters for `bosh_users`
    bosh_users_password=c1oudc0w

    # parameters for `bosh_agent`
    bosh_agent_src_dir=/home/gpadmin/bosh/bosh_agent/
    bosh_release_src_dir=/home/gpadmin/bosh/
    # parameters for `bosh_micro`
    bosh_micro_enabled=yes
    bosh_micro_package_compiler_path=/home/gpadmin/bosh/bin/
    bosh_micro_manifest_yml_path=/home/gpadmin/micro_bosh.yml
    bosh_micro_release_tgz_path=/home/gpadmin/dev01-13.1-dev.tgz
    mcf_enabled=no

    # parameters for `system_parameters`
    system_parameters_infrastructure=vsphere

    # parameters for `image_create`
    # image_create_disk_size=2048

    # parameters for `image_vsphere_ovf`
    image_vsphere_ovf_ovftool_path=/usr/bin/ovftool

    # parameters for `stemcell`
    stemcell_name=micro_bosh_dev
    stemcell_version=0.1
    stemcell_infrastructure=vsphere
    stemcell_hypervisor=esxi
    bosh_protocol_version=unknown
    ruby_bin=/home/gpadmin/.rbenv/shims/ruby



    Command I am running: bin/build_from_spec.sh $work_dir
    $specification_file $settings_file

    D, [2013-08-09T20:07:33.007647 #10890] DEBUG -- : untaring
    /var/vcap/bosh/src/micro_bosh/release.tgz into /tmp/d20130809-10890-89jqg8
    E, [2013-08-09T20:07:33.863649 #10890] ERROR -- : Error Could not find
    name micro_vsphere in [{"name"=>"health_monitor", "version"=>"5.1-dev",
    "fingerprint"=>"901c8d610b6be4aa1177cdfd61554bafc035e4dd",
    "sha1"=>"a06064143230c6b0d00e34596fe3e09199be3921"}, {"name"=>"blobstore",
    "version"=>"3.1-dev",
    "fingerprint"=>"a7b923b179aa01f469c53f4a20f8165448dba3bf",
    "sha1"=>"b17c7d82a786d8a678394328c0e24b2a071bd6d4"}, {"name"=>"powerdns",
    "version"=>"3.1-dev",
    "fingerprint"=>"9f244c972bd208e70382701b8068fd9c6bd78f45",
    "sha1"=>"3347431127916f2e8d167927c8e520f355542d75"}, {"name"=>"postgres",
    "version"=>"4.1-dev",
    "fingerprint"=>"c1cbb44df822dccaba70e5c6aec2b62d423b3d77",
    "sha1"=>"0ec7360032dea1b4dcec6c3893cdbd6bf278ece0"}, {"name"=>"nats",
    "version"=>5, "fingerprint"=>"3cd9e026df21fa386a39e63e05873d7441abe4ba",
    "sha1"=>"0bd349b6d9d2a4b39e7f90e9d83a0102cd01d8b2"}, {"name"=>"redis",
    "version"=>3, "fingerprint"=>"7dec0ebdbb3bb18a4f04c9df7a399415da1ed051",
    "sha1"=>"1a23f591c2904c8c47cddaace7130d973e9bb875"}, {"name"=>"registry",
    "version"=>"0.1-dev",
    "fingerprint"=>"7012bedfd8879c4547c9073cbb7715d1221a250d",
    "sha1"=>"4dcb0ca9c2e9c1acf78c1db089f2b4631195c05f"}, {"name"=>"director",
    "version"=>"11.1-dev",
    "fingerprint"=>"b29f29552097a076b5ad0c21ed1b4c5965accb2d",
    "sha1"=>"fded55b87ff5385ea89d37c9d70375dedc58ae62"}],
    /var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/lib/package_compiler/compiler.rb:105:in
    `find_by_name'
    /var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/lib/package_compiler/compiler.rb:65:in
    `block (2 levels) in compile'
    /var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/lib/package_compiler/compiler.rb:64:in
    `each'
    /var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/lib/package_compiler/compiler.rb:64:in
    `block in compile'
    /var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/lib/package_compiler/compiler.rb:215:in
    `untar'
    /var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/lib/package_compiler/compiler.rb:60:in
    `compile'
    /var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/lib/package_compiler/compiler.rb:29:in
    `start'
    /var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/lib/package_compiler.rb:17:in
    `start'
    /var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/bin/package_compiler:54:in
    `<top (required)>'
    /var/vcap/bosh/bin/package_compiler:23:in `load'
    /var/vcap/bosh/bin/package_compiler:23:in `<main>'
    cp: cannot stat
    `/tmp/tmp.cuoPbMEHM9/work/chroot//var/vcap/micro/apply_spec.yml': No such
    file or directory



    Also is there a more fresher write up on how to go about creating your own
    stemcell for vsphere. The ones on the web refer to non-existing git repos?
  • Luke Bakken at Aug 10, 2013 at 2:00 pm
    Hi Sujeet -

    The bin/build_from_spec.sh script is only part of a larger set of gems and
    rake tasks.

    You can use the travis CI build to "see how it's done" here:
    https://travis-ci.org/cloudfoundry/bosh

    Be sure your ruby has rake and bundler installed, then in your top-level
    bosh checkout run this to see

    $ bundle install --local --without development

    Then use rake to see your available tasks, several of which are for
    building stemcells:

    $ bundle exec rake -T
    On Friday, August 9, 2013 2:18:09 PM UTC-7, Sujeet Varakhedi wrote:

    Hi,
    I am trying to create a new custom stemcell for micro-bosh for VSphere. I
    am using the stemcell builder in the cloudfoundry/bosh repo. Out of the box
    the stemcell builder did not work for me. It is looking for a bosh folder
    in release/src directory which is misisng and also the bosh create release
    fails. I have been hacking around for a couple of days and I have got to a
    point where I am failing at the bosh_micro stage. Here is the error. Here
    are the contents of my settings file

    # parameters for `base_debootstrap`
    # UBUNTU_ISO=/tmp/lucid-server-amd64.iso
    # UBUNTU_MIRROR=http://mirrors.us.kernel.org/ubuntu/

    # parameters for `base_debootstrap_release`
    # base_debootstrap_suite=precise

    # parameters for `bosh_users`
    bosh_users_password=c1oudc0w

    # parameters for `bosh_agent`
    bosh_agent_src_dir=/home/gpadmin/bosh/bosh_agent/
    bosh_release_src_dir=/home/gpadmin/bosh/
    # parameters for `bosh_micro`
    bosh_micro_enabled=yes
    bosh_micro_package_compiler_path=/home/gpadmin/bosh/bin/
    bosh_micro_manifest_yml_path=/home/gpadmin/micro_bosh.yml
    bosh_micro_release_tgz_path=/home/gpadmin/dev01-13.1-dev.tgz
    mcf_enabled=no

    # parameters for `system_parameters`
    system_parameters_infrastructure=vsphere

    # parameters for `image_create`
    # image_create_disk_size=2048

    # parameters for `image_vsphere_ovf`
    image_vsphere_ovf_ovftool_path=/usr/bin/ovftool

    # parameters for `stemcell`
    stemcell_name=micro_bosh_dev
    stemcell_version=0.1
    stemcell_infrastructure=vsphere
    stemcell_hypervisor=esxi
    bosh_protocol_version=unknown
    ruby_bin=/home/gpadmin/.rbenv/shims/ruby



    Command I am running: bin/build_from_spec.sh $work_dir
    $specification_file $settings_file

    D, [2013-08-09T20:07:33.007647 #10890] DEBUG -- : untaring
    /var/vcap/bosh/src/micro_bosh/release.tgz into /tmp/d20130809-10890-89jqg8
    E, [2013-08-09T20:07:33.863649 #10890] ERROR -- : Error Could not find
    name micro_vsphere in [{"name"=>"health_monitor", "version"=>"5.1-dev",
    "fingerprint"=>"901c8d610b6be4aa1177cdfd61554bafc035e4dd",
    "sha1"=>"a06064143230c6b0d00e34596fe3e09199be3921"}, {"name"=>"blobstore",
    "version"=>"3.1-dev",
    "fingerprint"=>"a7b923b179aa01f469c53f4a20f8165448dba3bf",
    "sha1"=>"b17c7d82a786d8a678394328c0e24b2a071bd6d4"}, {"name"=>"powerdns",
    "version"=>"3.1-dev",
    "fingerprint"=>"9f244c972bd208e70382701b8068fd9c6bd78f45",
    "sha1"=>"3347431127916f2e8d167927c8e520f355542d75"}, {"name"=>"postgres",
    "version"=>"4.1-dev",
    "fingerprint"=>"c1cbb44df822dccaba70e5c6aec2b62d423b3d77",
    "sha1"=>"0ec7360032dea1b4dcec6c3893cdbd6bf278ece0"}, {"name"=>"nats",
    "version"=>5, "fingerprint"=>"3cd9e026df21fa386a39e63e05873d7441abe4ba",
    "sha1"=>"0bd349b6d9d2a4b39e7f90e9d83a0102cd01d8b2"}, {"name"=>"redis",
    "version"=>3, "fingerprint"=>"7dec0ebdbb3bb18a4f04c9df7a399415da1ed051",
    "sha1"=>"1a23f591c2904c8c47cddaace7130d973e9bb875"}, {"name"=>"registry",
    "version"=>"0.1-dev",
    "fingerprint"=>"7012bedfd8879c4547c9073cbb7715d1221a250d",
    "sha1"=>"4dcb0ca9c2e9c1acf78c1db089f2b4631195c05f"}, {"name"=>"director",
    "version"=>"11.1-dev",
    "fingerprint"=>"b29f29552097a076b5ad0c21ed1b4c5965accb2d",
    "sha1"=>"fded55b87ff5385ea89d37c9d70375dedc58ae62"}],
    /var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/lib/package_compiler/compiler.rb:105:in
    `find_by_name'
    /var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/lib/package_compiler/compiler.rb:65:in
    `block (2 levels) in compile'
    /var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/lib/package_compiler/compiler.rb:64:in
    `each'
    /var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/lib/package_compiler/compiler.rb:64:in
    `block in compile'
    /var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/lib/package_compiler/compiler.rb:215:in
    `untar'
    /var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/lib/package_compiler/compiler.rb:60:in
    `compile'
    /var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/lib/package_compiler/compiler.rb:29:in
    `start'
    /var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/lib/package_compiler.rb:17:in
    `start'
    /var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.5.0.pre.3/bin/package_compiler:54:in
    `<top (required)>'
    /var/vcap/bosh/bin/package_compiler:23:in `load'
    /var/vcap/bosh/bin/package_compiler:23:in `<main>'
    cp: cannot stat
    `/tmp/tmp.cuoPbMEHM9/work/chroot//var/vcap/micro/apply_spec.yml': No such
    file or directory



    Also is there a more fresher write up on how to go about creating your own
    stemcell for vsphere. The ones on the web refer to non-existing git repos?

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupbosh-users @
postedAug 9, '13 at 9:18p
activeAug 10, '13 at 2:00p
posts3
users3

People

Translate

site design / logo © 2021 Grokbase