| I am trying to configure properly a small network of XEN 3.0.3 domains, 
using NAT, in order
to keep it a private subnet. This is connecting them all to the same 
virtual network (10.0.0.X) and dom0 acting 
as a router to the company net which connects to the internet.
In order to do this:
- the host machine belongs to a company network and has 1 ethernet card, 
a static IP, gateway and DNS server. 
- the domUs are Debian Sarge, compiled from source.
I configured:
1. xend-config
(network-script network-nat)
(vif-script     vif-nat)
2. First domU config:
name="vm5"
kernel="/boot/vmlinuz-2.6-xenU"
root="/dev/hda1"
memory=512
disk=['file:/boot/VM/vm5disk,hda1,w','file:/boot/VM/vm5swap,hda2,w']
vif=[ 'mac=A1:A1:A1:A1:A1:A1, vifname=vif_vm5, bridge=xenbr0' ]
dhcp="off"
ip="10.0.0.1"
netmask="255.0.0.0"
gateway="10.0.0.254"
hostname="vm5"
extra="3"
After boot, the above VM has a virtual eth0 adapter :
eth0  Link encap:Ethernet  HWaddr A1:A1:A1:A1:A1:A1          inet 
addr:10.0.0.1  Bcast:10.255.255.255  Mask:255.0.0.0 
        inet6 addr: fe80::a3a1:a1ff:fea1:a1a1/64 Scope:Link
        UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
        RX packets:0 errors:0 dropped:0 overruns:0 frame:0
        TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
        collisions:0 txqueuelen:1000
        RX bytes:0 (0.0 b)  TX bytes:440 (440.0 b)
but that does not ping dom0 nor any other domU:
$ ping <host machine>
connect: Network is unreachable
I understood from a Debian setup guide 
http://howtoforge.com/debian_sarge_xen_3.0.3_p5
that XEN configures the gateway and much other things itself.
Therefore, I have a few questions to XEN experts:
1- what is made automatically by XEN in such a case?
  - what are the values of the domU gateways ?
  - where is the router between my domains (ie its IP and config)?
  - what interfaces are created and configured by XEN?
    Indeed, I have some virtual network interfaces appearing, namely
veth0     Lien encap:Ethernet  HWaddr 00:00:00:00:00:00          
BROADCAST MULTICAST  MTU:1500  Metric:1
        Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
        TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
        collisions:0 lg file transmission:0
        Octets reçus:0 (0.0 b) Octets transmis:0 (0.0 b)
veth1     Lien encap:Ethernet  HWaddr 00:00:00:00:00:00          
BROADCAST MULTICAST  MTU:1500  Metric:1
        Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
        TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
        collisions:0 lg file transmission:0
        Octets reçus:0 (0.0 b) Octets transmis:0 (0.0 b)
vif_vm5   Lien encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF          
inet adr:10.0.1.128  Bcast:0.0.0.0  Masque:255.255.255.255
        UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
        Packets reçus:7 erreurs:0 :0 overruns:0 frame:0
        TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
        collisions:0 lg file transmission:0
        Octets reçus:412 (412.0 b) Octets transmis:0 (0.0 b)
  but who do not seem to function (according to xm top)
  - Do I have to setup some routes? The dom0 routing table is actually :
Destination     Passerelle      Genmask         Indic Metric Ref    Use 
Iface
10.0.1.1        *               255.255.255.255 UH    0      0        0 
vif_vm5
localnet        *               255.255.252.0   U     0      0        0 
eth0
default         sirtaki         0.0.0.0         UG    0      0        0 
eth0
and the domU routing table is:
Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
10.0.0.0        *               255.0.0.0       U     0      0        0 
eth0 
2- Why don't the domUs recognise any manual config (in /etc{hosts, 
network/interfaces})? 
thanks for any help.
Armand
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
 |