|
|
|
|
|
|
|
|
|
|
xen-devel
Dear Amit Singh
The best way to do this is try to make it into an ISO image.
Then used the QEMU to boot the ISO. Please try the following
example
1. Create the following directoris called at /home
# mkdir /home/xencd
# mkdir /home/xencd/isobin
# mkdir /home/xencd/isobin/boot
# mkdir /home/xencd/isobin/boot/grub
2. Copy the grub files
# cp stage2_eltorito /home/xencd/isobin/boot/grub/
# cp menu.lst /home/xencd/isobin/boot/grub/
3. Copy the xen.gz and the domain0 kernel
# cp xen.gz-2.6.20-2925.9.fc7 /home/xencd/isobin/
# cp vmlinuz-2.6.20-2925.9.fc7xen /home/xencd/isobin/
# cp initrd-2.6.20-2925.9.fc7xen.img /home/xencd/isobin/
4. Edit the grub /home/xencd/isobin/boot/grub/menu.lst
with something like this
title XEN EXAMPLE ON BOOT CD
kernel (cd)/xen.gz-2.6.20-2925.9.fc7
module vmlinuz-2.6.20-2925.9.fc7xen
module initrd-2.6.20-2925.9.fc7xen.img
5. To compile into a boot cd, create bash script called
makexencd.sh in the /home/xencd directory!
(very important that it must resides in /home/xencd)
#!/bin/bash
BIN=boot/grub/stage2_eltorito
DIR=/home/xencd/isobin
mkisofs -pad -l -r -J -v -V "XEN EXAMPLE ON BOOT CD" -no-emul-boot
-no-bak -boot-load-size 4 -boot-info-table -b $BIN -hide-rr-moved
-o /home/xencd/xencdboot.iso $DIR
6. Run the makexencd.sh script and will get a bootable ISO
called /home/xencd/xencdboot.iso
# /home/xencd/makexencd.sh
7. To run it with QEMU (I recommend at least 512 meg)
# qemu -cdrom /home/xencd/xencdboot.iso -m 512
hope this example will work for you
-azril-
MIMOS BERHAD MALAYSIA
-----Original Message-----
From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx on behalf of Amit Singh
Sent: Wed 2/6/2008 4:50 PM
To: xen-devel@xxxxxxxxxxxxxxxxxxx
Cc: Amit Singh
Subject: [Xen-devel] Xen-Qemu
Hello all,
I have a goal to run Xen on Qemu (Basically qemu give an emulated platform as ARM in my case).
I have done some experiment for- Xen to run on qemu ( for i-386 platform)
There is a problem- on the run time we pass parameters such as:
shell# qemu -kernel xen-3.1.gz -initrd initrd-2.6.18-xen -hda disk.img -append "root= as per your root file system on disk.img"
there are much more option we can see qemu --help.
But to boot xen there are three entry in /boot/grub/grub.conf
title Fedora (2.6.20-2925.9.fc7xen)
root (hd0,1)
kernel /boot/xen.gz-2.6.20-2925.9.fc7
module /boot/vmlinuz-2.6.20-2925.9.fc7xen ro root=LABEL=/ rhgb quiet
module /boot/initrd-2.6.20-2925.9.fc7xen.img
But we can't pass module --in qemu , i am not sure if any one correct me??
I execute this:
qemu -m 128 -kernel xen-3.1.0.gz -initrd initrd-2.6.18-xen.img -hda disk.img -append "root=/dev/VolGroup00/LogVol00"
Error Log:
qemu: fatal: Trying to execute code outside RAM or ROM at 0x000a01a9
EAX=00009000 EBX=00000080 ECX=00000001 EDX=00000080
ESI=ffff004c EDI=0004ffde EBP=00000000 ESP=00008ffe
EIP=0000ffa9 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =9000 00090000 0000ffff 00009300
CS =9020 00090200 0000ffff 00000000
SS =9000 00090000 0000ffff 00009300
DS =9000 00090000 0000ffff 00009300
FS =9000 00090000 0000ffff 00009300
GS =9000 00090000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008000
TR =0000 00000000 0000ffff 00008000
GDT= 000fa4e4 00000030
IDT= 00000000 000003ff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
CCS=00000044 CCD=00000000 CCO=EFLAGS
FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
XMM00=00000000000000000000000000000000 XMM01=00000000000000000000000000000000
XMM02=00000000000000000000000000000000 XMM03=00000000000000000000000000000000
XMM04=00000000000000000000000000000000 XMM05=00000000000000000000000000000000
XMM06=00000000000000000000000000000000 XMM07=00000000000000000000000000000000
Aborted
If any one can help me i am really very thankful to you...
Thanks and Regards:
Amit singh
Nechclst , Noida India
Xen Development Team
------------------------------------------------------------------
-
-
-
DISCLAIMER:
This e-mail (including any attachments) may contain confidential
information. If you are not the intended recipient, you are hereby
notified that any dealing, review, distribution, printing, copying
or use of this e-mail is strictly prohibited. If you have received
this email in error, please notify the sender or MIMOS Berhad
immediately and delete the original message. Opinions, conclusions
and other information in this e-mail that do not relate to the
official business of MIMOS Berhad and/or its subsidiaries shall be
understood as neither given nor endorsed by MIMOS Berhad and/or its
subsidiaries and neither MIMOS Berhad nor its subsidiaries accepts
responsibility for the same. All liability arising from or in
connection with computer viruses and/or corrupted e-mails is
excluded to the fullest extent permitted by law.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|