ravada icon indicating copy to clipboard operation
ravada copied to clipboard

Can't start Ravada VM with IPv6 only.

Open ph0llux opened this issue 1 year ago • 3 comments

Describe the bug I've tried to start a virtual machine using Ravada on an IPv6-only server. If I try to start the machine, this error occured.

To Reproduce Steps to reproduce the behavior:

  1. replace the appropriate listener at /etc/rvd_front.conf with listen => ['http://[::]:8081']
  2. Login to Ravada web
  3. create a virtual machine (e.g. Windows 11)
  4. Try to start the machine

Expected behavior Start the virtual machine

Screenshots

Server (please complete the following information):

  • OS: Ubuntu 22.04
  • Ravada Version 2.1.0

Client (please complete the following information):

  • Browser: - Browser Firefox
  • OS: Fedora 38

Additional context There is an additional error log message:

Jul 19 13:21:58 server rvd_front[107109]: [2023-07-19 13:21:58.49419] [107109] [error] [4WeEWF9urPGf] Error: remote ip invalid 'fd00:fffe::2' at /usr/share/perl5/Ravada/Request.pm line 446.
Jul 19 13:21:58 server rvd_front[107109]:         Ravada::Request::start_domain("Ravada::Request", "uid", 3, "id_domain", 2, "remote_ip", "fd00:fffe::2", "enable_host_devices", ...) called at /usr/sbin/rvd_front line 3330

The address fd00:fffe::2 is the appropriate address of my Fedora client.

ph0llux avatar Jul 19 '23 13:07 ph0llux

Hm, I've noticed that other things also not works with ipv6 only - the itself VM runs, but can't be connected via spice:

Bildschirmfoto vom 2023-07-19 16-36-23

ph0llux avatar Jul 19 '23 14:07 ph0llux

Great you found it. Trying to build IPV6 may need more work. It is a pretty interesting project though and it would be nice to complete it.

In the specific part you found the crash, you have to know that Ravada relies heavily on iptables for security reasons. So first we need to make it work too. I have never used ipv6 but if you are willing to work on it I will give you all the assistance that I can.

frankiejol avatar Jul 19 '23 14:07 frankiejol

Thank you for offering assistance. Tomorrow, I will open a new issue as a "collection thread" to discuss IPv6 support. As far as I have seen so far, there are unfortunately more construction sites. I will try my best to address these.

ph0llux avatar Jul 19 '23 19:07 ph0llux