Closed omniproc closed 7 months ago
Looking at the /var/log/hostd.log i think this is related to the new lifecycle manager.
2024-01-19T16:27:21.336Z In(166) Hostd[66628]: [Originator@6876 sub=Hostsvc.FirewallSystem] Refreshing ruleset 'esxupdate' status 2024-01-19T16:27:22.350Z In(166) Hostd[66630]: [Originator@6876 sub=Hostsvc.VmkVprobSource] VmkVprobSource::Post event: (vim.event.EventEx) { 2024-01-19T16:27:22.350Z In(166) Hostd[66557]: --> key = 143, 2024-01-19T16:27:22.350Z In(166) Hostd[66557]: --> chainId = -755185344, 2024-01-19T16:27:22.351Z In(166) Hostd[66557]: --> createdTime = "1970-01-01T00:00:00Z", 2024-01-19T16:27:22.351Z In(166) Hostd[66557]: --> userName = "", 2024-01-19T16:27:22.351Z In(166) Hostd[66557]: --> host = (vim.event.HostEventArgument) { 2024-01-19T16:27:22.351Z In(166) Hostd[66557]: --> name = "localhost.localdomain", 2024-01-19T16:27:22.351Z In(166) Hostd[66557]: --> host = 'vim.HostSystem:ha-host' 2024-01-19T16:27:22.351Z In(166) Hostd[66557]: --> }, 2024-01-19T16:27:22.351Z In(166) Hostd[66557]: --> eventTypeId = "esx.audit.esximage.install.novalidation", 2024-01-19T16:27:22.351Z In(166) Hostd[66557]: --> objectId = "ha-host", 2024-01-19T16:27:22.351Z In(166) Hostd[66557]: --> objectType = "vim.HostSystem", 2024-01-19T16:27:22.351Z In(166) Hostd[66557]: --> } 2024-01-19T16:27:22.351Z In(166) Hostd[66630]: [Originator@6876 sub=Vimsvc.ha-eventmgr] Event 139 : Attempting to install an image profile with validation disabled. This may result in an image with unsatisfied dependencies, file or package conflicts, and potential security violations. 2024-01-19T16:27:22.359Z In(166) Hostd[66609]: [Originator@6876 sub=Hostsvc.VmkVprobSource] VmkVprobSource::Post event: (vim.event.EventEx) { 2024-01-19T16:27:22.359Z In(166) Hostd[66557]: --> key = 143, 2024-01-19T16:27:22.359Z In(166) Hostd[66557]: --> chainId = -1, 2024-01-19T16:27:22.359Z In(166) Hostd[66557]: --> createdTime = "1970-01-01T00:00:00Z", 2024-01-19T16:27:22.359Z In(166) Hostd[66557]: --> userName = "", 2024-01-19T16:27:22.359Z In(166) Hostd[66557]: --> host = (vim.event.HostEventArgument) { 2024-01-19T16:27:22.359Z In(166) Hostd[66557]: --> name = "localhost.localdomain", 2024-01-19T16:27:22.359Z In(166) Hostd[66557]: --> host = 'vim.HostSystem:ha-host' 2024-01-19T16:27:22.359Z In(166) Hostd[66557]: --> }, 2024-01-19T16:27:22.359Z In(166) Hostd[66557]: --> eventTypeId = "esx.audit.esximage.install.nosigcheck", 2024-01-19T16:27:22.359Z In(166) Hostd[66557]: --> objectId = "ha-host", 2024-01-19T16:27:22.359Z In(166) Hostd[66557]: --> objectType = "vim.HostSystem", 2024-01-19T16:27:22.359Z In(166) Hostd[66557]: --> } 2024-01-19T16:27:22.359Z In(166) Hostd[66609]: [Originator@6876 sub=Vimsvc.ha-eventmgr] Event 140 : Attempting to install an image profile bypassing signing and acceptance level verification. This may pose a large security risk. 2024-01-19T16:27:22.540Z In(166) Hostd[66609]: [Originator@6876 sub=Hostsvc.VmkVprobSource] VmkVprobSource::Post event: (vim.event.EventEx) { 2024-01-19T16:27:22.540Z In(166) Hostd[66557]: --> key = 143, 2024-01-19T16:27:22.540Z In(166) Hostd[66557]: --> chainId = -1, 2024-01-19T16:27:22.540Z In(166) Hostd[66557]: --> createdTime = "1970-01-01T00:00:00Z", 2024-01-19T16:27:22.540Z In(166) Hostd[66557]: --> userName = "", 2024-01-19T16:27:22.540Z In(166) Hostd[66557]: --> host = (vim.event.HostEventArgument) { 2024-01-19T16:27:22.540Z In(166) Hostd[66557]: --> name = "localhost.localdomain", 2024-01-19T16:27:22.540Z In(166) Hostd[66557]: --> host = 'vim.HostSystem:ha-host' 2024-01-19T16:27:22.540Z In(166) Hostd[66557]: --> }, 2024-01-19T16:27:22.540Z In(166) Hostd[66557]: --> eventTypeId = "esx.audit.esximage.install.securityalert", 2024-01-19T16:27:22.540Z In(166) Hostd[66557]: --> arguments = (vmodl.KeyAnyValue) [ 2024-01-19T16:27:22.540Z In(166) Hostd[66557]: --> (vmodl.KeyAnyValue) { 2024-01-19T16:27:22.540Z In(166) Hostd[66557]: --> key = "1", 2024-01-19T16:27:22.540Z In(166) Hostd[66557]: --> value = "(Updated) ESXi-8.0U2-22380479-standard" 2024-01-19T16:27:22.540Z In(166) Hostd[66557]: --> }, 2024-01-19T16:27:22.540Z In(166) Hostd[66557]: --> (vmodl.KeyAnyValue) { 2024-01-19T16:27:22.540Z In(166) Hostd[66557]: --> key = "2", 2024-01-19T16:27:22.540Z In(166) Hostd[66557]: --> value = "acceptance level checking disabled" 2024-01-19T16:27:22.540Z In(166) Hostd[66557]: --> } 2024-01-19T16:27:22.540Z In(166) Hostd[66557]: --> ], 2024-01-19T16:27:22.540Z In(166) Hostd[66557]: --> objectId = "ha-host", 2024-01-19T16:27:22.540Z In(166) Hostd[66557]: --> objectType = "vim.HostSystem", 2024-01-19T16:27:22.540Z In(166) Hostd[66557]: --> } 2024-01-19T16:27:22.540Z In(166) Hostd[66609]: [Originator@6876 sub=Vimsvc.ha-eventmgr] Event 141 : SECURITY ALERT: Installing image profile '(Updated) ESXi-8.0U2-22380479-standard' with acceptance level checking disabled.
2024-01-19T16:27:22.966Z In(166) Hostd[66609]: [Originator@6876 sub=Hostsvc.VmkVprobSource] VmkVprobSource::Post event: (vim.event.EventEx) { 2024-01-19T16:27:22.966Z In(166) Hostd[66557]: --> key = 143, 2024-01-19T16:27:22.966Z In(166) Hostd[66557]: --> chainId = -1, 2024-01-19T16:27:22.966Z In(166) Hostd[66557]: --> createdTime = "1970-01-01T00:00:00Z", 2024-01-19T16:27:22.966Z In(166) Hostd[66557]: --> userName = "", 2024-01-19T16:27:22.966Z In(166) Hostd[66557]: --> host = (vim.event.HostEventArgument) { 2024-01-19T16:27:22.966Z In(166) Hostd[66557]: --> name = "localhost.localdomain", 2024-01-19T16:27:22.966Z In(166) Hostd[66557]: --> host = 'vim.HostSystem:ha-host' 2024-01-19T16:27:22.966Z In(166) Hostd[66557]: --> }, 2024-01-19T16:27:22.966Z In(166) Hostd[66557]: --> eventTypeId = "esx.audit.net.firewall.config.changed", 2024-01-19T16:27:22.966Z In(166) Hostd[66557]: --> arguments = (vmodl.KeyAnyValue) [ 2024-01-19T16:27:22.966Z In(166) Hostd[66557]: --> (vmodl.KeyAnyValue) { 2024-01-19T16:27:22.966Z In(166) Hostd[66557]: --> key = "1", 2024-01-19T16:27:22.966Z In(166) Hostd[66557]: --> value = "enable" 2024-01-19T16:27:22.966Z In(166) Hostd[66557]: --> }, 2024-01-19T16:27:22.966Z In(166) Hostd[66557]: --> (vmodl.KeyAnyValue) { 2024-01-19T16:27:22.966Z In(166) Hostd[66557]: --> key = "2", 2024-01-19T16:27:22.966Z In(166) Hostd[66557]: --> value = "esxupdate" 2024-01-19T16:27:22.966Z In(166) Hostd[66557]: --> } 2024-01-19T16:27:22.966Z In(166) Hostd[66557]: --> ], 2024-01-19T16:27:22.966Z In(166) Hostd[66557]: --> objectId = "ha-host", 2024-01-19T16:27:22.966Z In(166) Hostd[66557]: --> objectType = "vim.HostSystem", 2024-01-19T16:27:22.966Z In(166) Hostd[66557]: --> } 2024-01-19T16:27:22.966Z In(166) Hostd[66609]: [Originator@6876 sub=Vimsvc.ha-eventmgr] Event 142 : Firewall configuration has changed. Operation 'enable' for rule set esxupdate succeeded. 2024-01-19T16:27:22.967Z In(166) Hostd[66609]: [Originator@6876 sub=Hostsvc.FirewallSystem] Refreshing ruleset 'esxupdate' status 2024-01-19T16:27:23.160Z In(166) Hostd[66609]: [Originator@6876 sub=Hostsvc.VmkVprobSource] VmkVprobSource::Post event: (vim.event.EventEx) { 2024-01-19T16:27:23.160Z In(166) Hostd[66557]: --> key = 143, 2024-01-19T16:27:23.160Z In(166) Hostd[66557]: --> chainId = 1245184, 2024-01-19T16:27:23.160Z In(166) Hostd[66557]: --> createdTime = "1970-01-01T00:00:00Z", 2024-01-19T16:27:23.160Z In(166) Hostd[66557]: --> userName = "", 2024-01-19T16:27:23.160Z In(166) Hostd[66557]: --> host = (vim.event.HostEventArgument) { 2024-01-19T16:27:23.160Z In(166) Hostd[66557]: --> name = "localhost.localdomain", 2024-01-19T16:27:23.160Z In(166) Hostd[66557]: --> host = 'vim.HostSystem:ha-host' 2024-01-19T16:27:23.160Z In(166) Hostd[66557]: --> }, 2024-01-19T16:27:23.160Z In(166) Hostd[66557]: --> eventTypeId = "esx.audit.net.firewall.config.changed", 2024-01-19T16:27:23.160Z In(166) Hostd[66557]: --> arguments = (vmodl.KeyAnyValue) [ 2024-01-19T16:27:23.160Z In(166) Hostd[66557]: --> (vmodl.KeyAnyValue) { 2024-01-19T16:27:23.160Z In(166) Hostd[66557]: --> key = "1", 2024-01-19T16:27:23.160Z In(166) Hostd[66557]: --> value = "disable" 2024-01-19T16:27:23.160Z In(166) Hostd[66557]: --> }, 2024-01-19T16:27:23.160Z In(166) Hostd[66557]: --> (vmodl.KeyAnyValue) { 2024-01-19T16:27:23.160Z In(166) Hostd[66557]: --> key = "2", 2024-01-19T16:27:23.160Z In(166) Hostd[66557]: --> value = "esxupdate" 2024-01-19T16:27:23.160Z In(166) Hostd[66557]: --> } 2024-01-19T16:27:23.160Z In(166) Hostd[66557]: --> ], 2024-01-19T16:27:23.160Z In(166) Hostd[66557]: --> objectId = "ha-host", 2024-01-19T16:27:23.160Z In(166) Hostd[66557]: --> objectType = "vim.HostSystem", 2024-01-19T16:27:23.160Z In(166) Hostd[66557]: --> } 2024-01-19T16:27:23.160Z In(166) Hostd[66609]: [Originator@6876 sub=Vimsvc.ha-eventmgr] Event 143 : Firewall configuration has changed. Operation 'disable' for rule set esxupdate succeeded. 2024-01-19T16:27:23.161Z In(166) Hostd[66609]: [Originator@6876 sub=Hostsvc.FirewallSystem] Refreshing ruleset 'esxupdate' status 2024-01-19T16:27:23.349Z In(166) Hostd[66609]: [Originator@6876 sub=Hostsvc.VmkVprobSource] VmkVprobSource::Post event: (vim.event.EventEx) { 2024-01-19T16:27:23.349Z In(166) Hostd[66557]: --> key = 143, 2024-01-19T16:27:23.349Z In(166) Hostd[66557]: --> chainId = -757268128, 2024-01-19T16:27:23.349Z In(166) Hostd[66557]: --> createdTime = "1970-01-01T00:00:00Z", 2024-01-19T16:27:23.349Z In(166) Hostd[66557]: --> userName = "", 2024-01-19T16:27:23.349Z In(166) Hostd[66557]: --> host = (vim.event.HostEventArgument) { 2024-01-19T16:27:23.349Z In(166) Hostd[66557]: --> name = "localhost.localdomain", 2024-01-19T16:27:23.349Z In(166) Hostd[66557]: --> host = 'vim.HostSystem:ha-host' 2024-01-19T16:27:23.349Z In(166) Hostd[66557]: --> }, 2024-01-19T16:27:23.349Z In(166) Hostd[66557]: --> eventTypeId = "esx.problem.esximage.install.stage.error", 2024-01-19T16:27:23.349Z In(166) Hostd[66557]: --> arguments = (vmodl.KeyAnyValue) [ 2024-01-19T16:27:23.349Z In(166) Hostd[66557]: --> (vmodl.KeyAnyValue) { 2024-01-19T16:27:23.349Z In(166) Hostd[66557]: --> key = "1", 2024-01-19T16:27:23.349Z In(166) Hostd[66557]: --> value = "(Updated) ESXi-8.0U2-22380479-standard" 2024-01-19T16:27:23.349Z In(166) Hostd[66557]: --> }, 2024-01-19T16:27:23.349Z In(166) Hostd[66557]: --> (vmodl.KeyAnyValue) { 2024-01-19T16:27:23.349Z In(166) Hostd[66557]: --> key = "2", 2024-01-19T16:27:23.349Z In(166) Hostd[66557]: --> value = "virtuallyGhetto_bootbank_ghettoVCB_1.0.0-0.0.0: Can not open /var/vmware/lifecycle/stageliveimage/data/payload1.t00 to write payload payload1: [Errno 2] No such file or directory: '/var/vmware/lifecycle/stageliveimage/data/payload1.t00'" 2024-01-19T16:27:23.349Z In(166) Hostd[66557]: --> } 2024-01-19T16:27:23.349Z In(166) Hostd[66557]: --> ], 2024-01-19T16:27:23.349Z In(166) Hostd[66557]: --> objectId = "ha-host", 2024-01-19T16:27:23.349Z In(166) Hostd[66557]: --> objectType = "vim.HostSystem", 2024-01-19T16:27:23.349Z In(166) Hostd[66557]: --> } 2024-01-19T16:27:23.349Z In(166) Hostd[66609]: [Originator@6876 sub=Vimsvc.ha-eventmgr] Event 144 : Could not stage image profile '(Updated) ESXi-8.0U2-22380479-standard': virtuallyGhetto_bootbank_ghettoVCB_1.0.0-0.0.0: Can not open /var/vmware/lifecycle/stageliveimage/data/payload1.t00 to write payload payload1: [Errno 2] No such file or directory: '/var/vmware/lifecycle/stageliveimage/data/payload1.t00' 2024-01-19T16:27:23.506Z In(166) Hostd[66629]: [Originator@6876 sub=Solo.VmwareCLI opID=esxcli-c3-fce4 sid=529664cd user=root] Dispatch software.vib.install done 2024-01-19T16:27:23.506Z In(166) Hostd[66629]: [Originator@6876 sub=Solo.VmwareCLI opID=esxcli-c3-fce4 sid=529664cd user=root] Dispatch software.vib.install failed
2024-01-19T16:27:23.507Z In(166) Hostd[66629]: [Originator@6876 sub=AdapterServer opID=esxcli-c3-fce4 sid=529664cd user=root] AdapterServer caught exception; <<529664cd-67d3-90b5-eb61-624fd7c804d9, <TCP '127.0.0.1 : 8307'>, <TCP '127.0.0.1 : 11803'>>, ha-cli-handler-software-vib, vim.EsxCLI.software.vib.install, <vim.version.version9, internal, 5.5>, [N11HostdCommon18VmomiAdapterServer19ActivationResponderE:0x0000008fd731a4d8]>, N5Vmomi18DynamicMethodFault9ExceptionE(Fault cause: vim.EsxCLI.CLIFault
2024-01-19T16:27:23.508Z In(166) Hostd[66557]: --> ) 2024-01-19T16:27:23.508Z In(166) Hostd[66557]: --> [context]zKq7AVICAgAAAP////8LaG9zdGQAAANZQWxpYnZtYWNvcmUuc28AAW9wHWxpYnZtb21pLnNvAAF3yg4C8E9WaG9zdGQAArM5iwLv/1YAjjEoALBMKABL2UkDgnoAbGlicHRocmVhZC5zby4wAATvLg9saWJjLnNvLjYA[/context] 2024-01-19T16:27:23.508Z In(166) Hostd[66629]: [Originator@6876 sub=Solo.Vmomi opID=esxcli-c3-fce4 sid=529664cd user=root] Activation finished; <<529664cd-67d3-90b5-eb61-624fd7c804d9, <TCP '127.0.0.1 : 8307'>, <TCP '127.0.0.1 : 11803'>>, ha-cli-handler-software-vib, vim.EsxCLI.software.vib.install, <vim.version.version9, internal, 5.5>, [N11HostdCommon18VmomiAdapterServer19ActivationResponderE:0x0000008fd731a4d8]> 2024-01-19T16:27:23.508Z Db(167) Hostd[66629]: [Originator@6876 sub=Solo.Vmomi opID=esxcli-c3-fce4 sid=529664cd user=root] Arg depot: 2024-01-19T16:27:23.508Z Db(167) Hostd[66557]: --> (string) [] 2024-01-19T16:27:23.508Z Db(167) Hostd[66629]: [Originator@6876 sub=Solo.Vmomi opID=esxcli-c3-fce4 sid=529664cd user=root] Arg dryrun: 2024-01-19T16:27:23.508Z Db(167) Hostd[66557]: --> (null) 2024-01-19T16:27:23.508Z Db(167) Hostd[66629]: [Originator@6876 sub=Solo.Vmomi opID=esxcli-c3-fce4 sid=529664cd user=root] Arg force: 2024-01-19T16:27:23.508Z Db(167) Hostd[66557]: --> true 2024-01-19T16:27:23.508Z Db(167) Hostd[66629]: [Originator@6876 sub=Solo.Vmomi opID=esxcli-c3-fce4 sid=529664cd user=root] Arg maintenancemode: 2024-01-19T16:27:23.508Z Db(167) Hostd[66557]: --> (null) 2024-01-19T16:27:23.508Z Db(167) Hostd[66629]: [Originator@6876 sub=Solo.Vmomi opID=esxcli-c3-fce4 sid=529664cd user=root] Arg noliveinstall: 2024-01-19T16:27:23.508Z Db(167) Hostd[66557]: --> (null) 2024-01-19T16:27:23.508Z Db(167) Hostd[66629]: [Originator@6876 sub=Solo.Vmomi opID=esxcli-c3-fce4 sid=529664cd user=root] Arg nosigcheck: 2024-01-19T16:27:23.508Z Db(167) Hostd[66557]: --> (null) 2024-01-19T16:27:23.508Z Db(167) Hostd[66629]: [Originator@6876 sub=Solo.Vmomi opID=esxcli-c3-fce4 sid=529664cd user=root] Arg proxy: 2024-01-19T16:27:23.508Z Db(167) Hostd[66557]: --> (null) 2024-01-19T16:27:23.508Z Db(167) Hostd[66629]: [Originator@6876 sub=Solo.Vmomi opID=esxcli-c3-fce4 sid=529664cd user=root] Arg vibname: 2024-01-19T16:27:23.508Z Db(167) Hostd[66557]: --> (string) [] 2024-01-19T16:27:23.508Z Db(167) Hostd[66629]: [Originator@6876 sub=Solo.Vmomi opID=esxcli-c3-fce4 sid=529664cd user=root] Arg viburl: 2024-01-19T16:27:23.508Z Db(167) Hostd[66557]: --> (string) [ 2024-01-19T16:27:23.508Z Db(167) Hostd[66557]: --> "/tmp/vghetto-ghettoVCB.vib" 2024-01-19T16:27:23.508Z Db(167) Hostd[66557]: --> ] 2024-01-19T16:27:23.508Z In(166) Hostd[66629]: [Originator@6876 sub=Solo.Vmomi opID=esxcli-c3-fce4 sid=529664cd user=root] Throw vim.EsxCLI.CLIFault 2024-01-19T16:27:23.508Z In(166) Hostd[66629]: [Originator@6876 sub=Solo.Vmomi opID=esxcli-c3-fce4 sid=529664cd user=root] Result: 2024-01-19T16:27:23.508Z In(166) Hostd[66557]: --> (vim.EsxCLI.CLIFault) { 2024-01-19T16:27:23.508Z In(166) Hostd[66557]: --> errMsg = (string) [ 2024-01-19T16:27:23.508Z In(166) Hostd[66557]: --> " [InstallationError]", 2024-01-19T16:27:23.508Z In(166) Hostd[66557]: --> " Can not open /var/vmware/lifecycle/stageliveimage/data/payload1.t00 to write payload payload1: [Errno 2] No such file or directory: '/var/vmware/lifecycle/stageliveimage/data/payload1.t00'", 2024-01-19T16:27:23.508Z In(166) Hostd[66557]: --> " cause = Can not open /var/vmware/lifecycle/stageliveimage/data/payload1.t00 to write payload payload1: [Errno 2] No such file or directory: '/var/vmware/lifecycle/stageliveimage/data/payload1.t00'", 2024-01-19T16:27:23.508Z In(166) Hostd[66557]: --> " vibs = ['virtuallyGhetto_bootbank_ghettoVCB_1.0.0-0.0.0']", 2024-01-19T16:27:23.508Z In(166) Hostd[66557]: --> " Please refer to the log file for more details." 2024-01-19T16:27:23.508Z In(166) Hostd[66557]: --> ], 2024-01-19T16:27:23.508Z In(166) Hostd[66557]: --> msg = "", 2024-01-19T16:27:23.508Z In(166) Hostd[66557]: --> } 2024-01-19T16:27:23.516Z In(166) Hostd[66603]: [Originator@6876 sub=Vimsvc.ha-eventmgr opID=esxcli-c3-fce5 sid=529664cd user=root] Event 145 : User root@127.0.0.1 logged out (login time: Friday, 19 January, 2024 04:27:19 PM, number of API invocations: 7, user agent: pyvmomi Python/3.8.15 (VMkernel; 8.0.2; x86_64))
Okay after testing this on multiple different ESXi 8.x versions I found the root cause: not enough memory available on ESXi. Seems like installing a VIB allocates quite alot of memory for a temp. RAMDISK. I've been testing on different ESXi 8.0 versions running ESXi in vmware workstation locally for testing, with 4 GB of memory this resulted in:
After increasing the memory of the ESXi to 6GB the vib could be installed. Leaving this here for anyone to stumble into the same issue. Closing.
So, with 8.0 the new packageing using
ar
seems to produce a working vib. Trying to install the same vib on 8.0U2 build 22380479 however this results in aInstallationError
. It should be supported looking at https://github.com/lamw/ghettoVCB/pull/305 thought.Steps to reproduce:
/tmp/
on the ESXiesxcli software vib install -v /tmp/vghetto-ghettoVCB.vib -f
Expected behaviour:
Actual behaviour: