Open garex opened 9 years ago
{
"builders": [
{
"boot_command": [
"<esc><wait>",
"<esc><wait>",
"<enter><wait>",
"/install/vmlinuz<wait>",
" auto<wait>",
" console-setup/ask_detect=false<wait>",
" console-setup/layoutcode=us<wait>",
" console-setup/modelcode=pc105<wait>",
" debconf/frontend=noninteractive<wait>",
" debian-installer=en_US<wait>",
" fb=false<wait>",
" initrd=/install/initrd.gz<wait>",
" kbd-chooser/method=us<wait>",
" keyboard-configuration/layout=USA<wait>",
" keyboard-configuration/variant=USA<wait>",
" locale=en_US<wait>",
" netcfg/get_domain=vm<wait>",
" netcfg/get_hostname=travis<wait>",
" noapic<wait>",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ubuntu-12.04/preseed-travis.cfg<wait>",
" -- <wait>",
"<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
"guest_additions_path": "VBoxGuestAdditions_{{ .Version }}.iso",
"guest_os_type": "Ubuntu_64",
"http_directory": "http",
"iso_checksum": "7540ace2d6cdee264432f5ed987236d32edef798",
"iso_checksum_type": "sha1",
"iso_url": "{{user `mirror`}}/12.04/ubuntu-12.04.5-server-amd64.iso",
"output_directory": "packer-ubuntu-12.04-amd64-virtualbox",
"shutdown_command": "echo 'travis'|sudo -S shutdown -P now",
"ssh_password": "travis",
"ssh_port": 22,
"ssh_username": "travis",
"ssh_wait_timeout": "10000s",
"type": "virtualbox-iso",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"2048"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"2"
]
],
"virtualbox_version_file": ".vbox_version",
"vm_name": "packer-ubuntu-12.04-amd64"
},
{
"boot_command": [
"<esc><wait>",
"<esc><wait>",
"<enter><wait>",
"/install/vmlinuz<wait>",
" auto<wait>",
" console-setup/ask_detect=false<wait>",
" console-setup/layoutcode=us<wait>",
" console-setup/modelcode=pc105<wait>",
" debconf/frontend=noninteractive<wait>",
" debian-installer=en_US<wait>",
" fb=false<wait>",
" initrd=/install/initrd.gz<wait>",
" kbd-chooser/method=us<wait>",
" keyboard-configuration/layout=USA<wait>",
" keyboard-configuration/variant=USA<wait>",
" locale=en_US<wait>",
" netcfg/get_domain=vm<wait>",
" netcfg/get_hostname=travis<wait>",
" noapic<wait>",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ubuntu-12.04/preseed-travis.cfg<wait>",
" -- <wait>",
"<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
"guest_os_type": "ubuntu-64",
"http_directory": "http",
"iso_checksum": "7540ace2d6cdee264432f5ed987236d32edef798",
"iso_checksum_type": "sha1",
"iso_url": "{{user `mirror`}}/12.04/ubuntu-12.04.5-server-amd64.iso",
"output_directory": "packer-ubuntu-12.04-amd64-vmware",
"shutdown_command": "echo 'travis'|sudo -S shutdown -P now",
"ssh_password": "travis",
"ssh_port": 22,
"ssh_username": "travis",
"ssh_wait_timeout": "10000s",
"tools_upload_flavor": "linux",
"type": "vmware-iso",
"vm_name": "packer-ubuntu-12.04-amd64",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "2048",
"numvcpus": "2"
}
},
{
"boot_command": [
"<esc><wait>",
"<esc><wait>",
"<enter><wait>",
"/install/vmlinuz<wait>",
" auto<wait>",
" console-setup/ask_detect=false<wait>",
" console-setup/layoutcode=us<wait>",
" console-setup/modelcode=pc105<wait>",
" debconf/frontend=noninteractive<wait>",
" debian-installer=en_US<wait>",
" fb=false<wait>",
" initrd=/install/initrd.gz<wait>",
" kbd-chooser/method=us<wait>",
" keyboard-configuration/layout=USA<wait>",
" keyboard-configuration/variant=USA<wait>",
" locale=en_US<wait>",
" netcfg/get_domain=vm<wait>",
" netcfg/get_hostname=travis<wait>",
" noapic<wait>",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ubuntu-12.04/preseed-travis.cfg<wait>",
" -- <wait>",
"<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
"parallels_tools_flavor": "lin",
"guest_os_type": "ubuntu",
"http_directory": "http",
"iso_checksum": "7540ace2d6cdee264432f5ed987236d32edef798",
"iso_checksum_type": "sha1",
"iso_url": "{{user `mirror`}}/12.04/ubuntu-12.04.5-server-amd64.iso",
"output_directory": "packer-ubuntu-12.04-amd64-parallels",
"shutdown_command": "echo 'travis'|sudo -S shutdown -P now",
"ssh_password": "travis",
"ssh_port": 22,
"ssh_username": "travis",
"ssh_wait_timeout": "10000s",
"type": "parallels-iso",
"prlctl": [
[
"set",
"{{.Name}}",
"--memsize",
"2048"
],
[
"set",
"{{.Name}}",
"--cpus",
"2"
]
],
"prlctl_version_file": ".prlctl_version",
"vm_name": "packer-ubuntu-12.04-amd64"
}
],
"post-processors": [
{
"output": "../builds/{{.Provider}}/travis_ubuntu-12.04_chef-{{user `chef_version`}}.box",
"type": "vagrant"
}
],
"provisioners": [
{
"environment_vars": [
"CHEF_VERSION={{user `chef_version`}}"
],
"execute_command": "echo 'travis' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"scripts": [
"scripts/ubuntu/update.sh",
"scripts/common/sshd.sh",
"scripts/ubuntu/networking.sh",
"scripts/ubuntu/sudoers.sh",
"scripts/common/travis.sh",
"scripts/common/vmtools-travis.sh",
"scripts/common/chef.sh",
"scripts/ubuntu/cleanup.sh",
"scripts/common/minimize.sh"
],
"type": "shell"
},
{
"type": "chef-solo",
"cookbook_paths": [
"../../travis-cookbooks/ci_environment"
],
"json": {
"rvm": {
"default": "1.9.3",
"rubies": [
{
"name": "1.9.3"
}
],
"gems": [
"bundler",
"rake"
]
},
"gimme": {
"versions": [
"1.4.1"
],
"default_version": "1.4.1"
},
"travis_build_environment": {
"use_tmpfs_for_builds": false
},
"system_info": {
"cookbooks_sha": "71544db8ba0da66eadbf9ffbf20dd1d8d68559ab"
}
},
"run_list": [
"travis_build_environment",
"apt",
"package-updates",
"build-essential",
"ccache",
"clang::tarball",
"gimme",
"networking_basic",
"openssl",
"sysctl",
"git::ppa",
"mercurial",
"bazaar",
"subversion",
"scons",
"unarchivers",
"md5deep",
"dictionaries",
"jq",
"libqt4",
"libgdbm",
"libncurses",
"libossp-uuid",
"libffi",
"libicu",
"ragel",
"imagemagick",
"mingw32",
"libevent",
"java",
"ant",
"maven",
"sqlite",
"rvm",
"rvm::multi",
"python",
"python::pip",
"nodejs::multi",
"postgresql",
"redis",
"riak",
"mongodb",
"couchdb::ppa",
"memcached",
"neo4j-server::tarball",
"cassandra::tarball",
"rabbitmq::with_management_plugin",
"zeromq::ppa",
"elasticsearch",
"sphinx::all",
"xserver",
"firefox::tarball",
"chromium",
"phantomjs::tarball",
"emacs::nox",
"vim",
"system_info",
"sweeper",
"mysql::server_on_ramfs",
"python::devshm"
]
}
],
"variables": {
"chef_version": "latest",
"mirror": "http://releases.ubuntu.com"
}
}
Even on minimum recipes it hangs. Seems like some command freezes.
I don't know why. I suggest deleting system_info
while you create the base box. Vagrant should be able to provision the image with system_info
.
Already done. Didn't you saw somthing strange with system-info recipe?
Alexander Ustimenko +7 (952) 918-02-20
2015-02-14 20:43 GMT+06:00 Hiro Asari notifications@github.com:
I don't know why. I suggest deleting system_info while you create the base box. Vagrant should be able to provision the image with system_info.
— Reply to this email directly or view it on GitHub https://github.com/BanzaiMan/travis-packer/issues/1#issuecomment-74377606 .
I've also documented this in README.
Ooops.. RTFM.. Im' waited for 1st build with hope about 3 hours :)
May be fix it somehow?
It would be great if we can, but not critical if we can't.
I seem to no longer experience this issue. While I did not yet run my packer build to the end (due to #2), it seems that unless system_info
executes some stuff after the recipe is first run (like a delayed notification at the end of the whole chef-client run), everything should be fine as the recipe finishes successfully (yes, I did not remove system_info from the list of recipes as was suggested in the README.md
):
virtualbox-iso: [2015-07-29T00:03:41+00:00] INFO: Processing git[/usr/local/system_info] action sync (system_info::default line 14)
virtualbox-iso: [2015-07-29T00:03:42+00:00] INFO: git[/usr/local/system_info] cloning repo https://github.com/travis-ci/system_info.git to /usr/local/system_info
virtualbox-iso: [2015-07-29T00:03:44+00:00] INFO: git[/usr/local/system_info] checked out branch: master onto: deploy reference: 10823829a98c455a0575f6e97f5b8f4e2662c8d1
virtualbox-iso: [2015-07-29T00:03:44+00:00] INFO: Processing execute[set owner on /usr/local/system_info] action run (system_info::default line 20)
virtualbox-iso: [2015-07-29T00:03:44+00:00] INFO: execute[set owner on /usr/local/system_info] ran successfully
virtualbox-iso: [2015-07-29T00:03:44+00:00] INFO: Processing execute[remove /usr/share/travis] action run (system_info::default line 24)
virtualbox-iso: [2015-07-29T00:03:44+00:00] INFO: execute[remove /usr/share/travis] ran successfully
virtualbox-iso: [2015-07-29T00:03:44+00:00] INFO: Processing bash[Install system_info gems] action run (system_info::default line 28)
virtualbox-iso: [2015-07-29T00:03:44+00:00] INFO: Processing directory[/usr/share/travis] action create (system_info::default line 38)
virtualbox-iso: [2015-07-29T00:03:44+00:00] INFO: directory[/usr/share/travis] created directory /usr/share/travis
virtualbox-iso: [2015-07-29T00:03:44+00:00] INFO: directory[/usr/share/travis] owner changed to 900
virtualbox-iso: [2015-07-29T00:03:44+00:00] INFO: directory[/usr/share/travis] group changed to 900
virtualbox-iso: [2015-07-29T00:03:44+00:00] INFO: Processing bash[execute-system_info] action run (system_info::default line 44)
virtualbox-iso: [2015-07-29T00:07:52+00:00] INFO: bash[execute-system_info] ran successfully
# next recipe (sweeper) starts running
virtualbox-iso: [2015-07-29T00:07:52+00:00] INFO: Processing execute[apt-get -y clean autoremove] action run (sweeper::default line 27)
Hi, @BanzaiMan
But why? It's all should be inside virtual machine. Or not?