Hi,
I recently started managing VMs on a VMware compute resource via Foreman,
and I still have some issues to solve, which I didn't have when using KVM.
First of all, Foreman cannot open the VM console, returning "Failed to
connect to server" on Chrome and "Connect timeout" on Firefox.
I've been told there's no active firewall on the VMware host.
The client/browser machine can connect to the Foreman machine, and the
Foreman machine can connect to the VMware host.
This is the kind of command line I can see generated on the Foreman machine:
/usr/bin/python /usr/share/foreman/extras/noVNC/websockify.py --daemon
–idle-timeout=120 --timeout=120 5911 vmware-factory1.mydomain:5920
"vmware-factory1.mydomain" is actually the cluster/container in VMware
where the VM resides, and it resolves to the IP address of the VMware
machine.
I can't seem to find the corresponding listening open port (5920) in the
VMware host or in the VM, so I'm still a bit confused on how this all works
with the VMware computer resource: how does Foreman know which port it must
connect to? And does it connect to the virtual machine directly, or does it
go through the VMware host which in turn forwards the connection to the VM?
Also, asking Foreman to build again an existing host does not work: I see
no errors in the Foreman GUI, everything looks like it will work, but then
the VM reboots normally inside the already installed OS, the rebuild does
not happen.
In the proxy log I find lines like these:
E, [2014-04-28T10:48:03.327922 #25560] ERROR – : [704] 2014-04-28 10:48:03
URL: ftp://myrepository.mydomain/RHEL63/images/pxeboot/initrd.img
[30442765] -> "/var/lib/tftpboot//boot/RedHat-6.3-x86_64-initrd.img" [1]
E, [2014-04-28T10:48:03.328770 #25560] ERROR – : [1358] 2014-04-28
10:48:03 URL: ftp://myrepository.mydomain/RHEL63/images/pxeboot/vmlinuz
[3986992] -> "/var/lib/tftpboot//boot/RedHat-6.3-x86_64-vmlinuz" [1]
Do they indicate anything unusual? The two destination files already exist
after all, they do not need to be copied again.
Do they really need to be copied again for the re-build process to start?
Thanks for any info.
Marco