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

[Xen-users] RE: DomU configuration file


  • To: <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Ashit Kumar" <Ashit_Kumar@xxxxxxxxxxxx>
  • Date: Fri, 23 Mar 2007 13:32:09 +0530
  • Delivery-date: Fri, 23 Mar 2007 00:58:09 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: AcdseLHfOKGDrSfsQPqkIyoBarLh5AAqMqKw
  • Thread-topic: DomU configuration file

 
Any Idea?
Thanks and regards
Ashit
-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of
xen-users-request@xxxxxxxxxxxxxxxxxxx
Sent: Thursday, March 22, 2007 5:23 PM
To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Xen-users Digest, Vol 25, Issue 142

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: Xen --> Guest (Security Initiative Team)
   2. RE: Interface Order (Kris Doosje)
   3. Re: Error booting an opensuse iso image (Fajar A. Nugraha)
   4. RE: Adding interface for communication between HVM        guest
and
      xen VMM (Petersson, Mats)
   5. Re: Interface Order (Wolfgang Hennerbichler)
   6. xentop and top don't agree (Chris Fanning)
   7. DomU configuration file (Ashit Kumar)


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

Message: 1
Date: Wed, 21 Mar 2007 09:17:21 -0700 (PDT)
From: Security Initiative Team <passrete@xxxxxxxxx>
Subject: RE: [Xen-users] Xen --> Guest
To: "Petersson, Mats" <Mats.Petersson@xxxxxxx>,
        xen-devel@xxxxxxxxxxxxxxxxxxx,  xen-users@xxxxxxxxxxxxxxxxxxx
Message-ID: <447790.96098.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"

Yes, that's what I figured.

But, I haven't really been able to figure out how to actually implement
a new event channel.

I did create a new Virtual interrupt and registered it on the DomU side.
I was able to bind to it on the Xen side.
However, the
vcpu_info->evtchn_upcall_pending variable doesn't seem to get set
correctly.
I have v->vcpu_info->evtchn_upcall_mask = 0.

Plus, I'm not quite sure how to do the polling on the DomU side.

If you have a good idea as to how to implement it, please do let me
know.


"Petersson, Mats" <Mats.Petersson@xxxxxxx> wrote:  

> -----Original Message-----
> From: Security Initiative Team [mailto:passrete@xxxxxxxxx]
> Sent: 21 March 2007 15:55
> To: Petersson, Mats; xen-devel@xxxxxxxxxxxxxxxxxxx; 
> xen-users@xxxxxxxxxxxxxxxxxxx
> Subject: RE: [Xen-users] Xen --> Guest
> 
> I have some monitoring capabilities set up in Xen and when that is 
> triggered, I want to notify the DomU to take some action.
> 
> Example: If a certain part of memory is touched, Xen sees that and 
> wants to inform the DomU of this.
> 
> So, all I need is to set a bit somewhere that can be constantly polled

> by the DomU (waiting for it to flip)

And isn't this EXACTLY what the event-channel does?

--
Mats
> 
> Thanks,
> -Brian
> 
> "Petersson, Mats"  wrote:
> 
> 
> 
>  > -----Original Message-----
>  > From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
>  > [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of  > 
> Security Initiative Team  > Sent: 21 March 2007 01:03  > To: 
> xen-devel@xxxxxxxxxxxxxxxxxxx; xen-users@xxxxxxxxxxxxxxxxxxx  > 
> Subject: [Xen-users] Xen --> Guest  >  > What's the easiest way to 
> send 1-bit of information from  > Xen to a guest domain?
>  
>  What do you want this 1-bit of information to achieve at the other  
> end...
>  
>  Without actually knowing what you're trying to achieve, it's kind of

> hard to answer the question.
>  
>  --
>  Mats
>  >
>  > The event channel mechanism seems fairly complicated.
>  >
>  > Thanks,
>  > -Brian
>  >
>  >
>  > ________________________________
>  >
>  > It's here! Your new message!
>  > Get new email alerts
>  > om/toolbar/features/mail/> with the free Yahoo! Toolbar. >  
> om/toolbar/features/mail/>  >
>  
>  
>  
> 
> 
> ________________________________
> 
> No need to miss a message. Get email on-the-go
>  
> with Yahoo! Mail for Mobile. Get started. 
>  
> 




 
---------------------------------
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.xensource.com/archives/html/xen-users/attachments/20070321/
95764ada/attachment.htm

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

Message: 2
Date: Thu, 22 Mar 2007 09:32:10 +0100
From: "Kris Doosje" <k.doosje@xxxxxxx>
Subject: RE: [Xen-users] Interface Order
To: wogri <wogri@xxxxxxxxx>,    xen-users
<xen-users@xxxxxxxxxxxxxxxxxxx>
Message-ID: <H0000080003072e2.1174552329.scalixserver.nido.nl@MHS>
Content-Type: text/plain;       charset="US-ASCII"

I have the following in my config:

vif = [ 'mac=00:16:3e:00:00:00, bridge=xenbr0',
        'mac=00:16:3e:00:00:01, bridge=xenbr1' ]

I have no IP-config in the xen-config file, I do that in the guest
itself.

In xend-config.sxp I have: (network-script network-custom-bridge)

And my network-custom-bridge script looks like this:

#!/bin/bash
dir=$(dirname "$0")
"$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0
"$dir/network-bridge" "$@" vifnum=1 netdev=eth1 bridge=xenbr1

This works fine for me.

Good luck,

Kris


-----Oorspronkelijk bericht-----
Van: Wolfgang Hennerbichler [mailto:wogri@xxxxxxxxx]
Verzonden: donderdag 22 maart 2007 9:19
Aan: xen-users@xxxxxxxxxxxxxxxxxxx
Onderwerp: [Xen-users] Interface Order


Hi Xen folks,

I have a question where I couldn't find the answer on google or in the
archives...
I have a statically compiled xenU kernel, and I want a XEN guest with
2 network interfaces. My config looks like this:

name = "myname"
kernel = "/boot/vmlinuz-2.6-xenU"
memory = 256
vif = [ 'bridge=br701', 'bridge=br9' ]
disk = [ 'phy:vg0/myname,hda1,w','phy:vg0/myname_swap,hda2,w' ]
ip="1.2.3.4"
netmask="255.255.255.0"
root = "/dev/hda1 ro"
extra = "2"

Unfortunately the interface order in the (Linux)-Guest seems to be
random. This means after booting the guest the IP 1.2.3.4 is assigned to
either br701 or br9, but it's always random (both interfaces work in the
guest though). If I define mac-addressses for the interfaces there is no
difference. Can I somehow "lock" those interfaces? I don't know how. I'd
appreciate your help!

wogri

--
wogri@xxxxxxxxx
http://www.wogri.com
http://www.einradfilm.at


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



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

Message: 3
Date: Thu, 22 Mar 2007 16:44:04 +0700
From: "Fajar A. Nugraha" <fajar@xxxxxxxxxxxxx>
Subject: Re: [Xen-users] Error booting an opensuse iso image
To: xen-users@xxxxxxxxxxxxxxxxxxx
Message-ID: <46024FE4.4040003@xxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1

Pompon2 wrote:
> Hi list,
>
> I try to install opensuse 10.2 in a VM over Xen 3.0.4. My method is to
> declare a cdrom disk as hdb pointing to an iso image and boot the VM
> which launch the cdrom programm.
> However, with opensuse, the VM freeze just after having boot on the
> virtual cdrom. Last message is :
>
> ISOLINUX 3.31 0x45688c0e  Copyright (C) 1994-2005 H. Peter Anvin
> Loading...
>
> Then the virtual CPU goes to 100% use. and nothing more.
>

I believe this has been covered several times on this list. Short
answer, you can't. Not if you use Intel.

Long answer, you need a boot method that doesn't display menu or
graphics during kernel selection. I did it by creating a bootable USB
disk with syslinux and putting install kernel and initrd there. You can
then tell it to look for installation media from CD.

There are other ways to install OpenSuse though. You could clone your
existing system with dd. It should work.
Or you could install with with QEMU (that way you'd be using QEMU's CPU
emulation, not Intel's VT), and use the resulting disk image in Xen
later.

Regards,

Fajar



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

Message: 4
Date: Thu, 22 Mar 2007 10:46:55 +0100
From: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
Subject: RE: [Xen-users] Adding interface for communication between
        HVM     guest and xen VMM
To: "Praveen Kushwaha" <praveen.kushwaha@xxxxxxxxxxx>,
        xen-users@xxxxxxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx
Message-ID:
        <907625E08839C4409CE5768403633E0B018E1AFF@xxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset=us-ascii

> -----Original Message-----
> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx 
> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Praveen Kushwaha
> Sent: 21 March 2007 09:48
> To: xen-users@xxxxxxxxxxxxxxxxxxx; xen-devel@xxxxxxxxxxxxxxxxxxx
> Subject: [Xen-users] Adding interface for communication 
> between HVM guest and xen VMM
> 
> Hi,
> 
>          I have a question regarding communication between 
> HVM guest and xen VMM. As per my knowledge the communication 
> between HVM Guest OS (windows) and VMM is done through 
> 'VMExit' and 'VMEntry' operations and context is stored in 
> VMCS. Since there are no interfaces for communication in full 
> virtualization as there are interfaces (i.e.hypercalls) in 
> case of para virtualization. So my question is that, In case 
> of full virtualization, is it possible to add interfaces that 
> will be serving as a communication medium between HVM guest and VMM?
> 
> Also is there any other mechanism through which HVM guest and 
> VMM can communicate?

Yes, there are several ways to do this. The following are to some extent
used in Xen:
1. Both Intel and AMD support a VM[M]CALL instruction, which allows the
Guest to call into the hypervisor. Arguemnts to this instruction can be
placed on the stack or in register(s) or a combination of those two.
This is implemented in Xen for the purpose of supporting Para-virtual
drivers in Xen. 

2. Page-fault on a given "special" address (range). I.e. if the guest
writes (or reads) some special address, it causes a fault into the
hypervisor which is then checking for the special address. This is used
for hardware emulation of memory mapped IO devices for example. 

3. CPUID instruction using a "index" that isn't implemented for
hardware. I believe Xen uses CPUID 0x40000000 + x, where x is a small
integer. This can be used to transfer information from the hypervisor,
whereas on real hardware it's a "no-op" (it doesn't trap or fault if you
give it an unused index, it just sets the output registers to zeros
(although this particular behavious isn't strictly documented, it's
empirically found to be the case for both AMD and Intel CPU's for all
models that support CPUID instruction). 

[And a note on your terminology: VMCS is the Intel form - AMD uses
something called VMCB. Both serve the same purpose, and they are pretty
similar in structure. There is a slight difference in that VMCS can only
be accessed [legally] through a special set of VMWRITE/VMREAD
instructions, whilst the VMCB can be accesses through any regular memory
operation]

--
Mats 
> 
> If anyone have knowledge regarding it please reply.
> 
>  
> 
> Thanks,
> 
> Praveen Kushwaha
> 
>  
> 
> 





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

Message: 5
Date: Thu, 22 Mar 2007 10:55:29 +0100
From: Wolfgang Hennerbichler <wogri@xxxxxxxxx>
Subject: Re: [Xen-users] Interface Order
To: Kris Doosje <k.doosje@xxxxxxx>
Cc: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Message-ID: <282E0B99-300A-4A0E-B215-5A570DDE99F3@xxxxxxxxx>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed


On 22.03.2007, at 09:32, Kris Doosje wrote:
> I have no IP-config in the xen-config file, I do that in the guest  
> itself.

Other than that, do you have any special configuration in your guest?

wogri

-- 
www.vix.at // www.aco.net // www.sth.ac.at
wh@xxxxxxxxxxxx // WH844-RIPE
Vienna University Computer Center
Tel: +43 1 4277-14031 // Fax: -9140






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

Message: 6
Date: Thu, 22 Mar 2007 11:39:42 +0100
From: "Chris Fanning" <christopher.fanning@xxxxxxxxx>
Subject: [Xen-users] xentop and top don't agree
To: xen-users@xxxxxxxxxxxxxxxxxxx
Message-ID:
        <215ff4410703220339x6eb8115dp2d886d0be85d892a@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi,

I'm at a loss.

After starting xend (no domU's), xentop says cpu(%) usage at 87% and
it sits there.
However, 'top' on dom0 is 0% (or there abouts).

What might be causing this usage?
I'm using xen-3.0.4-1

Thanks for any help.
Chris.



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

Message: 7
Date: Thu, 22 Mar 2007 17:23:02 +0530
From: "Ashit Kumar" <Ashit_Kumar@xxxxxxxxxxxx>
Subject: [Xen-users] DomU configuration file
To: <xen-users@xxxxxxxxxxxxxxxxxxx>
Message-ID:
        
<BA9C9E8D6DE58F43B85F33C5FC1E1F26016B7B2D@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
itas.com>
        
Content-Type: text/plain; charset="us-ascii"

Hi,
I know this may be very basic question but I need some help . Actually I
installed VM using the Xen Administrative console.
Now I need to change the configuration file as I need to passthrough
(using the pci-hide) a SCSI contoller from Dom0 to DomU.
But I couldnot find the configuration file.
Where can I find the Configuration file for this DomU?
Actually I added the pciback.hide=<Bus:dev:op> in the grub.conf of
Backend and now I want to add this pass-through in the Configuration
file of DomU.

Any Help????

Thanks and regards
Ashit
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.xensource.com/archives/html/xen-users/attachments/20070322/
8c3dc7eb/attachment.html

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

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


End of Xen-users Digest, Vol 25, Issue 142
******************************************

_______________________________________________
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®.