XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    [TUTORIAL] - Ajustanto NIC para a virtualização do pfSense.

    Scheduled Pinned Locked Moved Portuguese (Português)
    4 Posts 3 Posters 3.9k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • heliton.martinsH Offline
      heliton.martins
      last edited by heliton.martins

      Há algum tempo atrás, tive a necessidade de virtualizar um pfSense (leve em consideração que não é uma boa prática). Porem após instalar tive alguns problemas de instabilidade na NIC. Para resolver a lentidão/instabilidade efetuei o procedimento abaixo.

      1 - Encontre a VM do pfSense:
      xe vm-list

      2 - Liste as VIFS da VM:
      xe vm-vif-list uuid=VMUUID
      uuid ( RO) : ***VIFUUID1***
      vm-name-label ( RO): VMNAME
      network-name-label ( RO): NETWORK 1
      uuid ( RO) : ***VIFUUID2***
      vm-name-label ( RO): VMNAME
      network-name-label ( RO): NETWORK 2

      3 - Defina uma variável para as VIFS:
      VIFUUID="VIFUUID1"

      4 - Verifique a saída variável:
      echo "${VIFUUID1}"

      5 - Desative as configurações de offload:
      xe vif-param-set uuid=VIFUUID other-config:ethtool-gso="off"
      xe vif-param-set uuid=VIFUUID other-config:ethtool-ufo="off"
      xe vif-param-set uuid=VIFUUID other-config:ethtool-tso="off"
      xe vif-param-set uuid=VIFUUID other-config:ethtool-sg="off"
      xe vif-param-set uuid=VIFUUID other-config:ethtool-tx="off"
      xe vif-param-set uuid=VIFUUID other-config:ethtool-rx="off"

      6 - Repita os passos para a network 2:
      VIFUUID="VIFUUID2"

      7 - Verifique a saída variável:
      echo "${VIFUUID2}"

      8 - Desative as configurações de offload:
      xe vif-param-set uuid=VIFUUID other-config:ethtool-gso="off"
      xe vif-param-set uuid=VIFUUID other-config:ethtool-ufo="off"
      xe vif-param-set uuid=VIFUUID other-config:ethtool-tso="off"
      xe vif-param-set uuid=VIFUUID other-config:ethtool-sg="off"
      xe vif-param-set uuid=VIFUUID other-config:ethtool-tx="off"
      xe vif-param-set uuid=VIFUUID other-config:ethtool-rx="off"

      9 - Desligue e Ligue a VM novamente

      Vale ressaltar que esta não é a melhor prática, mas caso precise virtualizar o pfSense use este procedimento por sua conta em risco.

      1 Reply Last reply Reply Quote 1
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Hi!

        A quick tip: use Markdown syntax for command blocks. Like this:

        ```
        xe foo-bar uuid
        ```
        

        This will display this:

        xe foo-bar uuid
        
        heliton.martinsH 1 Reply Last reply Reply Quote 0
        • _danielgurgel_ Offline
          _danielgurgel
          last edited by

          Boa dica! 🙂

          1 Reply Last reply Reply Quote 0
          • heliton.martinsH Offline
            heliton.martins @olivierlambert
            last edited by

            @olivierlambert said in [TUTORIAL] - Ajustanto NIC para a virtualização do pfSense.:

            ks. Like

            Thanks for the tip.

            1 Reply Last reply Reply Quote 0
            • F felipefonsecabh referenced this topic on

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post