#99 hostfwd doesn't work for newest rhel/fedora versions.
Closed: Fixed 3 years ago by frantisekz. Opened 3 years ago by rhack.

In file:
/usr/lib/python3.9/site-packages/testcloud/instance.py
there is

   465                     ["-netdev", "user,id=testcloud_net.{},hostfwd=tcp::{}-:22".format(port, port),
   466                     "-device", "e1000,netdev=testcloud_net.{}".format(port)])
    467             self.create_port_file(port)

which is not visible in rhel8 plus one version. So basically this is ignored in newest rhel versions.

Proposed solution

   466                     "-device", "virtio-net-pci,netdev=testcloud_net.{}".format(port)])
    467             self.create_port_file(port)

But this proposed solution needs to be tested on old rhel/fedora versions.


Metadata Update from @frantisekz:
- Issue assigned to frantisekz

3 years ago

So, this doesn't work in CentOS 7 unless I install NetworkManager and start that service.

I am planning to approach this via libguestfs inspect api for CentOS and RHEL and if they're version 7 or less, use the e1000 and otherwise virtio-net-pci .

Log in to comment on this ticket.

Metadata
Related Pull Requests
  • #101 Merged 3 years ago