WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Making a VM directly accessible from a public IP

To: "Daniel Kao" <dkao@xxxxxxxxxxxx>
Subject: Re: [Xen-users] Making a VM directly accessible from a public IP
From: Thomas <iamkenzo@xxxxxxxxx>
Date: Wed, 3 Sep 2008 17:44:59 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 03 Sep 2008 08:45:40 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=lxw8Cx0AhMlyLStEEJDTmeZ4TblP9gRwCUloVHoMe+I=; b=dB/xWhKt32lOkNIIwV2af9+RhMfabeOXRmWQe8mZBmZZf6rkr/1KtgyzPHYGYQWkpz jHVwY3kp5ThKiXLW9CAhumjUdeI5bg7UiJUlLEt3VhJ12HlocCaTQa6hQIhMCEUE+mhI qj8YIoJ9zYWumKq04viU5gs6/qWugoT2LDnmM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=niPNhQx+qyaoh6rkPg0ZO/uWCDdcaOCAJdlZRq+n2tLxyeMPZbac9bG9OpXJCu/s/U Crzrb/iOALfxVj3FKZgnxRCFHTuZgu/OpbGi/AxNcjxhskuDF62Y8V0PZmkkjB3Ip6on ZAQ2MiNFbPU6lCIYssRwhLqFj0fcGUEh4rlNY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <55da14450807180742r58fd9e2as906040efcb5c53e8@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <55da14450807171348h41230dd5mb5f9b468051f8ce9@xxxxxxxxxxxxxx> <487FB2EE.4060305@xxxxxxxxxxxx> <55da14450807171415r44a7e3c0l7c776811ac2fa37a@xxxxxxxxxxxxxx> <487FC607.3040601@xxxxxxxxxxxx> <55da14450807180215o6eb5e316g72122ac6238c26a5@xxxxxxxxxxxxxx> <55da14450807180742r58fd9e2as906040efcb5c53e8@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I still haven't found a solution to this problem.

In my xend-config.sxp file, I have activated the routed mode:
---
(network-script 'network-route netdev=eth0')
(vif-script     vif-route)
---


In my domU config file I have:
---
vif = [ 'mac=00:16:3e:00:00:01, ip=ip.fail.over' ]
---

and in /etc/network/interfaces of the domU:
---
auto eth0
iface eth0 inet static
netmask 255.255.255.0
address ip.fail.over
post-up /sbin/ip route add default dev eth0
---

In domU, ifconfig outputs:
---
eth0      Link encap:Ethernet  HWaddr 00:16:3E:00:00:01
          inet addr:ip.fail.over  Bcast:my.ip.adr.255  Mask:255.255.255.0
---

In dom0, ifconfig outputs:
---
eth0      Link encap:Ethernet  HWaddr 00:1B:FC:19:19:36
          inet addr:some.ip  Bcast:some.ip.255  Mask:255.255.255.0

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0

vif165.0  Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet addr:some.ip  Bcast:91.255.255.255  Mask:255.255.255.255
---

But when I boot the domU, I see the error message:
---
Setting up networking....
Configuring network interfaces...SIOCADDRT: Network is unreachable
Failed to bring up eth0.
done.
---

And obviously I cannot ping my domU public address. I have also
flushed any iptables rule.

I am pretty sure that at some point in time the setup I have posted
above worked, but I tried to reproduce it today, and it doesn't
anymore, so I guess I dreamed it worked!?

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-users] Making a VM directly accessible from a public IP, Thomas <=