WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] 'xm_vars' not defined error

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] 'xm_vars' not defined error
From: Kathy Chen <kathy_ios@xxxxxxxxx>
Date: Thu, 15 Jul 2004 20:50:41 -0700 (PDT)
Delivery-date: Fri, 16 Jul 2004 04:52:28 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: <E1Bl9HT-0005zs-00@xxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
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