Hi,
Thank for your reply.
The script works fine when I manually create a virtual server but it
didn''t
solve the problem when the user of the virtual server reboots it.
My configuration file is the following:
----------------------------------------------------------------------------------------------------------------------------
# -*- mode: python; -*-
kernel = "/boot/vmlinuz-2.6-xenU"
ramdisk = "/boot/initrd-2.6-xenU"
memory = 1000
name = "xendom1"
cpus = "3"
vcpus = 1
vif = [ '''' ]
disk = [
''file:/vms/xendom1/xendom1.img,sda1,w'',''file:/vms/xendom1/xendom1.swap,sda2,w''
]
dhcp="off"
ip="10.0.0.10"
netmask="255.255.255.0"
gateway="10.0.0.1"
root = "/dev/sda1 ro"
extra = "3"
on_poweroff = ''destroy''
on_reboot = ''restart''
on_crash = ''restart''
import time
self = os.fork()
if not self:
time.sleep (10)
os.execvp("xm", ["xm", "sched-sedf",
"xmEfra", "-p 100", "-s 50" , "-e
0"])
-----------------------------------------------------------------------------------------------------------------
On 7/8/06, Timo Benk <timo.benk@gmx.de> wrote:>
> Hi,
>
> afaik there are no parameters you can set in the configuration,
> but you can use the following workaround at the end of the
> config file:
>
> ---<snip>---
> import time
> self = os.fork()
> if not self:
> time.sleep (5)
> os.execvp("xm", ["xm", "sched-sedf",
"xendom1", "-p 100", "-s 20"])
> ---<snip>---
>
> Greetings,
> -timo
>
> On Sat, 8 Jul 2006 06:04:18 +0200, Efraim <efraimg@gmail.com> wrote:
> > Hi,
> > I''m using sched-sedf to limit cpu usage on Xen 3.0.2, but
when one of
> the
> > virtual servers is rebooted the policy is automatically cleared.
> > There is some way to maintain the policy?
> >
> > Thanks.
> >
> >
> --
> Timo Benk - Jabber ID: fry@jabber.org - ICQ ID: #241877854
> PGP Public Key: http://m28s01.vlinux.de/timo_benk_gpg_key.asc
>
>
>
> _______________________________________________
> 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