How to capture network trace for a XenServer VM while booting up ?

How to capture network trace for a XenServer VM while booting up ?

book

Article ID: CTX217665

calendar_today

Updated On:

Description

In order to troubleshoot issues related to TFTP or DHCP, we may need to capture network traces during initial VM bootup. As Virtual interface is not loaded during initial bootup phase of VM, we need to capture trace on the tap device


Instructions

  1. Download the attached getdump.sh script to /root folder on XenServer
 
  1. SSH into XenServer Console and provide execute permission for the script

                    #chmod 777 /root/getdump.sh

   3)    Get the UUID of VM

               # xe vm-list name-label=<NAME OF VM> params=uuid

 

   4)    Make sure the VM is in shutdown state before running the script. The script will start the VM and     attaches the tcpdump process to the correct tap device

 

  5)    Run the script passing the UUID in step 3 as argument

               #./getdump.sh <UUID in step3>

 

The pcap file will be captured under the present working directory as in format dump$(date +%Y%m%d).pcap

 

Note : The script need to be run in the same host as where the VM is started

Environment

This software application is provided to you as is with no representations, warranties or conditions of any kind. You may use and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that: (a) the software application may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the software application fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the software application. In no event should the software application be used to support ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SOFTWARE APPLICATION, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the software application.