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

    Simulating network cable disconnect

    Xen Orchestra
    3
    6
    171
    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.
    • A
      ashinobi
      last edited by

      Hi, Everyone.

      Does XCP-NG or Xen Orchestra have an option to simulate a network cable disconnect? Because in Xen Orchestra, if I go to the VM Guest and go to the network tab and press disconnect on the VIF. It removes the network interface on the VMGuest, so any software that requires a network interface (in my case wireshark), the software just errors out or won't work.

      1 Reply Last reply Reply Quote 0
      • splastunovS
        splastunov
        last edited by

        xe vif-unplug uuid=[vif_uuid]
        

        or use XenCenter and on Network tab press button Deactivate

        1 Reply Last reply Reply Quote 0
        • olivierlambertO
          olivierlambert Vates 🪐 Co-Founder🦸 CEO 🧑‍💼
          last edited by olivierlambert

          IIRC, vif-unplug is exactly the same as "Disconnect" in XO. You might be better to use ovs commands to stop traffic without the guest knowing.

          A 1 Reply Last reply Reply Quote 0
          • A
            ashinobi @olivierlambert
            last edited by

            @olivierlambert

            thanks for the reply, I am trying to check the ovs command and what would be the best parameter to use to simulate this.

            Also if possible maybe this can be added as feature request in future release for XO. This will help when trying to do some test on certain application and also for studies (like in my case trying to learn wireshark). This is a great to have feature.

            1 Reply Last reply Reply Quote 0
            • olivierlambertO
              olivierlambert Vates 🪐 Co-Founder🦸 CEO 🧑‍💼
              last edited by

              OVS API isn't exposed in XAPI, so the answer is no. You can have however use the SDN features of XO or use allowed IP to artificially block it.

              A 1 Reply Last reply Reply Quote 0
              • A
                ashinobi @olivierlambert
                last edited by

                @olivierlambert

                Thanks for sharing that information.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post