Simulating network cable disconnect
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.
xe vif-unplug uuid=[vif_uuid]
or use XenCenter and on
Networktab press button
vif-unplugis exactly the same as "Disconnect" in XO. You might be better to use ovs commands to stop traffic without the guest knowing.
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.
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.
Thanks for sharing that information.