Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bigben80/b761b060700b7f56457d to your computer and use it in GitHub Desktop.
Save bigben80/b761b060700b7f56457d to your computer and use it in GitHub Desktop.
#################################################################################################
### Whole VM information #####
#################################################################################################
[root@xenserver-xwjzmkiq ~]# xenstore-ls /local/domain/2
vm = "/vm/a5ce2775-be7a-4529-9154-bad8b0f50083"
name = "rumprun-netcat.bin"
cpu = ""
0 = ""
availability = "online"
memory = ""
static-max = "65536"
target = "65537"
videoram = "-1"
device = ""
suspend = ""
event-channel = ""
vif = ""
0 = ""
backend = "/local/domain/0/backend/vif/2/0"
backend-id = "0"
state = "4"
handle = "0"
mac = "00:16:3e:07:04:4a"
tx-ring-ref = "2047"
rx-ring-ref = "2046"
event-channel = "4"
feature-no-csum-offload = "1"
request-rx-copy = "1"
control = ""
shutdown = ""
platform-feature-multiprocessor-suspend = "1"
platform-feature-xs_reset_watches = "1"
data = ""
domid = "2"
store = ""
port = "1"
ring-ref = "325326"
console = ""
backend = "/local/domain/0/backend/console/2/0"
backend-id = "0"
limit = "1048576"
type = "xenconsoled"
output = "pty"
tty = "/dev/pts/2"
port = "2"
ring-ref = "325325"
rumprun = ""
cfg = " {, \n\t"net" : {, \n\t\t"if":\t\t"xenif0", \n\t\t"cloner":\t"true", \n\t\t"type":\t"inet", \n\t\t"method":\t"static", \n\t\t"addr":\t"10.0.120.120", \n\t\t"mask":\t"24", \n\t}, \n\t"blk" : {, \n\t\t"source":\t"dev", \\..."
#################################################################################################
### Backend #####
#################################################################################################
[root@xenserver-xwjzmkiq ~]# xenstore-ls /local/domain/0/backend/vif/2/0
frontend = "/local/domain/2/device/vif/0"
frontend-id = "2"
online = "1"
state = "4"
script = "/etc/xen/scripts/vif-bridge"
mac = "00:16:3e:07:04:4a"
bridge = "xenbr0"
handle = "0"
type = "vif"
feature-sg = "1"
feature-gso-tcpv4 = "1"
feature-gso-tcpv6 = "1"
feature-ipv6-csum-offload = "1"
feature-rx-copy = "1"
feature-rx-flip = "0"
feature-split-event-channels = "1"
hotplug-error = "Failed to read /xapi/2/private/vif/0/MTU"
hotplug-status = "connected"
#################################################################################################
### Frontend #####
#################################################################################################
[root@xenserver-xwjzmkiq ~]# xenstore-ls /local/domain/2/device/vif/0
backend = "/local/domain/0/backend/vif/2/0"
backend-id = "0"
state = "4"
handle = "0"
mac = "00:16:3e:07:04:4a"
tx-ring-ref = "2047"
rx-ring-ref = "2046"
event-channel = "4"
feature-no-csum-offload = "1"
request-rx-copy = "1"
#################################################################################################
### The VIF device has "NO-CARRIER" #####
#################################################################################################
[root@xenserver-xwjzmkiq ~]# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master xenbr0 state UNKNOWN mode DEFAULT qlen 1000
link/ether 08:00:27:53:96:8e brd ff:ff:ff:ff:ff:ff
3: xenbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT
link/ether 08:00:27:53:96:8e brd ff:ff:ff:ff:ff:ff
5: vif2.0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast master xenbr0 state DOWN mode DEFAULT qlen 32
link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
#################################################################################################
### Do ping, there's no packet go through vif device #####
#################################################################################################
[root@xenserver-xwjzmkiq ~]# ping -I vif2.0 10.0.120.120 -c 3
PING 10.0.120.120 (10.0.120.120) from 147.214.118.96 vif2.0: 56(84) bytes of data.
From 147.214.118.96 icmp_seq=1 Destination Host Unreachable
From 147.214.118.96 icmp_seq=2 Destination Host Unreachable
From 147.214.118.96 icmp_seq=3 Destination Host Unreachable
--- 10.0.120.120 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 1999ms
, pipe 3
[root@xenserver-xwjzmkiq ~]# ifconfig vif2.0
vif2.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:32
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment