gpt4 book ai didi

linux - 远程 ESXi 构建器检索 VM ip 失败。 ESXi 6.0,封隔器

转载 作者:太空宇宙 更新时间:2023-11-04 12:18:07 25 4
gpt4 key购买 nike

我正在使用 ESXi 6.0 主机来测试加壳器,并且一直在尝试让 vmware-iso 远程 ESXi 构建器正常工作。使用打包程序 1.0。我到了加壳器尝试使用“esxcli --formatter csv network vm port list -w #######”检索 guest IP 的地步,但错误提示找不到 IP。

加壳日志:https://pastebin.com/0TU3HBhQ

杰森文件:

{
"builders": [
{
"boot_command": [
"<enter><wait><f6><esc><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"/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=vagrant<wait>",
" grub-installer/bootdev=/dev/sda<wait>",
" noapic<wait>",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg",
" -- <wait>",
"<enter><wait>"
],
"communicator": "ssh",
"disk_size": "{{user `disk_size`}}",
"guest_os_type": "ubuntu-64",
"http_directory": ".",
"http_port_max": "9001",
"http_port_min": "8000",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "sha256",
"iso_url": "{{user `iso_url`}}",
"keep_registered": true,
"remote_cache_directory": "../packer_cache",
"remote_datastore": "{{user `host_datastore`}}",
"remote_host": "{{user `host`}}",
"remote_password": "{{user `host_password`}}",
"remote_type": "{{user `host_type`}}",
"remote_username": "{{user `host_user`}}",
"shutdown_command": "shutdown",
"ssh_password": "user",
"ssh_port": 22,
"ssh_username": "user",
"ssh_wait_timeout": "10000s",
"type": "vmware-iso",
"vm_name": "{{user `name`}}",
"vmx_data": {
"RemoteDisplay.vnc.webSocket.port": "5900",
"cpuid.coresPerSocket": "{{user `cores`}}",
"ethernet0.networkName": "{{user `netname`}}",
"ethernet0.present": "true",
"ethernet0.startConnected": "true",
"ethernet0.virtualDev": "e1000",
"memsize": "{{user `memsize`}}",
"numvcpus": "{{user `numvcpus`}}"
}
}
]
}

和:

{
"wait_90":
"<wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10>",
"type": "vmware-iso",
"name": "ubuntu",
"host_type": "esx5",
"host": "***",
"host_datastore": "***/ubuntu",
"host_user": "root",
"host_password": "user",
"guest_root_password": "user",
"disk_size": "7000",
"iso_url": "http://mirror.yandex.ru/ubuntu-releases/16.04.2/ubuntu-16.04.2-server-amd64.iso",
"iso_checksum": "737ae7041212c628de5751d15c3016058b0e833fdc32e7420209b76ca3d0a535",
"cores": "1",
"memsize": "512",
"numvcpus": "1",
"netname": "***",
"guest_hostname": "ubuntu"
}

预置文件:https://pastebin.com/JCCEMs1v

有什么想法吗?

最佳答案

此问题的标准故障排除程序:

  1. 验证您的 preseed 是否正确配置了 DHCP。
  2. 打开虚拟机的 vSphere/ESXi 嵌入式控制台并查看错误消息或卡住的位置。

关于linux - 远程 ESXi 构建器检索 VM ip 失败。 ESXi 6.0,封隔器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46835989/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com