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

[Xen-users] How to configure two NICs on a DomU?


  • To: <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "liyaq04" <liyaq04@xxxxxxxxxx>
  • Date: Mon, 5 Jun 2006 10:30:45 +0800
  • Delivery-date: Sun, 04 Jun 2006 19:30:54 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: AcaH+jSPNQRgQGI2QXCucu1KC/++WQATOs6g

Hi,
        When I install Oracle RAC on Xen VM, some problem occurred. How can
I configure two NICs on a Xen's DomU. You know, RAC's installation requires
two NICs on a node. I am a newbie about Xen. Please give me some advice.
        Thanks.
        
Yaqiong lee 
        
Beijing,China 

-----邮件原件-----
发件人: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] 代表 xen-users-request@lists.
xensource.com
发送时间: 2006年6月5日 1:14
收件人: xen-users@xxxxxxxxxxxxxxxxxxx
主题: Xen-users Digest, Vol 16, Issue 19

Send Xen-users mailing list submissions to
        xen-users@xxxxxxxxxxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users
or, via email, send a message with subject or body 'help' to
        xen-users-request@xxxxxxxxxxxxxxxxxxx

You can reach the person managing the list at
        xen-users-owner@xxxxxxxxxxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Xen-users digest..."


Today's Topics:

   1. Re: No module ata_piix found for kernel 2.6.16-xen,       aborting.
      (Anand Gupta)
   2. Re: Re: No module ata_piix found for kernel 2.6.16-xen,
      aborting. (Anand Gupta)
   3. Re: Root fs image crated by Yast Xen (TAIRA Hajime)
   4. networking not working (Anand Gupta)
   5. Re: networking not working (Anand Gupta)
   6. RE: networking not working (Bernard Golden)


----------------------------------------------------------------------

Message: 1
Date: Sun, 4 Jun 2006 18:43:51 +0530
From: "Anand Gupta" <xen.mails@xxxxxxxxx>
Subject: [Xen-users] Re: No module ata_piix found for kernel
        2.6.16-xen,     aborting.
To: "Xen Users" <Xen-users@xxxxxxxxxxxxxxxxxxx>
Message-ID:
        <acb757c00606040613j6cc539e4wb1c1342a617d773f@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"

Anyone has any ideas on this ?

-- 
regards,

Anand Gupta
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.xensource.com/archives/html/xen-users/attachments/20060604/4eed
34f1/attachment.html

------------------------------

Message: 2
Date: Sun, 4 Jun 2006 21:18:09 +0530
From: "Anand Gupta" <xen.mails@xxxxxxxxx>
Subject: Re: [Xen-users] Re: No module ata_piix found for kernel
        2.6.16-xen,     aborting.
To: "Jorge Davila" <davila@xxxxxxxxxxxxxxxxxxxxxxx>
Cc: Xen Users <Xen-users@xxxxxxxxxxxxxxxxxxx>
Message-ID:
        <acb757c00606040848h3d258677m73769fe6a7d55ff0@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"

Thanx a lot Jorge.

That solved the problem. I have it up and running now.

On 6/4/06, Jorge Davila <davila@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> Hi Gupta:
>
> Review this:
>
> http://lists.xensource.com/archives/html/xen-users/2005-11/msg00237.html
>
> Jorge.
>
> On Sun, 4 Jun 2006 17:08:31 +0530
>   "Anand Gupta" <xen.mails@xxxxxxxxx> wrote:
> > I tried to compile xen stable and same results with mkinitrd
> >
> > mkinitrd -v -f --with=aacraid --with=sd_mod --with=scsi_mod
> > initrd-2.6.16-xen.img 2.6.16-xen
> > Creating initramfs
> > Looking for deps of module scsi_mod
> > Looking for deps of module sd_mod
> > Looking for deps of module unknown
> > Looking for deps of module ata_piix
> > No module ata_piix found for kernel 2.6.16-xen, aborting.
> >
> > Can anyone please tell me what should i do to get the sata driver ?
> >Without
> > that the server just won't boot.
> >
> > I tried to exclude scsi in mkinitrd by using --omit-scsi-modules and by
> > compiling the ata_piix drivers in the kernel itself, however i ran into
> > several errors when the server booted up.
> >
> > Some of the errors are:
> >
> > "unable to handle kernel request
> > Modules linked in: dm_mod
> > Pid 433, comm: insmod Tainted: GF 2.6.16.13-xen
> > RIP: e030E
> > -------a bunch of stack traces and hex addresses ----
> > error /bin/insmod exited abnormally! PID 433
> > Loading ext3.ko
> >
> > Any ideas how to sort this out ?
> >
> > --
> > regards,
> >
> > Anand Gupta
>
> Jorge Isaac Davila Lopez
> +505 808 2478
> www.nicaraguaopensource.com/
>



-- 
regards,

Anand Gupta
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.xensource.com/archives/html/xen-users/attachments/20060604/5b88
ada7/attachment.htm

------------------------------

Message: 3
Date: Mon, 5 Jun 2006 01:08:35 +0900
From: TAIRA Hajime <htaira@xxxxxxxxx>
Subject: Re: [Xen-users] Root fs image crated by Yast Xen
To: xen-users@xxxxxxxxxxxxxxxxxxx
Message-ID: <D5613D0F-C6CD-43E7-9295-97D2F98BC105@xxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"

Hi, Noniko.

I fitted same thing. When I was verifying Xen on SLES10 Beta.

> /var/lib/xen/images/vm1/hda. Wonderful.

It is whole disk image.

> I tried to loopback mount in order to see what is in this image file.
> But I can't. The error message is:
>
> mount: wrong fs type, bad option, bad superblock on /dev/loop0,
> missing codepage or other error

This error is correct. Because hda is not filesystem.
Please try following step.

1. Mapping hda to /dev/loop0.
# losetup /dev/loop0 /var/lib/xen/images/vm1/hda

2. Look at geometric information on /dev/loop0.
# fdisk -l -u /dev/loop0
Disk /dev/hda: 30.7 GB, 30738677760 bytes
255 heads, 63 sectors/track, 3737 cylinders, total 60036480 sectors
Units = sectors of 1 * 512 = 512 bytes

    Device Boot      Start         End      Blocks   Id  System
/dev/loop0p1           63      208844      104391   83  Linux
/dev/loop0p2       208845    60034904    29913030   83  Linux

3. Calculate the offset. offset = Start x Unit size
# offset=((63*512))

4. Mapping hda1 in /dev/loop0
# losetup -o $offset /dev/loop1 /dev/loop1

5. Mount /dev/loop1 to /mnt/vm1_hda1
# mkdir /mnt/vm1_hda1
# mount /dev/loop1 /mnt/vm1_hda1

That's all.

.::.:... .::....: .::...:: .::.:.:: .::..:.: .:::..:.
TAIRA Hajime <htaira@xxxxxxxxx>
              web: http://pantora.net/

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.xensource.com/archives/html/xen-users/attachments/20060605/674c
d36f/attachment.html

------------------------------

Message: 4
Date: Sun, 4 Jun 2006 22:12:44 +0530
From: "Anand Gupta" <xen.mails@xxxxxxxxx>
Subject: [Xen-users] networking not working
To: "Xen Users" <Xen-users@xxxxxxxxxxxxxxxxxxx>
Message-ID:
        <acb757c00606040942u4a3ebd31k840d1149d5b13d49@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"

After several problems with sata and kernel compiles, and ofcourse help from
the list to solve it, i got the kernel compiled and xen-unstable running on
Celeron D 64bit.

Now xen has been setup for route network. However when i try to ping domU
from dom0 it gives no responses, vice versa, ping from dom0 to domU doesn't
work.

The dom0 is a centos 4.3 and domU is centos 4.3 again.

I have tried many things, however network still doesn't work.

>From domU to dom0 ping gives the following error:

connect: Network is unreachable

Ping from dom0 to domU gives no response.

Any help will be appreciated.

-- 
regards,

Anand Gupta
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.xensource.com/archives/html/xen-users/attachments/20060604/5b5e
64b3/attachment.htm

------------------------------

Message: 5
Date: Sun, 4 Jun 2006 22:19:11 +0530
From: "Anand Gupta" <xen.mails@xxxxxxxxx>
Subject: [Xen-users] Re: networking not working
To: "Xen Users" <Xen-users@xxxxxxxxxxxxxxxxxxx>
Message-ID:
        <acb757c00606040949p6e4ab4e3jceee9518cb76d33c@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"

route -n looks fine on dom0. The ip address of the domU shows up in route
and proper interface is showing up for the same as well.

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.75.61.2     0.0.0.0         255.255.255.255 UH    0      0        0
ikkk01
192.75.44.0     0.0.0.0         255.255.255.128 U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
0.0.0.0         192.75.44.1     0.0.0.0         UG    0      0        0 eth0

Here 192.75.61.2 is the domU, 192.75.44.1 is the gateway for dom0 and
192.75.44.9 is the ip for dom0.


-- 
regards,

Anand Gupta
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.xensource.com/archives/html/xen-users/attachments/20060604/e0b8
4ec3/attachment.html

------------------------------

Message: 6
Date: Sun, 4 Jun 2006 10:13:30 -0700
From: "Bernard Golden" <bgolden@xxxxxxxxxxxxxx>
Subject: RE: [Xen-users] networking not working
To: "'Anand Gupta'" <xen.mails@xxxxxxxxx>,      "'Xen Users'"
        <Xen-users@xxxxxxxxxxxxxxxxxxx>
Message-ID: <00c401c687fa$3593cbd0$6501a8c0@xxxxxxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"

I had this same problem on the DomU to other machines. Executing dhclient
got an address. You might try that, although it is, of course, an
unsatisfactory long-term solution.
 
I posted a similar question a few days ago and got a pointer to:
 
http://wiki.xensource.com/xenwiki/XenNetworking
 
with a suggest to execute:
 
echo 0 > /proc/sys/net/ipv4/ip_forward

I did that, but did not find it helped; however, it might work for you.

 

HTH

 
Bernard Golden  

 -----Original Message-----
From: Anand Gupta [mailto:xen.mails@xxxxxxxxx] 
Sent: Sunday, June 04, 2006 9:43 AM
To: Xen Users
Subject: [Xen-users] networking not working



After several problems with sata and kernel compiles, and ofcourse help from
the list to solve it, i got the kernel compiled and xen-unstable running on
Celeron D 64bit.

Now xen has been setup for route network. However when i try to ping domU
from dom0 it gives no responses, vice versa, ping from dom0 to domU doesn't
work. 

The dom0 is a centos 4.3 and domU is centos 4.3 again.

I have tried many things, however network still doesn't work.

>From domU to dom0 ping gives the following error:

connect: Network is unreachable 

Ping from dom0 to domU gives no response.

Any help will be appreciated.

-- 
regards,

Anand Gupta 

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.xensource.com/archives/html/xen-users/attachments/20060604/6095
b11a/attachment.htm

------------------------------

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


End of Xen-users Digest, Vol 16, Issue 19
*****************************************




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


 


Rackspace

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