added KVM physical server nowhere to be found

Host systems -> KVM hosts systems

lists the main host where Cloudmin is installed. Below it says:

"Add possible host systems have already been added. Use the Add Physical System page to register additional hosts."

I clicked on "Add Physical System" and added another KVM host (minimal centos without webmin, or cloudmin) using SSH with username password and port. The result was:

Checking SSH login .. .. logged in OK.

Fetching current status .. .. status successfully retrieved (SSH)

But this new host is nowhere to be found. And when we try to create a new VM on this host we see that it is not in the host list on "Host and networking options" of

New System -> Create KVM image

Status: 
Closed (fixed)

Comments

It went to webmin servers index. But it is not useful there as what we want is to create KVM instances on that host.

If you reload the page, does that physical system show up in the drop-down on the left frame?

No, it does not appear. Only the host were Cloudmin is installed and the 2 VMs that are currently running there appear on the drop-down box.

If you re-try adding it, does it appear on the 2nd attempt?

No, I only get a duplicated entry on Webmin Servers Index.

On your system, take a look in the directory /etc/webmin/servers for the .serv file that corresponds to the system you added - it should have a host= line that contains the hostname. Then post the full contents of that file here ... that should reveal why Cloudmin isn't seeing it.

Here are the two entries generated by my trial:

xen_wholedisk=0
ssh_user=root
ip=X.Y.Z.Z
missing=0
ssh_port=3333
group=
desc=terminalserver instalado na sede
novirt=
no_webmin_login=1
id=140172391659350
module=server-manager
ssh_pass=CHANGEME
ssl=1
port=10000
manager=real
host=ZZZZZZ.angulosolido.pt
created=1401723916
ip_addresses=192.168.1.7
ssh_protocol=2
ssh_pass_same=0
short_host=ZZZZZZZZ.angulosolido.pt
type=centos
ssh_nologin=0
statuslast=
root_shell=/bin/bash
status_msg=Webmin login disabled
ip6_addresses=
mac_addresses=1C:6F:65:B3:2D:59 00:22:2D:C1:85:AF
status=nowebmin status_hostkey=0 unix_hostname=terminalserver01 statuslasttime=1401723917 statustime=1401723923

xen_wholedisk=0 ssh_user=root ip=X.Y.Z.Z missing=0 ssh_port=3333 group= desc=terminalserver sede novirt= no_webmin_login=1 id=140172405761140 module=server-manager ssh_pass=CHANGEME ssl=1 port=10000 manager=real host=ZZZZ.angulosolido.pt created=1401724057 ip_addresses=192.168.1.7 ssh_protocol=2 ssh_pass_same=0 short_host=ZZZZZ.angulosolido.pt type=centos ssh_nologin=0 statuslast= root_shell=/bin/bash status_msg=Webmin login disabled ip6_addresses= mac_addresses=1C:6F:65:B3:2D:59 00:22:2D:C1:85:AF status=nowebmin status_hostkey=0 unix_hostname=terminalserver01 statuslasttime=1401724057 statustime=1401724063

That looks OK.

In your /etc/webmin/server-manager/config file , do you have the line real=1 ?

Here's all the real we have:

[support@vmserver02 ~]$ cat /etc/webmin/server-manager/config |grep real show_real=0 [support@vmserver02 ~]$

Try changing that to show_real=1 . I am guessing that on the Cloudmin Configuration page, you changed "Can manage real systems?" to "No".

I don't remember but I might have done it while disabling all type of guests I didn't want. It would make sense to have a better check for this situation, or even preventing adding the system if show_real=0.

Now it appears correctly once I changed "Can manage real systems?" to "No".

I'll move on to creating guests and check if it works as expected.

Thanks for the help.

Ok, that explains it - also, there is a Cloudmin bug here in that you shouldn't be able to get into this state. I'll fix that in the next release.

Automatically closed -- issue fixed for 2 weeks with no activity.