vagrant - "Job for system-cloudinit@-var-tmp-hostname.yml.service failed because a configured resource limit was exceeded" -
i starting using rancher , vagrant create local environment development. steps i've done:
- i had virtualbox installed.
i download , installed vagrant package linux
sudo rpm -i vagrant_1.7.2_x86_64.rpm
vagrant version:
vagran --version vagrant 1.7.2
i cloned rancher repo github:
git clone git@github.com:rancherio/rancher.git
which has vagrant file. after executing:
sudo vagrant
which step error, got this:
==> rancher: box 'coreos-alpha' not found. attempting find , install... rancher: box provider: virtualbox rancher: box version: >= 308.0.1 ==> rancher: loading metadata box 'http://alpha.release.core-os.net/amd64-usr/current/coreos_production_vagrant.json' rancher: url: http://alpha.release.core-os.net/amd64-usr/current/coreos_production_vagrant.json ==> rancher: adding box 'coreos-alpha' (v709.0.0) provider: virtualbox rancher: downloading: http://alpha.release.core-os.net/amd64-usr/709.0.0/coreos_production_vagrant.box rancher: calculating , comparing box checksum... ==> rancher: added box 'coreos-alpha' (v709.0.0) 'virtualbox'! ==> rancher: importing base box 'coreos-alpha'... ==> rancher: matching mac address nat networking... ==> rancher: checking if box 'coreos-alpha' date... ==> rancher: setting name of vm:rancher_rancher_1434213461241_51852 ==> rancher: clearing set network interfaces... ==> rancher: preparing network interfaces based on configuration... rancher: adapter 1: nat rancher: adapter 2: hostonly ==> rancher: forwarding ports... rancher: 8080 => 8080 (adapter 1) rancher: 22 => 2222 (adapter 1) ==> rancher: running 'pre-boot' vm customizations... ==> rancher: booting vm... ==> rancher: waiting machine boot. may take few minutes... rancher: ssh address: 127.0.0.1:2222 rancher: ssh username: core rancher: ssh auth method: private key rancher: warning: connection timeout. retrying... rancher: rancher: vagrant insecure key detected. vagrant automatically replace rancher: newly generated keypair better security. rancher: rancher: inserting generated public key within guest... rancher: removing insecure key guest if present... rancher: key inserted! disconnecting , reconnecting using new ssh key... ==> rancher: machine booted , ready! ==> rancher: setting hostname... following ssh command responded non-zero exit status. vagrant assumes means command failed! systemctl start system-cloudinit@-var-tmp-hostname.yml.service stdout command: stderr command: job system-cloudinit@-var-tmp-hostname.yml.service failed because configured resource limit exceeded. see "systemctl status system-cloudinit@-var-tmp-hostname.yml.service" , "journalctl -xe" details.
then when go localhost:8080 there no rancher ui installed.
i encounter same problem, config "config.rb", change update channel stable below,
$update_channel='stable'
then destroy , vagrant coreos again,
$ vagrant destroy $ vagrant
finally, vagrant running ~
Comments
Post a Comment