I am trying to get Mini-os working on x86_64 Xen. I hacked in some of the x86_64 hypecalls to get it compile and build. But when I try to load the mini-os domain I get the following error. Any idea what is going on? I have a feeling that something going wrong in xc_linux_build() is returning an error. Is there anything wrong with the elf image itself? Thanks, Aravindh Puthiyaparambil Unisys, Tredyffrin PA E-Mail: aravindh.puthiyaparambil@unisys.com [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:177) XendDomainInfo.create([''vm'', [''name'', ''Mini-OS''], [''memory'', ''32''], [''vcpus'', ''1''], [''image'', [''linux'', [''kernel'', ''/root/xen/xen-unstable.hg/extras/mini-os/mini-os.elf'']]]]) [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:283) parseConfig: config is [''vm'', [''name'', ''Mini-OS''], [''memory'', ''32''], [''vcpus'', ''1''], [''image'', [''linux'', [''kernel'', ''/root/xen/xen-unstable.hg/extras/mini-os/mini-os.elf'']]]] [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:379) parseConfig: result is {''ssidref'': None, ''uuid'': None, ''on_crash'': None, ''on_reboot'': None, ''image'': [''linux'', [''kernel'', ''/root/xen/xen-unstable.hg/extras/mini-os/mini-os.elf'']], ''on_poweroff'': None, ''cpus'': None, ''name'': ''Mini-OS'', ''backend'': [], ''vcpus'': 1, ''cpu_weight'': None, ''vcpu_avail'': None, ''memory'': 32, ''device'': [], ''bootloader'': None, ''cpu'': None, ''maxmem'': None} [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:1142) XendDomainInfo.construct: None 0 [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:1174) XendDomainInfo.initDomain: 1 1.0 [2006-02-14 08:39:54 xend] DEBUG (balloon:84) Balloon: free 3695; need 33; done. [2006-02-14 08:39:54 xend] INFO (image:133) buildDomain os=linux dom=1 vcpus=1 [2006-02-14 08:39:54 xend] DEBUG (image:171) dom = 1 [2006-02-14 08:39:54 xend] DEBUG (image:172) image /root/xen/xen-unstable.hg/extras/mini-os/mini-os.elf [2006-02-14 08:39:54 xend] DEBUG (image:173) store_evtchn = 1 [2006-02-14 08:39:54 xend] DEBUG (image:174) console_evtchn = 2 [2006-02-14 08:39:54 xend] DEBUG (image:175) cmdline = [2006-02-14 08:39:54 xend] DEBUG (image:176) ramdisk = [2006-02-14 08:39:54 xend] DEBUG (image:177) vcpus = 1 [2006-02-14 08:39:54 xend.XendDomainInfo] ERROR (XendDomainInfo:189) Domain construction failed Traceback (most recent call last): File "/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/XendDo mainInfo.py", line 182, in create vm.initDomain() File "/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/XendDo mainInfo.py", line 1203, in initDomain channel_details = self.image.createImage() File "/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/image. py", line 116, in createImage return self.createDomain() File "/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/image. py", line 135, in createDomain result = self.buildDomain() File "/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/image. py", line 184, in buildDomain ramdisk = self.ramdisk) error: (0, ''Error'') [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:1284) XendDomainInfo.destroy: domid=1 [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:1292) XendDomainInfo.destroyDomain(1) [2006-02-14 08:39:54 xend] ERROR (SrvBase:87) Request create failed. Traceback (most recent call last): File "/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/web/SrvBase .py", line 85, in perform return op_method(op, req) File "/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/server /SrvDomainDir.py", line 82, in op_create raise XendError("Error creating domain: " + str(ex)) XendError: Error creating domain: (0, ''Error'') _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
I found out that the __xen_guest section was not setup correct. That was why minios did not load. Now moving on to really getting to work ;-) Aravindh> -----Original Message----- > From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel- > bounces@lists.xensource.com] On Behalf Of Puthiyaparambil, Aravindh > Sent: Tuesday, February 14, 2006 3:35 PM > To: xen-devel@lists.xensource.com > Subject: [Xen-devel] Mini-os on x86_64 Xen > > I am trying to get Mini-os working on x86_64 Xen. I hacked in some of > the x86_64 hypecalls to get it compile and build. But when I try toload> the mini-os domain I get the following error. Any idea what is goingon?> I have a feeling that something going wrong in xc_linux_build() is > returning an error. Is there anything wrong with the elf image itself? > > Thanks, > Aravindh Puthiyaparambil > Unisys, Tredyffrin PA > E-Mail: aravindh.puthiyaparambil@unisys.com > > > [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:177) > XendDomainInfo.create([''vm'', [''name'', ''Mini-OS''], [''memory'', ''32''], > [''vcpus'', ''1''], [''image'', [''linux'', [''kernel'', > ''/root/xen/xen-unstable.hg/extras/mini-os/mini-os.elf'']]]]) > [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:283) > parseConfig: config is [''vm'', [''name'', ''Mini-OS''], [''memory'', ''32''], > [''vcpus'', ''1''], [''image'', [''linux'', [''kernel'', > ''/root/xen/xen-unstable.hg/extras/mini-os/mini-os.elf'']]]] > [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:379) > parseConfig: result is {''ssidref'': None, ''uuid'': None, ''on_crash'':None,> ''on_reboot'': None, ''image'': [''linux'', [''kernel'', > ''/root/xen/xen-unstable.hg/extras/mini-os/mini-os.elf'']],''on_poweroff'':> None, ''cpus'': None, ''name'': ''Mini-OS'', ''backend'': [], ''vcpus'': 1, > ''cpu_weight'': None, ''vcpu_avail'': None, ''memory'': 32, ''device'': [], > ''bootloader'': None, ''cpu'': None, ''maxmem'': None} > [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:1142) > XendDomainInfo.construct: None 0 > [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:1174) > XendDomainInfo.initDomain: 1 1.0 > [2006-02-14 08:39:54 xend] DEBUG (balloon:84) Balloon: free 3695; need > 33; done. > [2006-02-14 08:39:54 xend] INFO (image:133) buildDomain os=linux dom=1 > vcpus=1 > [2006-02-14 08:39:54 xend] DEBUG (image:171) dom = 1 > [2006-02-14 08:39:54 xend] DEBUG (image:172) image > /root/xen/xen-unstable.hg/extras/mini-os/mini-os.elf > [2006-02-14 08:39:54 xend] DEBUG (image:173) store_evtchn = 1 > [2006-02-14 08:39:54 xend] DEBUG (image:174) console_evtchn = 2 > [2006-02-14 08:39:54 xend] DEBUG (image:175) cmdline > [2006-02-14 08:39:54 xend] DEBUG (image:176) ramdisk > [2006-02-14 08:39:54 xend] DEBUG (image:177) vcpus = 1 > [2006-02-14 08:39:54 xend.XendDomainInfo] ERROR (XendDomainInfo:189) > Domain construction failed > Traceback (most recent call last): > File >"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/XendDo> mainInfo.py", line 182, in create > vm.initDomain() > File >"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/XendDo> mainInfo.py", line 1203, in initDomain > channel_details = self.image.createImage() > File >"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/image.> py", line 116, in createImage > return self.createDomain() > File >"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/image.> py", line 135, in createDomain > result = self.buildDomain() > File >"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/image.> py", line 184, in buildDomain > ramdisk = self.ramdisk) > error: (0, ''Error'') > [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:1284) > XendDomainInfo.destroy: domid=1 > [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:1292) > XendDomainInfo.destroyDomain(1) > [2006-02-14 08:39:54 xend] ERROR (SrvBase:87) Request create failed. > Traceback (most recent call last): > File >"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/web/SrvBase> .py", line 85, in perform > return op_method(op, req) > File >"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/server> /SrvDomainDir.py", line 82, in op_create > raise XendError("Error creating domain: " + str(ex)) > XendError: Error creating domain: (0, ''Error'') > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
It''s also missing event handling code. The one used for xenlinux should be helpful. Jun --- Intel Open Source Technology Center -----Original Message----- From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Puthiyaparambil, Aravindh Sent: Wednesday, February 15, 2006 2:46 PM To: xen-devel@lists.xensource.com Subject: RE: [Xen-devel] Mini-os on x86_64 Xen I found out that the __xen_guest section was not setup correct. That was why minios did not load. Now moving on to really getting to work ;-) Aravindh> -----Original Message----- > From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel- > bounces@lists.xensource.com] On Behalf Of Puthiyaparambil, Aravindh > Sent: Tuesday, February 14, 2006 3:35 PM > To: xen-devel@lists.xensource.com > Subject: [Xen-devel] Mini-os on x86_64 Xen > > I am trying to get Mini-os working on x86_64 Xen. I hacked in some of > the x86_64 hypecalls to get it compile and build. But when I try toload> the mini-os domain I get the following error. Any idea what is goingon?> I have a feeling that something going wrong in xc_linux_build() is > returning an error. Is there anything wrong with the elf image itself? > > Thanks, > Aravindh Puthiyaparambil > Unisys, Tredyffrin PA > E-Mail: aravindh.puthiyaparambil@unisys.com > > > [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:177) > XendDomainInfo.create([''vm'', [''name'', ''Mini-OS''], [''memory'', ''32''], > [''vcpus'', ''1''], [''image'', [''linux'', [''kernel'', > ''/root/xen/xen-unstable.hg/extras/mini-os/mini-os.elf'']]]]) > [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:283) > parseConfig: config is [''vm'', [''name'', ''Mini-OS''], [''memory'', ''32''], > [''vcpus'', ''1''], [''image'', [''linux'', [''kernel'', > ''/root/xen/xen-unstable.hg/extras/mini-os/mini-os.elf'']]]] > [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:379) > parseConfig: result is {''ssidref'': None, ''uuid'': None, ''on_crash'':None,> ''on_reboot'': None, ''image'': [''linux'', [''kernel'', > ''/root/xen/xen-unstable.hg/extras/mini-os/mini-os.elf'']],''on_poweroff'':> None, ''cpus'': None, ''name'': ''Mini-OS'', ''backend'': [], ''vcpus'': 1, > ''cpu_weight'': None, ''vcpu_avail'': None, ''memory'': 32, ''device'': [], > ''bootloader'': None, ''cpu'': None, ''maxmem'': None} > [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:1142) > XendDomainInfo.construct: None 0 > [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:1174) > XendDomainInfo.initDomain: 1 1.0 > [2006-02-14 08:39:54 xend] DEBUG (balloon:84) Balloon: free 3695; need > 33; done. > [2006-02-14 08:39:54 xend] INFO (image:133) buildDomain os=linux dom=1 > vcpus=1 > [2006-02-14 08:39:54 xend] DEBUG (image:171) dom = 1 > [2006-02-14 08:39:54 xend] DEBUG (image:172) image > /root/xen/xen-unstable.hg/extras/mini-os/mini-os.elf > [2006-02-14 08:39:54 xend] DEBUG (image:173) store_evtchn = 1 > [2006-02-14 08:39:54 xend] DEBUG (image:174) console_evtchn = 2 > [2006-02-14 08:39:54 xend] DEBUG (image:175) cmdline > [2006-02-14 08:39:54 xend] DEBUG (image:176) ramdisk > [2006-02-14 08:39:54 xend] DEBUG (image:177) vcpus = 1 > [2006-02-14 08:39:54 xend.XendDomainInfo] ERROR (XendDomainInfo:189) > Domain construction failed > Traceback (most recent call last): > File >"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/XendDo> mainInfo.py", line 182, in create > vm.initDomain() > File >"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/XendDo> mainInfo.py", line 1203, in initDomain > channel_details = self.image.createImage() > File >"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/image.> py", line 116, in createImage > return self.createDomain() > File >"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/image.> py", line 135, in createDomain > result = self.buildDomain() > File >"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/image.> py", line 184, in buildDomain > ramdisk = self.ramdisk) > error: (0, ''Error'') > [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:1284) > XendDomainInfo.destroy: domid=1 > [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:1292) > XendDomainInfo.destroyDomain(1) > [2006-02-14 08:39:54 xend] ERROR (SrvBase:87) Request create failed. > Traceback (most recent call last): > File >"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/web/SrvBase> .py", line 85, in perform > return op_method(op, req) > File >"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/server> /SrvDomainDir.py", line 82, in op_create > raise XendError("Error creating domain: " + str(ex)) > XendError: Error creating domain: (0, ''Error'') > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Yes, the event handling code is missing. I am also seeing that page tables are not being built for x86_64. This takes me to a few questions about hypercalls. The i386 hypercalls in minios seem to be working. But they are not using the hypercall_page as in xenlinux. So when I am updating the hypercalls for x86_64 in minios should I look into implementing a hypercall_page or should I just use syscalls? Thanks, Aravindh> -----Original Message----- > From: Nakajima, Jun [mailto:jun.nakajima@intel.com] > Sent: Wednesday, February 15, 2006 6:04 PM > To: Puthiyaparambil, Aravindh; xen-devel@lists.xensource.com > Subject: RE: [Xen-devel] Mini-os on x86_64 Xen > > It''s also missing event handling code. The one used for xenlinuxshould> be helpful. > > Jun > --- > Intel Open Source Technology Center > > -----Original Message----- > From: xen-devel-bounces@lists.xensource.com > [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of > Puthiyaparambil, Aravindh > Sent: Wednesday, February 15, 2006 2:46 PM > To: xen-devel@lists.xensource.com > Subject: RE: [Xen-devel] Mini-os on x86_64 Xen > > I found out that the __xen_guest section was not setup correct. Thatwas> why minios did not load. Now moving on to really getting to work ;-) > > Aravindh > > > -----Original Message----- > > From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel- > > bounces@lists.xensource.com] On Behalf Of Puthiyaparambil, Aravindh > > Sent: Tuesday, February 14, 2006 3:35 PM > > To: xen-devel@lists.xensource.com > > Subject: [Xen-devel] Mini-os on x86_64 Xen > > > > I am trying to get Mini-os working on x86_64 Xen. I hacked in someof> > the x86_64 hypecalls to get it compile and build. But when I try to > load > > the mini-os domain I get the following error. Any idea what is going > on? > > I have a feeling that something going wrong in xc_linux_build() is > > returning an error. Is there anything wrong with the elf imageitself?> > > > Thanks, > > Aravindh Puthiyaparambil > > Unisys, Tredyffrin PA > > E-Mail: aravindh.puthiyaparambil@unisys.com > > > > > > [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:177) > > XendDomainInfo.create([''vm'', [''name'', ''Mini-OS''], [''memory'', ''32''], > > [''vcpus'', ''1''], [''image'', [''linux'', [''kernel'', > > ''/root/xen/xen-unstable.hg/extras/mini-os/mini-os.elf'']]]]) > > [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:283) > > parseConfig: config is [''vm'', [''name'', ''Mini-OS''], [''memory'', ''32''], > > [''vcpus'', ''1''], [''image'', [''linux'', [''kernel'', > > ''/root/xen/xen-unstable.hg/extras/mini-os/mini-os.elf'']]]] > > [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG (XendDomainInfo:379) > > parseConfig: result is {''ssidref'': None, ''uuid'': None, ''on_crash'': > None, > > ''on_reboot'': None, ''image'': [''linux'', [''kernel'', > > ''/root/xen/xen-unstable.hg/extras/mini-os/mini-os.elf'']], > ''on_poweroff'': > > None, ''cpus'': None, ''name'': ''Mini-OS'', ''backend'': [], ''vcpus'': 1, > > ''cpu_weight'': None, ''vcpu_avail'': None, ''memory'': 32, ''device'': [], > > ''bootloader'': None, ''cpu'': None, ''maxmem'': None} > > [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG(XendDomainInfo:1142)> > XendDomainInfo.construct: None 0 > > [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG(XendDomainInfo:1174)> > XendDomainInfo.initDomain: 1 1.0 > > [2006-02-14 08:39:54 xend] DEBUG (balloon:84) Balloon: free 3695;need> > 33; done. > > [2006-02-14 08:39:54 xend] INFO (image:133) buildDomain os=linuxdom=1> > vcpus=1 > > [2006-02-14 08:39:54 xend] DEBUG (image:171) dom = 1 > > [2006-02-14 08:39:54 xend] DEBUG (image:172) image > > /root/xen/xen-unstable.hg/extras/mini-os/mini-os.elf > > [2006-02-14 08:39:54 xend] DEBUG (image:173) store_evtchn = 1 > > [2006-02-14 08:39:54 xend] DEBUG (image:174) console_evtchn = 2 > > [2006-02-14 08:39:54 xend] DEBUG (image:175) cmdline > > [2006-02-14 08:39:54 xend] DEBUG (image:176) ramdisk > > [2006-02-14 08:39:54 xend] DEBUG (image:177) vcpus = 1 > > [2006-02-14 08:39:54 xend.XendDomainInfo] ERROR (XendDomainInfo:189) > > Domain construction failed > > Traceback (most recent call last): > > File > > >"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/XendDo> > mainInfo.py", line 182, in create > > vm.initDomain() > > File > > >"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/XendDo> > mainInfo.py", line 1203, in initDomain > > channel_details = self.image.createImage() > > File > > >"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/image.> > py", line 116, in createImage > > return self.createDomain() > > File > > >"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/image.> > py", line 135, in createDomain > > result = self.buildDomain() > > File > > >"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/image.> > py", line 184, in buildDomain > > ramdisk = self.ramdisk) > > error: (0, ''Error'') > > [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG(XendDomainInfo:1284)> > XendDomainInfo.destroy: domid=1 > > [2006-02-14 08:39:54 xend.XendDomainInfo] DEBUG(XendDomainInfo:1292)> > XendDomainInfo.destroyDomain(1) > > [2006-02-14 08:39:54 xend] ERROR (SrvBase:87) Request create failed. > > Traceback (most recent call last): > > File > > >"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/web/SrvBase> > .py", line 85, in perform > > return op_method(op, req) > > File > > >"/root/xen/xen-unstable.hg/dist/install/usr/lib64/python/xen/xend/server> > /SrvDomainDir.py", line 82, in op_create > > raise XendError("Error creating domain: " + str(ex)) > > XendError: Error creating domain: (0, ''Error'') > > > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 16 Feb 2006, at 21:35, Puthiyaparambil, Aravindh wrote:> Yes, the event handling code is missing. I am also seeing that page > tables are not being built for x86_64. > > This takes me to a few questions about hypercalls. The i386 hypercalls > in minios seem to be working. But they are not using the hypercall_page > as in xenlinux. So when I am updating the hypercalls for x86_64 in > minios should I look into implementing a hypercall_page or should I > just > use syscalls?You should probably just use the hypercall.h files from Linux. There''s one for i386 and a separate one for x86_64. That, plus some magic in head.S to declare the hypercall page, and you should be set. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel