byghis

Starting xen 4.1.1 and starting a hardy-pv vm

May 28th, 2011
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.72 KB | None | 0 0
  1. [sudo] password for edward:
  2. Starting xenstored...
  3. Setting domain 0 name...
  4. Starting xenconsoled...
  5. edward@jaku:~$ sudo /etc/init.d/xend start
  6. There is already a pid file /var/run/dhclient.eth0.pid with pid 1054
  7. killed old client process, removed PID file
  8. Internet Systems Consortium DHCP Client V3.1.3
  9. Copyright 2004-2009 Internet Systems Consortium.
  10. All rights reserved.
  11. For info, please visit https://www.isc.org/software/dhcp/
  12.  
  13. Listening on LPF/eth0/00:1e:37:cc:5d:c9
  14. Sending on LPF/eth0/00:1e:37:cc:5d:c9
  15. Sending on Socket/fallback
  16. DHCPRELEASE on eth0 to 139.82.16.33 port 67
  17. Internet Systems Consortium DHCP Client V3.1.3
  18. Copyright 2004-2009 Internet Systems Consortium.
  19. All rights reserved.
  20. For info, please visit https://www.isc.org/software/dhcp/
  21.  
  22. Listening on LPF/eth0/00:1e:37:cc:5d:c9
  23. Sending on LPF/eth0/00:1e:37:cc:5d:c9
  24. Sending on Socket/fallback
  25. DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
  26. DHCPOFFER of 139.82.2.182 from 139.82.2.129
  27. DHCPREQUEST of 139.82.2.182 on eth0 to 255.255.255.255 port 67
  28. DHCPACK of 139.82.2.182 from 139.82.2.129
  29. bound to 139.82.2.182 -- renewal in 4183 seconds.
  30. edward@jaku:~$ 139.82.2.18^C
  31. edward@jaku:~$ sudo iptables -A FORWARD -o eth0 -i eth1 -s 139.82.2.184 -m conntrack --ctstate NEW -j ACCEPT^C
  32. edward@jaku:~$ sudo iptables -L
  33. Chain INPUT (policy ACCEPT)
  34. target prot opt source destination
  35.  
  36. Chain FORWARD (policy ACCEPT)
  37. target prot opt source destination
  38. ACCEPT all -- anywhere anywhere PHYSDEV match --physdev-out vif1.0 --physdev-is-bridged
  39. ACCEPT all -- anywhere anywhere PHYSDEV match --physdev-in vif1.0 --physdev-is-bridged
  40.  
  41. Chain OUTPUT (policy ACCEPT)
  42. target prot opt source destination
  43. edward@jaku:~$ sudo iptables -A FORWARD -o eth0 -i eth1 -s 139.82.2.184 -m conntrack --ctstate NEW -j ACCEPT
  44. edward@jaku:~$ sudo iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
  45. edward@jaku:~$ sudo iptables -A POSTROUTING -t nat -j MASQUERADE
  46. edward@jaku:~$ ifconfig
  47. eth0 Link encap:Ethernet HWaddr 00:1e:37:cc:5d:c9
  48. inet addr:139.82.2.182 Bcast:139.82.2.191 Mask:255.255.255.192
  49. inet6 addr: fe80::21e:37ff:fecc:5dc9/64 Scope:Link
  50. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  51. RX packets:511 errors:0 dropped:0 overruns:0 frame:0
  52. TX packets:409 errors:0 dropped:0 overruns:0 carrier:0
  53. collisions:0 txqueuelen:0
  54. RX bytes:217043 (217.0 KB) TX bytes:53887 (53.8 KB)
  55.  
  56. lo Link encap:Local Loopback
  57. inet addr:127.0.0.1 Mask:255.0.0.0
  58. inet6 addr: ::1/128 Scope:Host
  59. UP LOOPBACK RUNNING MTU:16436 Metric:1
  60. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  61. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  62. collisions:0 txqueuelen:0
  63. RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
  64.  
  65. peth0 Link encap:Ethernet HWaddr 00:1e:37:cc:5d:c9
  66. inet6 addr: fe80::21e:37ff:fecc:5dc9/64 Scope:Link
  67. UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
  68. RX packets:566 errors:0 dropped:0 overruns:0 frame:0
  69. TX packets:456 errors:0 dropped:0 overruns:0 carrier:0
  70. collisions:81 txqueuelen:10
  71. RX bytes:228607 (228.6 KB) TX bytes:58408 (58.4 KB)
  72. Memory:fe000000-fe020000
  73.  
  74. vif1.0 Link encap:Ethernet HWaddr fe:ff:ff:ff:ff:ff
  75. inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
  76. UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
  77. RX packets:23 errors:0 dropped:0 overruns:0 frame:0
  78. TX packets:94 errors:0 dropped:4 overruns:0 carrier:0
  79. collisions:0 txqueuelen:32
  80. RX bytes:1544 (1.5 KB) TX bytes:7610 (7.6 KB)
  81.  
  82. edward@jaku:~$
  83. ---
  84. Ubuntu 8.04 ubuntu-pristine tty1
  85.  
  86. ubuntu-pristine login: * Reloading OpenBSD Secure Shell server's configuration sshd
  87. root
  88. Password:
  89. Last login: Sat May 28 04:08:04 UTC 2011 on tty1
  90. Linux ubuntu-pristine 2.6.18.8-xenU #1 SMP Tue May 26 09:07:46 CDT 2009 i686
  91.  
  92. The programs included with the Ubuntu system are free software;
  93. the exact distribution terms for each program are described in the
  94. individual files in /usr/share/doc/*/copyright.
  95.  
  96. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
  97. applicable law.
  98.  
  99. To access official Ubuntu documentation, please visit:
  100. http://help.ubuntu.com/
  101. root@ubuntu-pristine:~# ifconfig
  102. eth0 Link encap:Ethernet HWaddr 00:16:3e:2b:b7:32
  103. inet addr:139.82.2.184 Bcast:139.82.2.191 Mask:255.255.255.192
  104. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  105. RX packets:28 errors:0 dropped:0 overruns:0 frame:0
  106. TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
  107. collisions:0 txqueuelen:1000
  108. RX bytes:2640 (2.5 KB) TX bytes:1614 (1.5 KB)
  109.  
  110. lo Link encap:Local Loopback
  111. inet addr:127.0.0.1 Mask:255.0.0.0
  112. UP LOOPBACK RUNNING MTU:16436 Metric:1
  113. RX packets:3 errors:0 dropped:0 overruns:0 frame:0
  114. TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
  115. collisions:0 txqueuelen:0
  116. RX bytes:279 (279.0 B) TX bytes:279 (279.0 B)
  117.  
  118. root@ubuntu-pristine:~# ping google.com
  119.  
  120. root@ubuntu-pristine:~# ping google.com
  121.  
  122. root@ubuntu-pristine:~# route -n
  123. Kernel IP routing table
  124. Destination Gateway Genmask Flags Metric Ref Use Iface
  125. 139.82.2.128 0.0.0.0 255.255.255.192 U 0 0 0 eth0
  126. 0.0.0.0 139.82.2.129 0.0.0.0 UG 100 0 0 eth0
  127. root@ubuntu-pristine:~# sudo ip route add default via 139.82.2.182
  128. sudo: unable to resolve host ubuntu-pristine
  129. root@ubuntu-pristine:~# route -n
  130. Kernel IP routing table
  131. Destination Gateway Genmask Flags Metric Ref Use Iface
  132. 139.82.2.128 0.0.0.0 255.255.255.192 U 0 0 0 eth0
  133. 0.0.0.0 139.82.2.129 0.0.0.0 UG 100 0 0 eth0
  134. root@ubuntu-pristine:~# ip route add default via 139.82.2.182
  135. root@ubuntu-pristine:~# ping google.com
  136. PING google.com (64.233.163.104) 56(84) bytes of data.
  137. From 139.82.2.129 icmp_seq=1 Packet filtered
  138. From 139.82.2.129 icmp_seq=2 Packet filtered
  139.  
  140. --- google.com ping statistics ---
  141. 2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1002ms
  142.  
  143. root@ubuntu-pristine:~# cat /etc/fstab
  144. /dev/sda1 / ext3 defaults,errors=remount-ro 0 0
  145. proc /proc proc defaults 0 0
  146. devpts /dev/pts devpts gid=5,mode=620 0 0
  147. root@ubuntu-pristine:~# ls /boot/
  148. root@ubuntu-pristine:~# ls /lib/modules/
  149. 2.6.18.8-xenU
  150. root@ubuntu-pristine:~# ls /lib/modules/2.6.18.8-xenU/
  151. kernel modules.dep modules.isapnpmap modules.seriomap
  152. modules.alias modules.ieee1394map modules.ofmap modules.symbols
  153. modules.ccwmap modules.inputmap modules.pcimap modules.usbmap
  154. root@ubuntu-pristine:~# cat /etc/network/interfaces
  155. # The loopback network interface
  156. auto lo
  157. iface lo inet loopback
  158.  
  159. # The primary network interface
  160. auto eth0
  161. iface eth0 inet dhcp
  162. root@ubuntu-pristine:~# cat /etc/hosts
  163. 127.0.0.1 localhost.localdomain localhost
  164. root@ubuntu-pristine:~# df -h
  165. Filesystem Size Used Avail Use% Mounted on
  166. /dev/sda1 986M 242M 694M 26% /
  167. varrun 129M 32K 129M 1% /var/run
  168. varlock 129M 0 129M 0% /var/lock
  169. udev 129M 8.0K 129M 1% /dev
  170. devshm 129M 0 129M 0% /dev/shm
  171. root@ubuntu-pristine:~#
Advertisement
Add Comment
Please, Sign In to add comment