# HG changeset patch # User nata # Date 1190749647 -10800 # Node ID 7bf7abe921238e486368bddeb362e57e1240af8f # Parent 244f1602496a2e9f6730a0d184f3bba934c1ef89 domain start mini fixes diff -r 244f1602496a -r 7bf7abe92123 build-xenomips-image --- a/build-xenomips-image Tue Sep 25 22:16:24 2007 +0300 +++ b/build-xenomips-image Tue Sep 25 22:47:27 2007 +0300 @@ -1,9 +1,9 @@ #!/bin/sh DYNAMIPS_BUILD=no -XENOMIPS_FS_BUILD=yes +XENOMIPS_FS_BUILD=no CONFIG_FS_BUILD=no -IOS_FS_BUILD=no +IOS_FS_BUILD=yes XENOMIPS_DIR="files/" XENOMIPS_IMAGES_DIR="/home/nata/xenomips-images/" diff -r 244f1602496a -r 7bf7abe92123 xendomain.py --- a/xendomain.py Tue Sep 25 22:16:24 2007 +0300 +++ b/xendomain.py Tue Sep 25 22:47:27 2007 +0300 @@ -12,7 +12,10 @@ network=sys.modules['__main__'].network domain=sys.modules['__main__'].domain -#sys.path.append('/home/igor/xentaur') +import os +sys.path.append(os.environ['HOME']+"/xentaur") +os.environ['xendomain']=domain + #try: exec 'from %s import *' % (network) @@ -26,8 +29,8 @@ pae=1 if pae: - kernel = "/boot/vmlinuz-2.6.18-4-xen-686" - ramdisk = "/boot/initrd.img-2.6.18-4-xen-686" + kernel = "/boot/vmlinuz-2.6.18-5-xen-686" + ramdisk = "/boot/initrd.img-2.6.18-5-xen-686" else: kernel = "/boot/vmlinuz-2.6.18-without-PAE-4-xen-686" ramdisk = "/boot/initrd.img-2.6.18-without-PAE-4-xen-686-domU" diff -r 244f1602496a -r 7bf7abe92123 xentaur.py --- a/xentaur.py Tue Sep 25 22:16:24 2007 +0300 +++ b/xentaur.py Tue Sep 25 22:47:27 2007 +0300 @@ -10,16 +10,10 @@ sys.path.append('/etc/xen') sys.path.append(xentaur_path) -network='faberge' -domain='dyn1' +network='netw' +domain='dyn3' from xendomain import * -#try: -# exec 'from '+network+' import bridges,vbridges_table, hidden_bridges, domains, broken_links, temporary_links, domain_types' -#except: -# print "Can't find module: %s " % (xen_config_name) -# sys.exit(0) - bridges_turned_down=[] from IPython.Shell import IPShellEmbed @@ -57,7 +51,7 @@ def create_domains_script(): for domain in domains: - 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" + 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" def destroy_domains_script(): for domain in domains: