xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: min li <fly.limin@gmail.com>
To: Xen-devel@lists.xensource.com
Subject: fast boot from xen to linux and vice-versa by kexec
Date: Mon, 26 Apr 2010 14:28:29 +0800	[thread overview]
Message-ID: <n2v7d98bfeb1004252328xcaca8602na4903da47c78309b@mail.gmail.com> (raw)

Hi:
   recently i am doing fast boot from linux kernel to Xen
hypervisor,and  vice-versa. it means when linux is running on the real
machine, i just want to switch to Xen hypervisor without going through
bootloader. both linux and dom0 of Xen using the same filesystem. we
boot Xen and the Linux  with the following command in grub:

title       Ubuntu 8.04.2, kernel 2.6.29
root        (hd0,7)
kernel      /boot/vmlinuz-2.6.29
root=UUID=f16e6c92-7903-4884-a903-95bd7456f8a4 ro quiet splash
locale=zh_CN
initrd      /boot/2.6.29.img
quiet


title Xen 3.3.1 Ubuntu
root (hd0,7)
kernel /boot/xen-3.3.1.gz loglvl=all guest_loglvl=all
debug_stack_lines=80 com1=9600,8n1
module /boot/vmlinuz-2.6.18.8-xen ro
root=UUID=f16e6c92-7903-4884-a903-95bd7456f8a4 rhgb quiet
xencons=ttyS0,9600
module /boot/initrd-2.6.18.8-xen.img

and i write the kexec command like :

fast boot linux script :
kexec -l /boot/vmlinuz-2.6.29
--command-line="root=UUID=f16e6c92-7903-4884-a903-95bd7456f8a4 ro
quiet splash locale=zh_CN" --initrd="/boot/2.6.29.img"

kexec -e

fast boot xen script :
kexec -l -t multiboot-x86 --append="loglvl=all guest_loglvl=all
debug_stack_lines=80 com1=9600,8n1"
--module="/boot/vmlinuz-2.6.18.8-xen ro root=
UUID=f16e6c92-7903-4884-a903-95bd7456f8a4 rhgb quiet
xencons=ttyS0,9600" --module="/boot/initrd-2.6.18.8-xen.img"
/boot/xen-3.3.1.gz

kexec -e

the consequence is that
(1)when i was in linux, the both two scripts worked fine
(2)when i was in xen dom0, the "fast boot xen script " works fine, but
the "fast boot linux script" failed.

any suggestions to me are appreciated , thanks !

--
Min Li
School of Computer Science and Technology
Cluster and Grid Computing Lab
Services Computing Technology and System Lab
Huazhong University of Science and Technology
Wuhan, 430074, China
Tel: +86-139-8625-1431
Email: fly.limin@gmail.com

                 reply	other threads:[~2010-04-26  6:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=n2v7d98bfeb1004252328xcaca8602na4903da47c78309b@mail.gmail.com \
    --to=fly.limin@gmail.com \
    --cc=Xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).