2015-06-13 33 views
5

Tôi bắt đầu sử dụng Rancher và Vagrant để tạo môi trường địa phương để phát triển. Các bước mà tôi đã thực hiện:"Việc làm cho [email protected] không thành công vì đã vượt quá giới hạn tài nguyên đã cấu hình"

  1. Tôi đã cài đặt VirtualBox.
  2. tôi tải về và cài đặt các gói Vagrant cho linux với

    sudo rpm -i vagrant_1.7.2_x86_64.rpm 
    

Vagrant phiên bản:

vagran --version 
Vagrant 1.7.2 

tôi nhân bản repo Rancher từ GitHub:

git clone [email protected]:rancherio/rancher.git 

nào có tệp Vagrant. Sau khi thực hiện:

sudo vagrant up 

Đó là bước mà tôi nhận được lỗi, tôi nhận điều này:

==> rancher: Box 'coreos-alpha' could not be found. Attempting to find and install... 
rancher: Box Provider: virtualbox 
rancher: Box Version: >= 308.0.1 
==> rancher: Loading metadata for 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) for provider: virtualbox 
rancher: Downloading: http://alpha.release.core-os.net/amd64-usr/709.0.0/coreos_production_vagrant.box 
rancher: Calculating and comparing box checksum... 
==> rancher: Successfully added box 'coreos-alpha' (v709.0.0) for 'virtualbox'! 
==> rancher: Importing base box 'coreos-alpha'... 
==> rancher: Matching MAC address for NAT networking... 
==> rancher: Checking if box 'coreos-alpha' is up to date... 
==> rancher: Setting the name of the VM:rancher_rancher_1434213461241_51852 
==> rancher: Clearing any previously 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 for machine to boot. This may take a 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 will automatically replace 
rancher: this with a newly generated keypair for better security. 
rancher: 
rancher: Inserting generated public key within guest... 
rancher: Removing insecure key from the guest if its present... 
rancher: Key inserted! Disconnecting and reconnecting using new SSH key... 
==> rancher: Machine booted and ready! 
==> rancher: Setting hostname... 
The following SSH command responded with a non-zero exit status. 
Vagrant assumes that this means the command failed! 

systemctl start [email protected] 

Stdout from the command: 



Stderr from the command: 

Job for [email protected] failed because a configured resource limit was exceeded. See "systemctl status [email protected]" and "journalctl -xe" for details. 

Sau đó, khi tôi đi đến localhost: 8080 không có Rancher UI cài đặt.

+0

Bạn có thể đăng nhập vào trường hợp trình neo của bạn và thực thi 'systemctl status system-cloudinit @ -var-tmp-hostname.yml.service' sau khi không thành công. – Braiam

+0

Tôi nhận được thông tin này: [email protected] Đã tải: không tìm thấy (Lý do: Không có tệp hoặc thư mục nào) Hoạt động: không hoạt động (đã chết) – eduartua

Trả lời

7

Tôi cũng gặp phải cùng một vấn đề, sau đó tôi cấu hình các "config.rb", thay đổi kênh cập nhật để ổn định như dưới đây,

$update_channel='stable' 

sau đó phá hủy và lên coreos lang thang một lần nữa,

$ vagrant destroy 
$ vagrant up 

cuối cùng, âm thanh chạy thành công ~

1

Xem này GitHub issue, do bản cập nhật trong systemd trong CoreOS 709 .0.0.

Giống như đề cập đến smalltown, bạn có thể chuyển về phiên bản cũ hơn của CoreOS bằng cách sử dụng kênh beta. Hoặc bạn có thể đợi cho số this pull request này được hợp nhất cho các lõi âm đạo để bạn có thể ghim một phiên bản cụ thể để sử dụng.

Các vấn đề liên quan