Hi there, I am new to Xen. Just began trying it out from day-before. I have a CentOS 4.4 install on my hda6 partition. And I have a openSUSE 10.2 install on my hda8 partition. For openSUSE 10.2, I chose the Xen options while installing, and so I have the xen kernels too installed. For CentOS 4.4, I downloaded the Xen 3.0.2 source and compiled from there. (I followed the instructions at this site "http://mark.foster.cc/wiki/index.php/Xen_on_CentOS-4" for CentOS). CentOS and Xen boot well. No issues. I''ve copied the openSUSE xen kernel and initrd to "/boot/xen" on my CentOS partition. Here''s the relevant enties from "/etc/xen/opensuse": --- kernel = "/boot/xen/vmlinuz-2.6.18.2-34-xen" ramdisk = "/boot/xen/initrd-2.6.18.2-34-xen" memory = 256 name = "brahma" disk = [ ''phy:/dev/hda8,/dev/hda8,w'' ] vcpus = 1 vif = [ '''' ] root = "/dev/hda8 ro" extra = "3" --- Everything else is as default. After that I do: # xm create -c opensuse Using config file "/etc/xen/opensuse". Started domain brahma # xm console brahma Error: the domain ''brahma'' does not exist. # xm list Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 128 1 r----- 107.8 As you can see, the domain brahma starts up but is nowhere to be seen. I get no error messages or any other sort of output. I checked xend.log, there''s a lot of stuff in there it didn''t make too much sense to me. I do see a lot of waiting lines though, and some mention of hotplug and stuff -- so I guess it must be something to do with openSUSE not seeing some devices. Not sure ... If anyone could you have a look at this log file and throw more light, it would be most appreciated. Regards, Rakhesh _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rakhesh Sasidharan
2007-Feb-16 09:08 UTC
Re: [Xen-users] openSUSE in domU on a CentOS dom0
On 2/16/07, trilok nuwal <tc.nuwal@gmail.com> wrote:> modify disk = [ ''phy:/dev/hda8,/dev/hda8,w'' ] to disk = [ > ''phy:/dev/hda8,hda8,w'' ] an d try to recreate it > >That doesn''t work. That was how things were initially. I just modified it to /dev/hda8 while troubleshooting to see if that helps. It doesn''t. Any other ideas please? Regards, Rakhesh _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
u r using para virtuialization. So dom0 openSuse cant read the kernel in /boot/xen in guest os. so use below config file kernel = "/boot/vmlinuz-2.6.18.2-34-xen" ramdisk = "/boot/initrd-2.6.18.2-34-xen" memory = 256 name = "brahma" disk = [ ''phy:/dev/hda8,sda1,w'' ] vcpus = 1 vif = [ '''' ] root = "/dev/sda1 ro" extra = "3" try it out and let me know if any issue. On 2/16/07, Rakhesh Sasidharan <rakheshster@gmail.com> wrote:> > On 2/16/07, trilok nuwal <tc.nuwal@gmail.com> wrote: > > modify disk = [ ''phy:/dev/hda8,/dev/hda8,w'' ] to disk = [ > > ''phy:/dev/hda8,hda8,w'' ] an d try to recreate it > > > > > > That doesn''t work. That was how things were initially. I just modified > it to /dev/hda8 while troubleshooting to see if that helps. It > doesn''t. > > Any other ideas please? > > Regards, > Rakhesh >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rakhesh Sasidharan
2007-Feb-16 09:43 UTC
Re: [Xen-users] openSUSE in domU on a CentOS dom0
On 2/16/07, trilok nuwal <tc.nuwal@gmail.com> wrote:> u r using para virtuialization. > So dom0 openSuse cant read the kernel in /boot/xen in guest os. > > so use below config file > kernel = "/boot/vmlinuz-2.6.18.2-34-xen" > ramdisk = "/boot/initrd-2.6.18.2-34-xen" > memory = 256 > name = "brahma" > disk = [ ''phy:/dev/hda8,sda1,w'' ] > vcpus = 1 > vif = [ '''' ] > root = "/dev/sda1 ro" > extra = "3" > > try it out and let me know if any issue.Same results. I changed the hda8s to sda1s in my config file and also in openSUSE''s fstab. I''ve attached the xend.log file ... Regards, Rakhesh _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
could u copy yr fstab of CentOS root. On 2/16/07, Rakhesh Sasidharan <rakheshster@gmail.com> wrote:> > On 2/16/07, trilok nuwal <tc.nuwal@gmail.com> wrote: > > u r using para virtuialization. > > So dom0 openSuse cant read the kernel in /boot/xen in guest os. > > > > so use below config file > > kernel = "/boot/vmlinuz-2.6.18.2-34-xen" > > ramdisk = "/boot/initrd-2.6.18.2-34-xen" > > memory = 256 > > name = "brahma" > > disk = [ ''phy:/dev/hda8,sda1,w'' ] > > vcpus = 1 > > vif = [ '''' ] > > root = "/dev/sda1 ro" > > extra = "3" > > > > try it out and let me know if any issue. > > Same results. I changed the hda8s to sda1s in my config file and also > in openSUSE''s fstab. > > I''ve attached the xend.log file ... > > Regards, > Rakhesh > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rakhesh Sasidharan
2007-Feb-16 12:03 UTC
Re: [Xen-users] openSUSE in domU on a CentOS dom0
On 2/16/07, trilok nuwal <tc.nuwal@gmail.com> wrote:> could u copy yr fstab of CentOS root.Sure ... /dev/hda6 / ext3 defaults 1 1 /dev/hda5 swap swap defaults 0 0 none /dev/pts devpts gid=5,mode=620 0 0 none /dev/shm tmpfs defaults 0 0 none /proc proc defaults 0 0 none /sys sysfs defaults 0 0 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rakhesh Sasidharan
2007-Feb-16 12:16 UTC
Re: [Xen-users] openSUSE in domU on a CentOS dom0
On 2/16/07, Rakhesh Sasidharan <rakheshster@gmail.com> wrote:> On 2/16/07, trilok nuwal <tc.nuwal@gmail.com> wrote: > > could u copy yr fstab of CentOS root. > > Sure ... > > /dev/hda6 / ext3 defaults 1 1 > /dev/hda5 swap swap defaults 0 0 > > none /dev/pts devpts gid=5,mode=620 0 0 > none /dev/shm tmpfs defaults 0 0 > none /proc proc defaults 0 0 > none /sys sysfs defaults 0 0Are there any special steps I need to follow to boot openSUSE as domU? I found this link for instance -- "http://www.suse.de/~kraxel/xen/suse-guest.html" -- and it talks about using a bootloader for loading openSUSE. Didn''t make much sense to me, but I thought I''d point it out just in case ... _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
ok, change your config file to kernel = "/boot/xen/vmlinuz-2.6.18.2-34-xen" ramdisk = "/boot/xen/initrd-2.6.18.2-34-xen" memory = 256 name = "brahma" disk = [ ''phy:/dev/hda8,sda1,w'' ] vcpus = 1 vif = [ '''' ] root = "/dev/sda1 ro" extra = "3" and change yr /etc/fstab of open suse to below one. /dev/sda1 is root for opensuse domain. /dev/sda1 / ext3 defaults 1 1 none /dev/pts devpts gid=5,mode=620 0 0 none /dev/shm tmpfs defaults 0 0 none /proc proc defaults 0 0 none /sys sysfs defaults 0 0 Just try it. i think it would be just fine. one good document to follow. http://www.cl.cam.ac.uk/research/srg/netos/xen/readmes/user/user.html On 2/16/07, Rakhesh Sasidharan <rakheshster@gmail.com> wrote:> > On 2/16/07, Rakhesh Sasidharan <rakheshster@gmail.com> wrote: > > On 2/16/07, trilok nuwal <tc.nuwal@gmail.com> wrote: > > > could u copy yr fstab of CentOS root. > > > > Sure ... > > > > /dev/hda6 / > ext3 defaults 1 1 > > /dev/hda5 > swap swap defaults 0 0 > > > > > none /dev/pts devpts gid=5,mode=620 0 0 > > none /dev/shm tmpfs > defaults 0 0 > > none /proc > proc defaults 0 0 > > none /sys sysfs > defaults 0 0 > > Are there any special steps I need to follow to boot openSUSE as domU? > > I found this link for instance -- > "http://www.suse.de/~kraxel/xen/suse-guest.html" -- and it talks about > using a bootloader for loading openSUSE. Didn''t make much sense to me, > but I thought I''d point it out just in case ... >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rakhesh Sasidharan
2007-Feb-16 13:38 UTC
Re: [Xen-users] openSUSE in domU on a CentOS dom0
On 2/16/07, trilok nuwal <tc.nuwal@gmail.com> wrote:> ok, change your config file to > > kernel = "/boot/xen/vmlinuz-2.6.18.2-34-xen" > ramdisk = "/boot/xen/initrd-2.6.18.2-34-xen" > memory = 256 > name = "brahma" > disk = [ ''phy:/dev/hda8,sda1,w'' ] > vcpus = 1 > vif = [ '''' ] > root = "/dev/sda1 ro" > extra = "3"That''s the same changes as what you gave a few mails above, right? Change the hda8 to sda1. Or is there anything else I missed? If its the same, I''ve already done that ...> and change yr /etc/fstab of open suse to below one. /dev/sda1 is root for > opensuse domain. > > /dev/sda1 / ext3 defaults 1 1 > none /dev/pts devpts gid=5,mode=620 0 0 > none /dev/shm tmpfs defaults 0 0 > none /proc proc defaults 0 0 > none /sys sysfs defaults 0 0 > > Just try it. i think it would be just fine.It already is. I made that change too when you asked me to change things to sda1. Here''s how my openSUSE fstab currently looks: /dev/sda1 / ext3 acl,user_xattr 1 1 proc /proc proc defaults 0 0 sysfs /sys sysfs noauto 0 0 debugfs /sys/kernel/debug debugfs noauto 0 0 usbfs /proc/bus/usb usbfs noauto 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 It doesn''t work. Any other ideas? I wish I could atleast see what''s happening or where things are going wrong. A console output or something when the openSUSE machine tries to startup. The log file doesn''t make much sense to me, and except for a few waiting for such and such device messages I don''t see any errors. Thanks for the user manual link. I''ve been through that (briefly) as part of setting these things up. A question though: now that you mentioned the user manual. I didn''t understand why you said above I must export my host /dev/hda8 as the guests'' /dev/sda1 coz its paravirtualized. Why is it that way? Could elaborate a bit please or point me to some docs? Thanks for going through with me on this ......... Much appreciated. Please let me know if there''s anything else I should try. Regards, Rakhesh ps. I was just going through the openSUSE boot partition now, looking for more clues. I note that openSUSE 10.2 ships with Xen 3.0.3 (all the Xen files in openSUSE mention 3.0.3). Could that be a problem? (I''d assume the logs would mention something if that were a problem ...) _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 2/16/07, Rakhesh Sasidharan <rakheshster@gmail.com> wrote:> > On 2/16/07, trilok nuwal <tc.nuwal@gmail.com> wrote: > > ok, change your config file to > > > > kernel = "/boot/xen/vmlinuz-2.6.18.2-34-xen" > > ramdisk = "/boot/xen/initrd-2.6.18.2-34-xen" > > memory = 256 > > name = "brahma" > > disk = [ ''phy:/dev/hda8,sda1,w'' ] > > vcpus = 1 > > vif = [ '''' ] > > root = "/dev/sda1 ro" > > extra = "3" > > That''s the same changes as what you gave a few mails above, right? > Change the hda8 to sda1. Or is there anything else I missed? If its > the same, I''ve already done that ... > > > and change yr /etc/fstab of open suse to below one. /dev/sda1 is root > for > > opensuse domain. > > > > /dev/sda1 / ext3 defaults 1 1 > > none /dev/pts devpts gid=5,mode=620 0 > 0 > > none /dev/shm tmpfs > defaults 0 0 > > none /proc > proc defaults 0 0 > > none /sys sysfs > defaults 0 0 > > > > Just try it. i think it would be just fine. > > It already is. I made that change too when you asked me to change > things to sda1. Here''s how my openSUSE fstab currently looks: > > /dev/sda1 / ext3 > acl,user_xattr 1 1 > proc /proc proc > defaults 0 0 > sysfs /sys > sysfs noauto 0 0 > debugfs /sys/kernel/debug debugfs noauto 0 > 0 > usbfs /proc/bus/usb usbfs noauto 0 > 0 > devpts /dev/pts devpts mode=0620,gid=5 > 0 0 > > It doesn''t work. > > Any other ideas? I wish I could atleast see what''s happening or where > things are going wrong. A console output or something when the > openSUSE machine tries to startup. The log file doesn''t make much > sense to me, and except for a few waiting for such and such device > messages I don''t see any errors. > > Thanks for the user manual link. I''ve been through that (briefly) as > part of setting these things up. > > A question though: now that you mentioned the user manual. I didn''t > understand why you said above I must export my host /dev/hda8 as the > guests'' /dev/sda1 coz its paravirtualized. Why is it that way? Could > elaborate a bit please or point me to some docs?this is becuse yr config file map the real physical partition /dev/hda8 to virtual /dev/sda1 in yr guest domain. Thanks for going through with me on this ......... Much appreciated.> Please let me know if there''s anything else I should try. > > Regards, > Rakhesh > > ps. I was just going through the openSUSE boot partition now, looking > for more clues. I note that openSUSE 10.2 ships with Xen 3.0.3 (all > the Xen files in openSUSE mention 3.0.3). Could that be a problem? > (I''d assume the logs would mention something if that were a problem > ...) >xend.log showing that yr domain is crashing. How much memory do u have on yr machine ? and /dev/hda8 is yr root partition or not for openSuse ? Could u check xen-hotplug.log logs, if anythg is there. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rakhesh Sasidharan
2007-Feb-16 14:19 UTC
Re: [Xen-users] openSUSE in domU on a CentOS dom0
> > A question though: now that you mentioned the user manual. I didn''t > > understand why you said above I must export my host /dev/hda8 as the > > guests'' /dev/sda1 coz its paravirtualized. Why is it that way? Could > > elaborate a bit please or point me to some docs? > > this is becuse yr config file map the real physical partition /dev/hda8 to > virtual /dev/sda1 in yr guest domain.So always all my real partitions will be mapped from hd* to sd*. I can''t map from hd* to hd* hmm?> xend.log showing that yr domain is crashing. How much memory do u have on > yr machine ? > and /dev/hda8 is yr root partition or not for openSuse ? > Could u check xen-hotplug.log logs, if anythg is there.My machine has 512MB RAM. I have limited the dom0 memory to 128MB by passing dom0_mem=131072 to Xen in GRUB. I have assigned 256MB RAM to openSUSE. These are the entries I have in xen-hotplug.log: xenstore-read: couldn''t read path backend/vbd/14/773/params xenstore-read: couldn''t read path backend/vbd/2/776/params xenstore-read: couldn''t read path backend/vbd/2/773/params xenstore-read: couldn''t read path backend/vbd/4/776/params xenstore-read: couldn''t read path backend/vbd/4/773/params interface vif4.0 does not exist! interface vif10.0 does not exist! interface vif12.0 does not exist! interface vif14.0 does not exist! interface vif18.0 does not exist! Makes no sense to me ... What is xen-hotplug.log supposed to contain? Just in case its of some use, here''s the output to "xm info": host : ____ release : 2.6.16-xen version : #1 SMP Thu Feb 15 19:17:07 GST 2007 machine : i686 nr_cpus : 1 nr_nodes : 1 sockets_per_node : 1 cores_per_socket : 1 threads_per_core : 1 cpu_mhz : 2391 hw_caps : bfebfbff:00000000:00000000:00000080:00004400 total_memory : 504 free_memory : 357 xen_major : 3 xen_minor : 0 xen_extra : .2 xen_caps : xen-3.0-x86_32 platform_params : virt_start=0xfc000000 xen_changeset : Sat Apr 8 12:14:27 2006 +0100 9598:1bce05ff1e52 cc_compiler : gcc version 3.4.6 20060404 (Red Hat 3.4.6-3) cc_compile_by : root cc_compile_domain : ____ cc_compile_date : Thu Feb 15 18:22:33 GST 2007 Regards, Rakhesh _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rakhesh Sasidharan
2007-Feb-17 04:18 UTC
Re: [Xen-users] openSUSE in domU on a CentOS dom0
No answers anyone? On 2/16/07, Rakhesh Sasidharan <rakheshster@gmail.com> wrote:> > > A question though: now that you mentioned the user manual. I didn''t > > > understand why you said above I must export my host /dev/hda8 as the > > > guests'' /dev/sda1 coz its paravirtualized. Why is it that way? Could > > > elaborate a bit please or point me to some docs? > > > > this is becuse yr config file map the real physical partition /dev/hda8 to > > virtual /dev/sda1 in yr guest domain. > > So always all my real partitions will be mapped from hd* to sd*. I > can''t map from hd* to hd* hmm? > > > xend.log showing that yr domain is crashing. How much memory do u have on > > yr machine ? > > and /dev/hda8 is yr root partition or not for openSuse ? > > Could u check xen-hotplug.log logs, if anythg is there. > > My machine has 512MB RAM. I have limited the dom0 memory to 128MB by > passing dom0_mem=131072 to Xen in GRUB. > > I have assigned 256MB RAM to openSUSE. > > These are the entries I have in xen-hotplug.log: > > xenstore-read: couldn''t read path backend/vbd/14/773/params > xenstore-read: couldn''t read path backend/vbd/2/776/params > xenstore-read: couldn''t read path backend/vbd/2/773/params > xenstore-read: couldn''t read path backend/vbd/4/776/params > xenstore-read: couldn''t read path backend/vbd/4/773/params > interface vif4.0 does not exist! > interface vif10.0 does not exist! > interface vif12.0 does not exist! > interface vif14.0 does not exist! > interface vif18.0 does not exist! > > Makes no sense to me ... What is xen-hotplug.log supposed to contain? > > Just in case its of some use, here''s the output to "xm info": > > host : ____ > release : 2.6.16-xen > version : #1 SMP Thu Feb 15 19:17:07 GST 2007 > machine : i686 > nr_cpus : 1 > nr_nodes : 1 > sockets_per_node : 1 > cores_per_socket : 1 > threads_per_core : 1 > cpu_mhz : 2391 > hw_caps : bfebfbff:00000000:00000000:00000080:00004400 > total_memory : 504 > free_memory : 357 > xen_major : 3 > xen_minor : 0 > xen_extra : .2 > xen_caps : xen-3.0-x86_32 > platform_params : virt_start=0xfc000000 > xen_changeset : Sat Apr 8 12:14:27 2006 +0100 9598:1bce05ff1e52 > cc_compiler : gcc version 3.4.6 20060404 (Red Hat 3.4.6-3) > cc_compile_by : root > cc_compile_domain : ____ > cc_compile_date : Thu Feb 15 18:22:33 GST 2007 > > Regards, > Rakhesh >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
look to xen-wiki http://wiki.xensource.com/xenwiki/XenFaq#head-df3907c74b496fd004d2f3f8de28ac7990d31bb5 FAQ 4.12 might be a help. On 2/17/07, Rakhesh Sasidharan <rakheshster@gmail.com> wrote:> > No answers anyone? > > On 2/16/07, Rakhesh Sasidharan <rakheshster@gmail.com> wrote: > > > > A question though: now that you mentioned the user manual. I didn''t > > > > understand why you said above I must export my host /dev/hda8 as the > > > > guests'' /dev/sda1 coz its paravirtualized. Why is it that way? Could > > > > elaborate a bit please or point me to some docs? > > > > > > this is becuse yr config file map the real physical > partition /dev/hda8 to > > > virtual /dev/sda1 in yr guest domain. > > > > So always all my real partitions will be mapped from hd* to sd*. I > > can''t map from hd* to hd* hmm? > > > > > xend.log showing that yr domain is crashing. How much memory do u > have on > > > yr machine ? > > > and /dev/hda8 is yr root partition or not for openSuse ? > > > Could u check xen-hotplug.log logs, if anythg is there. > > > > My machine has 512MB RAM. I have limited the dom0 memory to 128MB by > > passing dom0_mem=131072 to Xen in GRUB. > > > > I have assigned 256MB RAM to openSUSE. > > > > These are the entries I have in xen-hotplug.log: > > > > xenstore-read: couldn''t read path backend/vbd/14/773/params > > xenstore-read: couldn''t read path backend/vbd/2/776/params > > xenstore-read: couldn''t read path backend/vbd/2/773/params > > xenstore-read: couldn''t read path backend/vbd/4/776/params > > xenstore-read: couldn''t read path backend/vbd/4/773/params > > interface vif4.0 does not exist! > > interface vif10.0 does not exist! > > interface vif12.0 does not exist! > > interface vif14.0 does not exist! > > interface vif18.0 does not exist! > > > > Makes no sense to me ... What is xen-hotplug.log supposed to contain? > > > > Just in case its of some use, here''s the output to "xm info": > > > > host : ____ > > release : 2.6.16-xen > > version : #1 SMP Thu Feb 15 19:17:07 GST 2007 > > machine : i686 > > nr_cpus : 1 > > nr_nodes : 1 > > sockets_per_node : 1 > > cores_per_socket : 1 > > threads_per_core : 1 > > cpu_mhz : 2391 > > hw_caps : bfebfbff:00000000:00000000:00000080:00004400 > > total_memory : 504 > > free_memory : 357 > > xen_major : 3 > > xen_minor : 0 > > xen_extra : .2 > > xen_caps : xen-3.0-x86_32 > > platform_params : virt_start=0xfc000000 > > xen_changeset : Sat Apr 8 12:14:27 2006 +0100 > 9598:1bce05ff1e52 > > cc_compiler : gcc version 3.4.6 20060404 (Red Hat 3.4.6-3) > > cc_compile_by : root > > cc_compile_domain : ____ > > cc_compile_date : Thu Feb 15 18:22:33 GST 2007 > > > > Regards, > > Rakhesh > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rakhesh Sasidharan
2007-Feb-17 17:11 UTC
Re: [Xen-users] openSUSE in domU on a CentOS dom0
On 2/17/07, trilok nuwal <tc.nuwal@gmail.com> wrote:> look to xen-wiki > http://wiki.xensource.com/xenwiki/XenFaq#head-df3907c74b496fd004d2f3f8de28ac7990d31bb5 > FAQ 4.12 might be a help.Doesn''t work. Surprisingly, I rebooted my host machine (CentOS) and then when I created the openSUSE VM I got some funny errors. I couldn''t capture them that time unfortunately, and there was no way for me to repeat the errors (rebooting and trying didn''t help). The errors were some assembly registers kind of output. Hex. Some register names. And so on. I''ve seen such errors when there are memory related problems and Windows refuses to boot ... Dunno what they could mean in this context. If I can repeat the errors somehow I''ll paste some info ........ Regards, Rakhesh _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users