xentaur

diff xentaur.py @ 37:3245e12b66d5

+example1
author igor
date Tue Sep 25 23:31:23 2007 +0300 (2007-09-25)
parents 244f1602496a
children f71b298798c2
line diff
     1.1 --- a/xentaur.py	Tue Sep 25 22:16:24 2007 +0300
     1.2 +++ b/xentaur.py	Tue Sep 25 23:31:23 2007 +0300
     1.3 @@ -10,16 +10,10 @@
     1.4  sys.path.append('/etc/xen')
     1.5  sys.path.append(xentaur_path)
     1.6  
     1.7 -network='faberge'
     1.8 -domain='dyn1'
     1.9 +network='netw'
    1.10 +domain='dyn3'
    1.11  from xendomain import *
    1.12  
    1.13 -#try:
    1.14 -#    exec 'from '+network+' import bridges,vbridges_table, hidden_bridges, domains, broken_links, temporary_links, domain_types'
    1.15 -#except:
    1.16 -#    print "Can't find module: %s " % (xen_config_name)
    1.17 -#    sys.exit(0)
    1.18 -
    1.19  bridges_turned_down=[]
    1.20  
    1.21  from IPython.Shell import IPShellEmbed
    1.22 @@ -57,7 +51,7 @@
    1.23  
    1.24  def create_domains_script():
    1.25      for domain in domains:
    1.26 -        print "sudo /usr/sbin/xm create "+xentaur_path+"/xendomain "+" domain="+domain+" && sleep 1 && sudo /usr/sbin/xm sched-credit -d $(sudo /usr/sbin/xm list | grep "+domain+" | awk '{print $2}') -c 10 && sleep 1"
    1.27 +        print "sudo /usr/sbin/xm create "+xentaur_path+"/xendomain.py "+" domain="+domain+" network="+network+" && sleep 1 && sudo /usr/sbin/xm sched-credit -d $(sudo /usr/sbin/xm list | grep "+domain+" | awk '{print $2}') -c 10 && sleep 1"
    1.28  
    1.29  def destroy_domains_script():
    1.30      for domain in domains: