xentaur

changeset 36:7bf7abe92123

domain start mini fixes
author nata
date Tue Sep 25 22:47:27 2007 +0300 (2007-09-25)
parents 244f1602496a
children 3245e12b66d5
files build-xenomips-image xendomain.py xentaur.py
line diff
     1.1 --- a/build-xenomips-image	Tue Sep 25 22:16:24 2007 +0300
     1.2 +++ b/build-xenomips-image	Tue Sep 25 22:47:27 2007 +0300
     1.3 @@ -1,9 +1,9 @@
     1.4  #!/bin/sh
     1.5  
     1.6  DYNAMIPS_BUILD=no
     1.7 -XENOMIPS_FS_BUILD=yes
     1.8 +XENOMIPS_FS_BUILD=no
     1.9  CONFIG_FS_BUILD=no
    1.10 -IOS_FS_BUILD=no
    1.11 +IOS_FS_BUILD=yes
    1.12  
    1.13  XENOMIPS_DIR="files/"
    1.14  XENOMIPS_IMAGES_DIR="/home/nata/xenomips-images/"
     2.1 --- a/xendomain.py	Tue Sep 25 22:16:24 2007 +0300
     2.2 +++ b/xendomain.py	Tue Sep 25 22:47:27 2007 +0300
     2.3 @@ -12,7 +12,10 @@
     2.4      network=sys.modules['__main__'].network
     2.5      domain=sys.modules['__main__'].domain
     2.6  
     2.7 -#sys.path.append('/home/igor/xentaur')
     2.8 +import os
     2.9 +sys.path.append(os.environ['HOME']+"/xentaur")
    2.10 +os.environ['xendomain']=domain
    2.11 +
    2.12  #try:
    2.13  
    2.14  exec 'from %s import *' % (network)
    2.15 @@ -26,8 +29,8 @@
    2.16  
    2.17  pae=1
    2.18  if pae:
    2.19 -    kernel = "/boot/vmlinuz-2.6.18-4-xen-686"
    2.20 -    ramdisk = "/boot/initrd.img-2.6.18-4-xen-686"
    2.21 +    kernel = "/boot/vmlinuz-2.6.18-5-xen-686"
    2.22 +    ramdisk = "/boot/initrd.img-2.6.18-5-xen-686"
    2.23  else:
    2.24      kernel = "/boot/vmlinuz-2.6.18-without-PAE-4-xen-686"
    2.25      ramdisk = "/boot/initrd.img-2.6.18-without-PAE-4-xen-686-domU"
     3.1 --- a/xentaur.py	Tue Sep 25 22:16:24 2007 +0300
     3.2 +++ b/xentaur.py	Tue Sep 25 22:47:27 2007 +0300
     3.3 @@ -10,16 +10,10 @@
     3.4  sys.path.append('/etc/xen')
     3.5  sys.path.append(xentaur_path)
     3.6  
     3.7 -network='faberge'
     3.8 -domain='dyn1'
     3.9 +network='netw'
    3.10 +domain='dyn3'
    3.11  from xendomain import *
    3.12  
    3.13 -#try:
    3.14 -#    exec 'from '+network+' import bridges,vbridges_table, hidden_bridges, domains, broken_links, temporary_links, domain_types'
    3.15 -#except:
    3.16 -#    print "Can't find module: %s " % (xen_config_name)
    3.17 -#    sys.exit(0)
    3.18 -
    3.19  bridges_turned_down=[]
    3.20  
    3.21  from IPython.Shell import IPShellEmbed
    3.22 @@ -57,7 +51,7 @@
    3.23  
    3.24  def create_domains_script():
    3.25      for domain in domains:
    3.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"
    3.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"
    3.28  
    3.29  def destroy_domains_script():
    3.30      for domain in domains: