[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Communication between Domain0 and Domain1



Hello,

I am using 'xen unstable / xenolinux 2.4.26' and I am having some problems 
to get the domain0 and domain1 to communicate with each other. The python 
scripts xc_dom_create.py is not available on the xen unstable release. If 
I try to run the copy xc_dom_create.py that I have from xen 1.2 I get an 
error on the line "xc = Xc.new()". So this is what I did to start a new 
domain1 on xen unstable. From within domain0 I ran the following:

1.) run 'xend start'

2.) run the script xen_nat_enable that I got from xen1.2

3.) I ran the following command from within a bash script
    xm create -c vmid=1 \
                 name=domain1 \
                 kernel=/boot/vmlinuz-2.4.26-xenU \
                 memory=64 \
                 disk=phy:hda9,hda9,w \
                 ipaddr=169.254.1.1 \
                 root=/dev/hda9 ro \
                 ip=169.254.1.1 \
                 gateway=169.254.1.0 \
                 netmask=255.255.0.0 \
                 hostname=host_dom1
                 
    Domain1 is loaded and I can successfully login to domain1           
    through the console. Note: leaving 'mingetty tty1' in the           
    inittab file of domain1 is fine. I read somewhere that I should
    disable that.
    
However, I cannot ssh into domain1 from domain0.
===========================================================
[root@domain0 /]# ssh 169.254.1.1
ssh: connect to host 169.254.1.1 port 22: No route to host
===========================================================

Below I have copied & paste the network configuration for domain0 and 
domain1. I am sorry if I include a lot of junk in the email.

Here is the network configuration of domain0
===================================================================
[root@domain0 /]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0E:A6:6B:70:CC
          inet addr:128.100.241.161  Bcast:128.100.241.255 Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4228 errors:0 dropped:0 overruns:0 frame:0
          TX packets:400 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:493895 (482.3 Kb)  TX bytes:60050 (58.6 Kb)
          Interrupt:22 Memory:feafc000-0
 
eth0:xen  Link encap:Ethernet  HWaddr 00:0E:A6:6B:70:CC
          inet addr:169.254.1.0  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING 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:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:22 Memory:feafc000-0
 
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:19836 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19836 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1357481 (1.2 Mb)  TX bytes:1357481 (1.2 Mb)
 
vif1.0    Link encap:Ethernet  HWaddr AA:00:01:75:09:CB
          UP BROADCAST RUNNING 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:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          
[root@domain0 /]# route
Kernel IP routing table
Destination    Gateway Genmask       Flags Metric  Ref    Use Iface
128.100.241.0   *      255.255.255.0   U     0      0        0 eth0
169.254.0.0     *      255.255.0.0     U     0      0        0 eth0
169.254.0.0     *      255.255.0.0     U     0      0        0 eth0
127.0.0.0       *      255.0.0.0       U     0      0        0 lo
default        bcit-ec 0.0.0.0         UG    0      0        0 eth0
===================================================================

Here is the network configuration of domain1
===================================================================
[root@domain1 /]# ifconfig
eth0      Link encap:Ethernet  HWaddr AA:00:00:75:09:CB
          inet addr:169.254.1.1  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING 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:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
 
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  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:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          
[root@domain1 /]# route
Kernel IP routing table
Destination  Gateway      Genmask      Flags Metric Ref   Use Iface
169.254.0.0     *         255.255.0.0     U   0     0       0 eth0
127.0.0.0       *         255.0.0.0       U   0     0       0 lo
default      169.254.1.0  0.0.0.0         UG  0     0       0 eth0        
===================================================================       

Also, it seems that the way to control XEN on the xen unstable release is 
a bit different from xen1.2. The python scripts to use are a bit 
different. There a few scripts that I do not know what they do, example 
xend, netfix and xfrd. That is probably because it is my 1st experience 
with Python. Are there any documentation ?

Thanks
Richard

 



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.