[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] 'xm_vars' not defined error
First, thanks Ian and Niraj's replies. The previous prolem got solved. Now I have some new problem when starting a new domain. Everything goes well when I installed the latest version, rebooted the machine, and made "xend start". But when I modified the xmdefaults to create a new domain, some error appears, shown as following: $xm create -D vmid=1 -f dom1.conf -i ***.***.***.*** Traceback (most recent call last): File "/usr/sbin/xm", line 6, in ? main.main(sys.argv) File "/usr/lib/python2.2/site-packages/xen/xm/main.py", line 448, in main xm.main(args) File "/usr/lib/python2.2/site-packages/xen/xm/main.py", line 79, in main p.main(args[1:]) File "/usr/lib/python2.2/site-packages/xen/xm/main.py", line 153, in main create.main(args) File "/usr/lib/python2.2/site-packages/xen/xm/create.py", line 359, in main opts.load_defaults() File "/usr/lib/python2.2/site-packages/xen/xm/opts.py", line 273, in load_defaults self.load(p) File "/usr/lib/python2.2/site-packages/xen/xm/opts.py", line 297, in load execfile(defaults, globals, locals) File "dom1.conf", line 16, in ? xm_vars.var('vmid', use="Virtual machine id. Integer greater than 0.", check=vmid_check) NameError: name 'xm_vars' is not defined. In the xmdefaults' comment, it says that 'xm_vars' is defined automatically. So what's the possible reason fo r this error? Thanks a lot for your hard work! Kathy Besides, the following is the output of the "xend start", I guess it shows xend starts correctly: brctl addbr nbe-br brctl sethello nbe-br 0 brctl setfd nbe-br 0 brctl stp nbe-br off ifconfig nbe-br *.*.*.*.* netmask *.*.*.*.* broadcast *.*.*.*.* up route add default gateway *.*.*.*.* dev nbe-br brctl addif nbe-br eth0 ifconfig eth0 0.0.0.0 initial_refresh> db dom= ['domain', ['id', '0'], ['name', 'Domain-0'], ['memory', '119']] xc dom= {'cpu_time': 348750378835L, 'name': 'Domain-0', 'dying': 0, 'dom': 0, 'maxmem_kb': 131072, 'paused': 0, 'crashed': 0, 'running': 1, 'shutdown_reason': 0, 'shutdown': 0, 'mem_kb': 121856, 'cpu': 0, 'blocked': 0} dom= 0 config= ['domain', ['id', '0'], ['name', 'Domain-0'], ['memory', '119']] dom= 0 new XendDomain>reap> XendDomain>reap< XendDomain>initial_refresh> doms: dom domain id=0 name=Domain-0 memory=119 EVENT> xend.start 0 __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |