I am looking to use mrtg to map bandwidth usage on my DomU''s. But by default the vif26.0, vif28.0 is created, can I assign the same vif everytime a domu is started? Thanks _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sun, 2008-06-01 at 12:59 -0400, Ronnie Tartar wrote:> I am looking to use mrtg to map bandwidth usage on my DomU''s. > > But by default the vif26.0, vif28.0 is created, can I assign the same vif > everytime a domu is started?I use cacti for this but its pretty much the same. In your config (vif=) just add vifname=blah>From a live config file:vif = [''bridge=br0, mac=00:00:6d:8c:2b:41, vifname=6-a-1.0''] The domname is 6-a-1, so I know easily (in cacti) that 6-a-1.0 is eth0 in guest 6-a-1. HTH Cheers, --Tim -- Monkey + Typewriter = Echoreply ( http://echoreply.us ) _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
How can I create my config files?
Or where are they stored, 
In /var/lib/xend/domains/XXXXXX/
I have .sxp files that look like the config files.  
This is what I have in the file
   (device
        (vif
            (bridge eth0)
            (mac 00:16:3e:02:da:66)
            (script vif-bridge)
            (uuid f4b36b7e-3a18-75e7-482e-4e5cfe752ade)
            (backend 0)
        )
    )
Thanks
-----Original Message-----
From: Tim Post [mailto:echo@echoreply.us] 
Sent: Sunday, June 01, 2008 1:22 PM
To: Ronnie Tartar
Cc: xen-users@lists.xensource.com
Subject: Re: [Xen-users] Virtual Inteface Assigment
On Sun, 2008-06-01 at 12:59 -0400, Ronnie Tartar wrote:> I am looking to use mrtg to map bandwidth usage on my DomU''s.
> 
> But by default the vif26.0, vif28.0 is created, can I assign the same vif
> everytime a domu is started?
I use cacti for this but its pretty much the same. In your config (vif=)
just add vifname=blah
>From a live config file:
vif = [''bridge=br0, mac=00:00:6d:8c:2b:41, vifname=6-a-1.0'']
The domname is 6-a-1, so I know easily (in cacti) that 6-a-1.0 is eth0
in guest 6-a-1.
HTH
Cheers,
--Tim
-- 
Monkey + Typewriter = Echoreply ( http://echoreply.us )
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
I tried adding :
   (device
        (vif
            (bridge eth0)
     		(vifname purple)
	      (mac 00:16:3e:02:da:66)
            (script vif-bridge)
            (uuid f4b36b7e-3a18-75e7-482e-4e5cfe752ade)
            (backend 0)
        )
    )
But after shutting down and restarting the domu, it went back to previous
without the line?
Thanks
-----Original Message-----
From: xen-users-bounces@lists.xensource.com
[mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Ronnie Tartar
Sent: Sunday, June 01, 2008 3:02 PM
To: xen-users@lists.xensource.com
Subject: RE: [Xen-users] Virtual Inteface Assigment
How can I create my config files?
Or where are they stored, 
In /var/lib/xend/domains/XXXXXX/
I have .sxp files that look like the config files.  
This is what I have in the file
   (device
        (vif
            (bridge eth0)
            (mac 00:16:3e:02:da:66)
            (script vif-bridge)
            (uuid f4b36b7e-3a18-75e7-482e-4e5cfe752ade)
            (backend 0)
        )
    )
Thanks
-----Original Message-----
From: Tim Post [mailto:echo@echoreply.us] 
Sent: Sunday, June 01, 2008 1:22 PM
To: Ronnie Tartar
Cc: xen-users@lists.xensource.com
Subject: Re: [Xen-users] Virtual Inteface Assigment
On Sun, 2008-06-01 at 12:59 -0400, Ronnie Tartar wrote:> I am looking to use mrtg to map bandwidth usage on my DomU''s.
> 
> But by default the vif26.0, vif28.0 is created, can I assign the same vif
> everytime a domu is started?
I use cacti for this but its pretty much the same. In your config (vif=)
just add vifname=blah
>From a live config file:
vif = [''bridge=br0, mac=00:00:6d:8c:2b:41, vifname=6-a-1.0'']
The domname is 6-a-1, so I know easily (in cacti) that 6-a-1.0 is eth0
in guest 6-a-1.
HTH
Cheers,
--Tim
-- 
Monkey + Typewriter = Echoreply ( http://echoreply.us )
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
I was able to set the xenstore value for vifname in the database using the
following command:
xenstore-write /vm/1463e93a-4c30-9cea-94ea-8fde0ead2ef7/device/vif/0/vifname
purple
But when I get my vif, it still goes to 
vif33.0   Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF  
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:115 errors:0 dropped:0 overruns:0 frame:0
          TX packets:97 errors:0 dropped:129 overruns:0 carrier:0
          collisions:0 txqueuelen:32 
          RX bytes:9124 (8.9 KiB)  TX bytes:8839 (8.6 KiB)
I''m not sure 
-----Original Message-----
From: xen-users-bounces@lists.xensource.com
[mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Tim Post
Sent: Sunday, June 01, 2008 1:22 PM
To: Ronnie Tartar
Cc: xen-users@lists.xensource.com
Subject: Re: [Xen-users] Virtual Inteface Assigment
On Sun, 2008-06-01 at 12:59 -0400, Ronnie Tartar wrote:> I am looking to use mrtg to map bandwidth usage on my DomU''s.
> 
> But by default the vif26.0, vif28.0 is created, can I assign the same vif
> everytime a domu is started?
I use cacti for this but its pretty much the same. In your config (vif=)
just add vifname=blah
>From a live config file:
vif = [''bridge=br0, mac=00:00:6d:8c:2b:41, vifname=6-a-1.0'']
The domname is 6-a-1, so I know easily (in cacti) that 6-a-1.0 is eth0
in guest 6-a-1.
HTH
Cheers,
--Tim
-- 
Monkey + Typewriter = Echoreply ( http://echoreply.us )
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
Ok, I guess the issue is that using virt-manager to create the domu''s
does
not create the configuration files necessary, I created a DomU and was able
to name it, it shows up, but now when I query with cacti, it shows multiple
test4 (name of vif), everytime it is restarted, same thing.  More 
Can I force it to give it a vmid?
-----Original Message-----
From: xen-users-bounces@lists.xensource.com
[mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Ronnie Tartar
Sent: Sunday, June 01, 2008 7:15 PM
To: xen-users@lists.xensource.com
Subject: RE: [Xen-users] Virtual Inteface Assigment
I was able to set the xenstore value for vifname in the database using the
following command:
xenstore-write /vm/1463e93a-4c30-9cea-94ea-8fde0ead2ef7/device/vif/0/vifname
purple
But when I get my vif, it still goes to 
vif33.0   Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF  
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:115 errors:0 dropped:0 overruns:0 frame:0
          TX packets:97 errors:0 dropped:129 overruns:0 carrier:0
          collisions:0 txqueuelen:32 
          RX bytes:9124 (8.9 KiB)  TX bytes:8839 (8.6 KiB)
I''m not sure 
-----Original Message-----
From: xen-users-bounces@lists.xensource.com
[mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Tim Post
Sent: Sunday, June 01, 2008 1:22 PM
To: Ronnie Tartar
Cc: xen-users@lists.xensource.com
Subject: Re: [Xen-users] Virtual Inteface Assigment
On Sun, 2008-06-01 at 12:59 -0400, Ronnie Tartar wrote:> I am looking to use mrtg to map bandwidth usage on my DomU''s.
> 
> But by default the vif26.0, vif28.0 is created, can I assign the same vif
> everytime a domu is started?
I use cacti for this but its pretty much the same. In your config (vif=)
just add vifname=blah
>From a live config file:
vif = [''bridge=br0, mac=00:00:6d:8c:2b:41, vifname=6-a-1.0'']
The domname is 6-a-1, so I know easily (in cacti) that 6-a-1.0 is eth0
in guest 6-a-1.
HTH
Cheers,
--Tim
-- 
Monkey + Typewriter = Echoreply ( http://echoreply.us )
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users