Hi,
I installed xen-unstable.hg on SLES10. I created a domU configure file
"vm1" like below:
disk = [ 'file:/etc/xen/images/vm1,hda,w' ]
memory = 128
vcpus = 2
builder = 'linux'
name = 'vm1'
vif = [ 'mac=00:19:3e:43:04:02' ]
localtime = 0
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
extra = ' TERM=xterm'
bootloader = '/usr/lib/xen/boot/domUloader.py'
bootentry = '/dev/hda2:/boot/vmlinuz-xen,/boot/initrd-xen'
Error occured when I tried to create a domU using this configure file.
After I inputted "xm create -c vm1", this process paussed.
I logged in system in another console and found the domU vm1's stat is
"p"
after I type in "xm list". The memory allocted to domU vm1 is zero
which I
think is
the reason why it is paused. My dom0's memory is 1.8G. I don't know why
no
memory has been allocted to domU.
Did anyone come up with this problem? Please give me some suggestion,
thanks!
Best Regards, Sun Hao(孙皓)
E-mail: sunhao@cn.ibm.com
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
hi I try to understand the"xm reboot" for vm, but confused about the python code I could not find which function or code in C language is called by the python when rebooting could you help me Thanks in advance _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Mon, Mar 26, 2007 at 02:12:33PM +0800, tgh wrote:> hi > I try to understand the"xm reboot" for vm, but confused about the python > code > I could not find which function or code in C language is called by the > python when rebootingAt the client (xm) the code is in xen/xm/shutdown.py. This just sends simple messages to Xend (the server). In Xend there is some marshalling, but eventually the call pops out in xen/xend/XendDomainInfo.py:shutdown, with the reason set to "reboot". This makes a request to the domain to shut itself down, and the shutdown the proceeds asynchronously. When the domain finally shuts down, a watch is fired which comes into XendDomainInfo.refreshShutdown, and Xend handles the cleanup and reboot from there. There is no C code explicitly about rebooting -- this is handled by Xend as a cleanup of one domain, and creation of a new one in its place. HTH, Ewan. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel