<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I am also using the Sunstone interface but creating the vm from the
command line.<br>
<br>
I don't quite understand where the Opennebula is picking up the
network info (Bcast and Mask) from.<br>
<br>
On 25/11/2011 16:36, Zeeshan Ali Shah wrote:
<blockquote
cite="mid:CABjmtXOe9E9OA9eRe+pGbpA+g7aQFRyP52DS7D_6RgdbBcU21Q@mail.gmail.com"
type="cite">and what is the route of vm ? <br>
</blockquote>
<br>
Sorry, I forgot to include the route for the vm in my last email.<br>
<br>
# route -n<br>
Kernel IP routing table<br>
Destination Gateway Genmask Flags Metric Ref
Use Iface<br>
1.0.0.0 0.0.0.0 255.0.0.0 U 0 0
0 eth0<br>
<br>
# ifconfig<br>
eth0 Link encap:Ethernet HWaddr 02:00:41:62:4A:93 <br>
inet addr:1.1.74.147 Bcast:65.255.255.255 Mask:255.0.0.0<br>
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br>
RX packets:63 errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:45 errors:0 dropped:0 overruns:0 carrier:0<br>
collisions:0 txqueuelen:1000<br>
RX bytes:8153 (7.9 KiB) TX bytes:5779 (5.6 KiB)<br>
Interrupt:11 Base address:0xc100<br>
<br>
regards,<br>
<br>
Errol<br>
<br>
<br>
<blockquote
cite="mid:CABjmtXOe9E9OA9eRe+pGbpA+g7aQFRyP52DS7D_6RgdbBcU21Q@mail.gmail.com"
type="cite"><br>
<div class="gmail_quote">On Fri, Nov 25, 2011 at 5:10 PM, Errol
Samuels <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:esamuels@carismatel.com">esamuels@carismatel.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
<br>
OK here it goes:<br>
<br>
<b>Route Print from Opennebula Control Server:</b><br>
<br>
root@cps:/srv/cloud/one/one-templates# route -n<br>
<br>
Kernel IP routing table<br>
Destination Gateway Genmask Flags Metric
Ref Use Iface<br>
1.1.75.192 0.0.0.0 255.255.255.248 U 0
0 0 eth0<br>
172.22.55.0 0.0.0.0 255.255.255.0 U 0
0 0 eth1<br>
0.0.0.0 1.1.75.193 0.0.0.0 UG 100
0 0 eth0<br>
<br>
root@cps:/srv/cloud/one/one-templates# ping -c 5 1.1.74.147<br>
<br>
PING 1.1.74.147 (1.1.74.147) 56(84) bytes of data.<br>
64 bytes from <a moz-do-not-send="true"
href="http://1.1.74.147" target="_blank">1.1.74.147</a>:
icmp_req=1 ttl=64 time=1.65 ms<br>
64 bytes from <a moz-do-not-send="true"
href="http://1.1.74.147" target="_blank">1.1.74.147</a>:
icmp_req=2 ttl=64 time=0.366 ms<br>
64 bytes from <a moz-do-not-send="true"
href="http://1.1.74.147" target="_blank">1.1.74.147</a>:
icmp_req=3 ttl=64 time=0.405 ms<br>
64 bytes from <a moz-do-not-send="true"
href="http://1.1.74.147" target="_blank">1.1.74.147</a>:
icmp_req=4 ttl=64 time=0.400 ms<br>
64 bytes from <a moz-do-not-send="true"
href="http://1.1.74.147" target="_blank">1.1.74.147</a>:
icmp_req=5 ttl=64 time=0.426 ms<br>
<br>
--- 1.1.74.147 ping statistics ---<br>
<br>
<b>Route Print from KVM hypervisor:</b><br>
<br>
root@vmh:~# route -n<br>
<br>
Kernel IP routing table<br>
Destination Gateway Genmask Flags Metric
Ref Use Iface<br>
0.0.0.0 1.1.74.145 0.0.0.0 UG 100
0 0 virbr0<br>
1.1.74.144 0.0.0.0 255.255.255.248 U 0
0 0 virbr0<br>
172.22.55.0 0.0.0.0 255.255.255.0 U 0
0 0 virbr1<br>
<br>
<b>From my iMAC</b><br>
<br>
I am able to ping both the Control Server (1.1.75.194) and
the KVM Host (1.1.74.146) but not the VM (1.1.74.147).<br>
<br>
<br>
<b>This is my "Red LAN NJ01" configuration:</b><br>
<br>
NAME = "Red LAN NJ01 "<br>
TYPE = FIXED<br>
<br>
# We have to bind this network to 'virbr0' for Internet
Access<br>
BRIDGE = virbr0<br>
<br>
LEASES = [ IP="1.1.74.147"]<br>
LEASES = [ IP="1.1.74.148"]<br>
LEASES = [ IP="1.1.74.149"]<br>
LEASES = [ IP="1.1.74.150"]<br>
<br>
GATEWAY = 1.1.74.145<br>
DNS = 208.67.222.222<br>
<br>
<b>This is my ttylinux.one configuration:</b>
<div class="im"><br>
<br>
NAME = ttylinux<br>
CPU = 0.1<br>
MEMORY = 64<br>
<br>
DISK = [ IMAGE_ID = 2 ]<br>
<br>
</div>
NIC = [ NETWORK_ID = 13 ]
<div class="im"><br>
<br>
FEATURES=[ acpi="no" ]<br>
<br>
CONTEXT = [<br>
hostname = "$NAME",<br>
ip_public = "1.1.74.147",<br>
files = "/srv/cloud/one/one-templates/init.sh
/srv/cloud/one/.ssh/id_rsa.pub",<br>
target = "hdc",<br>
root_pubkey = "id_rsa.pub",<br>
username = "oneadmin",<br>
user_pubkey = "id_rsa.pub"<br>
]<br>
<br>
</div>
Interestly, I did an ifconfig in the VM and I see the the
Broadcast and the Netmask are incorrect.<br>
<br>
# ifconfig<br>
eth0 Link encap:Ethernet HWaddr 02:00:41:62:4A:93 <br>
inet addr:1.1.74.147 Bcast:1.255.255.255
Mask:255.0.0.0<br>
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br>
RX packets:257 errors:0 dropped:0 overruns:0
frame:0<br>
TX packets:124 errors:0 dropped:0 overruns:0
carrier:0<br>
collisions:0 txqueuelen:1000<br>
RX bytes:25210 (24.6 KiB) TX bytes:14670 (14.3
KiB)<br>
Interrupt:11 Base address:0xc100<br>
<br>
lo Link encap:Local Loopback <br>
inet addr:127.0.0.1 Mask:255.0.0.0<br>
UP LOOPBACK RUNNING MTU:16436 Metric:1<br>
RX packets:8 errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:8 errors:0 dropped:0 overruns:0
carrier:0<br>
collisions:0 txqueuelen:0<br>
RX bytes:592 (592.0 B) TX bytes:592 (592.0 B)<br>
<br>
So it looks like a virtual network configuration issue
somewhere but I can't put my hand on it.<br>
<br>
Best regards,<br>
<font color="#888888"> <br>
Errol</font>
<div>
<div class="h5"><br>
<br>
On 25/11/2011 15:08, Zeeshan Ali Shah wrote:
<blockquote type="cite">what does route -n on both
machine where you can ping and from where you cannot
show ... <br>
<br>
<div class="gmail_quote">On Fri, Nov 25, 2011 at 3:42
PM, Errol Samuels <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:esamuels@carismatel.com"
target="_blank">esamuels@carismatel.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt
0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
204, 204); padding-left: 1ex;">
<div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
<br>
I am trying to get the test ttylinux VM going
after a few days of putting together bits of
documentation to get a better understanding of
KVM. So far the VM is running and I am able to
ssh into it from the Control Server and the Host
but I am unable to ping it from any other
external IP. <br>
<br>
I checked the relevant FAQ: <a
moz-do-not-send="true"
href="http://wiki.opennebula.org/faq#my_vm_is_running_but_i_get_no_answer_from_pings_what_s_wrong"
target="_blank">"http://wiki.opennebula.org/faq#my_vm_is_running_but_i_get_no_answer_from_pings_what_s_wrong"</a>
and made some comments below.<br>
<br>
<blockquote type="cite">
<p> There are several reasons for this, check:
</p>
<ul>
<li>
<div> You have created a network with a
valid bridge in the nodes of your
cluster<br>
<br>
</div>
</li>
</ul>
</blockquote>
<br>
Yes, the bridge configuration is as follows:<br>
<br>
** ( Real IP has been substituted ) **<br>
<br>
auto eth0<br>
iface eth0 inet manual<br>
auto virbr0<br>
iface virbr0 inet static<br>
address 1.1.74.146<br>
netmask 255.255.255.248<br>
network 1.1.74.144<br>
gateway 1.1.74.145<br>
broadcast 1.1.74.151<br>
bridge_ports eth0<br>
bridge_fd 9<br>
bridge_hello 2<br>
bridge_maxage 12<br>
bridge_stp off<br>
<br>
<blockquote type="cite">
<ul>
<li>
<div> You have defined a NIC attribute in
your VM attached to that network</div>
</li>
</ul>
</blockquote>
<br>
NAME = ttylinux<br>
CPU = 0.1<br>
MEMORY = 64<br>
<br>
DISK = [ IMAGE_ID = 2 ]<br>
<br>
NIC = [ NETWORK_ID = 10 ]<br>
<br>
FEATURES=[ acpi="no" ]<br>
<br>
CONTEXT = [<br>
hostname = "$NAME",<br>
ip_public = "1.1.74.147",<br>
files =
"/srv/cloud/one/one-templates/init.sh
/srv/cloud/one/.ssh/id_rsa.pub",<br>
target = "hdc",<br>
root_pubkey = "id_rsa.pub",<br>
username = "oneadmin",<br>
user_pubkey = "id_rsa.pub"<br>
]<br>
<br>
<blockquote type="cite">
<ul>
<li>
<div> The VM is prepared to configure the
interface to use a valid IP in that
network. You can:</div>
<ul>
<li>
<div> Configure the VM to dynamically
configure the IP using its MAC
address (<a moz-do-not-send="true"
href="http://wiki.opennebula.org/documentation:rel2.2:cong"
title="documentation:rel2.2:cong"
rel="nofollow" target="_blank">Contextualzation</a>)</div>
</li>
<li>
<div> Configure the VM to statically
set a given IP of the network</div>
</li>
<li>
<div> Put a <acronym title="Dynamic
Host Configuration Protocol">DHCP</acronym>
server attached to that network</div>
</li>
</ul>
</li>
</ul>
</blockquote>
<br>
Yes, the VM is statically set a given IP of the
network. <br>
<br>
<blockquote type="cite">
<ul>
<li>
<div> Also be sure that you are pinging
the VM from a host with a route to the
network</div>
</li>
</ul>
</blockquote>
<br>
Yes, I am able to ping and ssh the VM from the
Control Server which is on the same public VLAN
but I am unable to ping that IP from my network
for example.<br>
<br>
<br>
oneadmin@cps:~/one-templates$ onevnet list<br>
ID USER GROUP NAME TYPE
BRIDGE PUB LEASES<br>
10 oneadmin oneadmin Red LAN NJ01 F
virbr0 No 1<br>
5 oneadmin oneadmin Blue LAN
R virbr1 No 0<br>
<br>
<br>
oneadmin@cps:~/one-templates$ onevm list<br>
ID USER GROUP NAME STAT
CPU MEM HOSTNAME TIME<br>
13 oneadmin oneadmin ttylinux runn
4 64M vmh-usnjewr-eqi 00 01:09:54<br>
<br>
Opennebula Version = 3.0.0 compiled from source<br>
Installation Type = Self contained in
/srv/cloud/one<br>
Hypervisor = KVM<br>
Control Server OS: Ubuntu 11.04 LTS<br>
KVM Host OS: Ubuntu 11.10 LTS<br>
Storage = Non Shared File System<br>
<br>
Any assistance will be much appreciated.<br>
<br>
Thanks in Advance.<br>
<font color="#888888"> <br>
Errol<br>
<br>
<br>
<br>
<br>
<br>
</font></div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Users@lists.opennebula.org"
target="_blank">Users@lists.opennebula.org</a><br>
<a moz-do-not-send="true"
href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org"
target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br>
</blockquote>
</div>
<br>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a>
<a moz-do-not-send="true" href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a moz-do-not-send="true"
href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org"
target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br>
</blockquote>
</div>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a>
</pre>
</blockquote>
<br>
</body>
</html>