Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
miguerus opened this issue Sep 6, 2022 · 10 comments
Closed

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

miguerus opened this issue Sep 6, 2022 · 10 comments

Comments

@miguerus
Copy link

miguerus commented Sep 6, 2022

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.

@miguerus miguerus changed the title Desktop VM is not up when I change value webhost at hypervisor configuration I can't change the IP of the Hypervisor Sep 6, 2022
@jvinolas
Copy link
Contributor

jvinolas commented Sep 6, 2022

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
Copy link
Author

miguerus commented Sep 6, 2022

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
Copy link
Contributor

jvinolas commented Sep 6, 2022

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
Copy link
Author

miguerus commented Sep 7, 2022

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
Copy link
Contributor

jvinolas commented Sep 7, 2022

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
Copy link
Author

miguerus commented Sep 7, 2022

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
Copy link
Contributor

jvinolas commented Sep 7, 2022

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

@miguerus
Copy link
Author

miguerus commented Sep 7, 2022

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
Copy link
Contributor

jvinolas commented Sep 7, 2022

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.

@jvinolas
Copy link
Contributor

Feel free to reopen it at gitlab.

Issues from now on will only be held at https://gitlab.com/isard/isardvdi/-/issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants