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

[Xen-users] Re: How to set particular ip on vif in dom0 after domU start?


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "Tomas Zatko" <tomas.zatko@xxxxxxxxx>
  • Date: Thu, 9 Oct 2008 14:58:38 +0200
  • Delivery-date: Thu, 09 Oct 2008 05:59:23 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=UoQN438J0Ch5vRnPrLGFZGusHfoPAOWZzoB1agAkpHI766cT6xGX+Be9kVnzrLnH9T CobhcX5QMoWpQu9kNDQPTiyL0Ev71Ccb4Vzsl48WjT3mNGP+q4Fq1I8B+CqMP6Gd06Jg Y7N4nU3WGpIJ1RJNZylks4IFerzdMkXOMpFZ0=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi xen-users

I came back to my problem today and finally found solution.
I added to vif-route script (/etc/xen/scripts/vif-route, online command section) this simple code:

        if [ -e /etc/xen/scripts/${vif} ]
        then   
                /etc/xen/scripts/${vif}
        fi                                                                                      

So when i use named vif device for domU (vif-alfresco.0 in this case) i create very simple script with vif name (/etc/xen/scripts/vif-alfresco.0) that will call command(s) (ip addr add 192.168.13.1/30 scope global dev vif-alfresco.0) in dom0.

I dont know if there is clearer way but this works well.

Best regards
Tomas Zatko



On Tue, Oct 7, 2008 at 11:56 AM, Tomas Zatko <tomas.zatko@xxxxxxxxx> wrote:
Hi xen-users

I am looking for answer to my question second day, but i cant find it.
I have domU with vif-route. How can i set particular ip on vif interface in dom0 after domU start?
(Or run some custom script for particular domU?)
Now i do it by hand (in dom0): ip addr add 192.168.13.1/30 scope global dev vif-alfresco.0
Thank you

Best regards
Tomas Zatko

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