-
Notifications
You must be signed in to change notification settings - Fork 10
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
构建k8s镜像的问题 #23
Comments
关于第2个问题, 运行了很久,但是还是报错结束, 报错的日志为: ==> Some builds didn't complete successfully and had errors: ==> Builds finished but no artifacts were created.` 即使我做了如下的操作, 再去运行构建脚本,也是不行的. |
构建k8s的镜像的时候, 有这么2个问题,还有一个疑问:
如下的 iso_url iso_checksum的原先地址已经做了更改, source可以改一下:
`[root@test001 kubernetes]# pwd
/root/service-images/kubernetes
[root@test001 kubernetes]# cat k8s-centos-7.json
{
"builders": [{
"type": "qemu",
"accelerator": "kvm",
"qemuargs": [
["-m", "2048M"],
["-smp", "cpus=1,maxcpus=16,cores=4"]
],
"disk_interface": "virtio",
"disk_compression": false,
"disk_size": 30720,
"format": "qcow2",
"net_device": "virtio-net",
2. 执行的时候,总是停在如下的位置过不去: Waiting for SSH to become available
[root@test001 service-images]# make k8s./tools/build-image.sh ./kubernetes/k8s-centos-7.json
qemu output will be in this color.
==> qemu: Retrieving ISO
==> qemu: Trying https://mirrors.aliyun.com/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-2009.iso
==> qemu: Trying https://mirrors.aliyun.com/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-2009.iso?checksum=sha256%3A07b94e6b1a0b0260b94c83d6bb76b26bf7a310dc78d7a9c7432809fb9bc6194a
CentOS-7-x86_64-Minimal-2009.iso 973.00 MiB / 973.00 MiB [================================================================================================================================================================] 100.00% 3m52s
==> qemu: https://mirrors.aliyun.com/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-2009.iso?checksum=sha256%3A07b94e6b1a0b0260b94c83d6bb76b26bf7a310dc78d7a9c7432809fb9bc6194a => /root/service-images/packer_cache/d95e59a9419e542b55bdd04a34cb64705af752eb.iso
==> qemu: leaving retrieve loop for ISO
==> qemu: Creating hard drive...
==> qemu: Starting HTTP server on port 8037
==> qemu: Found port for communicator (SSH, WinRM, etc): 4233.
==> qemu: Looking for available port between 5900 and 6000 on 0.0.0.0
==> qemu: Starting VM, booting from CD-ROM
qemu: The VM will be run headless, without a GUI. If you want to
qemu: view the screen of the VM, connect via VNC without a password to
qemu: vnc://0.0.0.0:5962
==> qemu: Overriding defaults Qemu arguments with QemuArgs...
==> qemu: Waiting 5s for boot...
==> qemu: Connecting to VM via VNC (0.0.0.0:5962)
==> qemu: Typing the boot command over VNC...
==> qemu: Using ssh communicator to connect: 127.0.0.1
==> qemu: Waiting for SSH to become available...`
yum install --assumeyes bridge-utils conntrack-tools jq kubelet-1.14.1-0 kubeadm kubectl
The text was updated successfully, but these errors were encountered: