* Xen error:no memory allocted to domU
@ 2007-03-26 4:03 Hao Sun
2007-03-26 6:12 ` question about reboot VM tgh
0 siblings, 1 reply; 3+ messages in thread
From: Hao Sun @ 2007-03-26 4:03 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 1016 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1933 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* question about reboot VM
2007-03-26 4:03 Xen error:no memory allocted to domU Hao Sun
@ 2007-03-26 6:12 ` tgh
2007-03-26 8:43 ` Ewan Mellor
0 siblings, 1 reply; 3+ messages in thread
From: tgh @ 2007-03-26 6:12 UTC (permalink / raw)
To: 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: question about reboot VM
2007-03-26 6:12 ` question about reboot VM tgh
@ 2007-03-26 8:43 ` Ewan Mellor
0 siblings, 0 replies; 3+ messages in thread
From: Ewan Mellor @ 2007-03-26 8:43 UTC (permalink / raw)
To: tgh; +Cc: 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 rebooting
At 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-03-26 8:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-26 4:03 Xen error:no memory allocted to domU Hao Sun
2007-03-26 6:12 ` question about reboot VM tgh
2007-03-26 8:43 ` Ewan Mellor
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.