isard-vdi / isard

Isard VDI. Open Source KVM Virtual Desktops based on KVM Linux and dockers. Please use https://gitlab.com/isard/isardvdi
http://www.isardvdi.com
GNU Affero General Public License v3.0
188 stars 57 forks source link

I can't change the IP of the Hypervisor #429

Open miguerus opened 1 year ago

miguerus commented 1 year ago

Well, I solved the Hypervisor problem that restarted my entire installation. The problem I have now is that I cannot connect to any viewer, since the Hypervisor appears to me as "localhost" and when I want to change the IP so that the viewers can find it, when I click ok and restart the isard-engine it returns to the value default. I can't connect neither with Spice nor with RDP (they remain with the wheel turning), with nothing it connects. Is there something I need to enable in order to make the change?

Thank you very much.

jvinolas commented 1 year ago

The viewers set automatically when hypervisor is autoregistering will be set to what it is set at https://gitlab.com/isard/isardvdi/-/blob/main/isardvdi.cfg.example#L40

By default it is localhost. You should set there your server IP or your DNS domain name reacheable from other hosts.

miguerus commented 1 year ago

I have tried to do that, but it doesn't work, the Hypervisor always returns to "localhost", if I do it from the web. And if I change the domain in isardvdi.cfg it also remains the same.

jvinolas commented 1 year ago

After making any change to your isardvdi.cfg (the copy of isardvdi.cfg.example) you have to:

  1. ./build.sh (to recreate the docker-compose.yml based on those variables)
  2. docker-compose up -d (to recreate containers which variables changed)

I've just updated this in documentation

miguerus commented 1 year ago

Thank you very much, it worked. But as it happens in this type of thing, when something is solved a new problem appears. Every time I try to start an installation of a VM (whether on windows or linux, it's the same), when I open the viewer it starts consuming memory and restarts the entire operating system. If I try to use Spice it does not enter the desktop and everything hangs, and if it is through the web browser, the same inconvenience. I am using an Ubuntu Server 22.04 as host OS, 16GB Ram and 300GB HD, any suggestions? Thanks.

jvinolas commented 1 year ago

Well, with 16GB I don't know how many RAM are you assigning to your IsardVDI VM desktop, but allow for at least 2/3GB free, so set at much your VM to 13GB, but should be fine with 8GB usually if this computer is not consuming more ram with other processes.

It does not make sense that it hungs when opening the viewer. We are using thin clients like raspberrypi and start VMs of 4GB in our development laptop (8GB) without any problem.

miguerus commented 1 year ago

Ubuntu is a VM mounted on an XCP-NG server, and it has the specs I listed above. The VM with Ubuntu is with active nested virtualization, so there should be no problem on that side. The amount of memory allocated to the IsardVdi VM is 4GB and a disk is 80GB. With all those specifications it generates that error.

jvinolas commented 1 year ago

Check dmesg and journalctl/syslog log messages when it crashes. There should be some kind of os/virtualization error.

miguerus commented 1 year ago

I discovered what was the problem. On one VM on IsardVdi had selected 2 networks at the same time. That cause the problem to reboot the Ubuntu host. Now I`ll try to solve the problem of the booting device, cus I select the ISO of the OS and the ISO of the drivers (virtio ISO drivers) but when the VM boots, only appear "not bootable device".

jvinolas commented 1 year ago

Have you set boot to 'cd/dvd' instead of 'hard disk' when editing the new desktop?

Also check that the first iso set is the one with the OS.