See the list of interfaces on which tcpdump can listen:
tcpdump -D
Listen on interface eth0:
tcpdump -i eth0
Listen on any available interface (cannot be done in promiscuous mode. Requires Linux kernel 2.2 or greater):
tcpdump -i any
Be verbose while capturing packets:
tcpdump -v
Be more verbose while capturing packets:
tcpdump -vv
Be very verbose while capturing packets:
tcpdump -vvv
Be verbose and print the data of each packet in both hex and ASCII, excluding the link level Read more...
Archives
All posts by Carlos Villabrille
I'm adding this because some day I will need it... again.
Sometimes you get an incorrect matching of ethernet device numbers and MAC addresses. Sometimes this is really important, like when running in a VM and each device is assigned to a different VLAN.
Steps to follow to solve or minimize this
Bring the network interfaces down, then
modify /etc/udev/rules.d/70-persistent-net.rules (or its equivalent)
re-load with udevadm control --reload-rules and finally
re-trigger with udevadm Read more...
1. First, you have to determine the Storage-Repository-UUID:
xe sr-list
-> write down / take note of SR-UUID of the SR to delete
2. Find the corresponding Physical Block Device (PBD):
xe pbd-list sr-uuid=your-SR-uuid
-> write down / take note of PBD-UUID of the PBD to unplug and delete
3. Unplug the PBD:
xe pbd-unplug uuid=your-PBD-uuid
4. Delete PBD:
xe pbd-destroy uuid=your-PBD-uuid
5. Delete the association of your SR and the PBD:
xe sr-forget uuid=your-SR-uuid
Example
[root@XenXourceServer Read more...
This script will make an export of all running machines in a XEN Source host and will be saved as .xva file.
This script mount a NFS shared resource (you can comment that part and use a local folder only).
This is the script I use for backing up my running Virtual machines each week.
#!/bin/bash
#
# Re-written by: Carlos V
#
#
DATE=`date +%d%B%y`
XSNAME=`echo $HOSTNAME` #This is the host where the script will run
BKPFOLDER=/mnt/exporta #folder to mount the NFS external exported Read more...
It is important to note there is a correlation between all the parameters
Memory limits must satisfy:
static_min ≤ dynamic_min = dynamic_max = static_max
To modify the memory configuration for a Virtual machine in XEN through the cli commands you will have to stop the server
# xe vm-shutdown name-label="machine name"
Review the current memory configuration with
# xe vm-list params=all name-label="machine name" | grep memory
you have to find the uuid of the machine, that can be showed Read more...