All of lore.kernel.org
 help / color / mirror / Atom feed
* [help] How to install xen with my own kernel on grub2?
@ 2013-07-13  3:12 Li Yechen
  2013-07-13  4:02 ` Meng
  0 siblings, 1 reply; 13+ messages in thread
From: Li Yechen @ 2013-07-13  3:12 UTC (permalink / raw)
  To: xen-devel@lists.xen.org


[-- Attachment #1.1: Type: text/plain, Size: 721 bytes --]

I just move from CentOS to Fedora 18, and being confused by grub2.

the command grub2-mkconfig use default kernel (the one right being use by
fedora 18)

I try to edit the line: "module  /vmlinuz-3.9.6-200.fc18.x86_64 placeholder
root=UUID=b7360a1b-cdff-49f3-8da1-f53081a08242 ro rd.md=0 rd.lvm=0 rd.dm=0
rd.luks=0 vconsole.keymap=us rhgb quiet"
to "module /vmlinuz-3.9.4 " (this is the kernel that I modify)
but get panic when reboot.

Should I write a new menuentry manually?
Thanks

-- 
Yechen Li

Team of System Virtualization and Cloud Computing
School of Electronic Engineering  and Computer Science,
Peking University, China

Nothing is impossible because impossible itself  says: " I'm possible "
lccycc From PKU

[-- Attachment #1.2: Type: text/html, Size: 1501 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [help] How to install xen with my own kernel on grub2?
  2013-07-13  3:12 [help] How to install xen with my own kernel on grub2? Li Yechen
@ 2013-07-13  4:02 ` Meng
  2013-07-13 13:35   ` Li Yechen
  0 siblings, 1 reply; 13+ messages in thread
From: Meng @ 2013-07-13  4:02 UTC (permalink / raw)
  To: Li Yechen; +Cc: xen-devel@lists.xen.org

Hi Yechen, 

Grub2 script checks the Xen options of each Linux kernel's configuration file under /boot. If no such config, it won't create the relative entry. 

You can have a look at the 20_linux_xen script under /etc/grub.d/ to get more details.

Best,

Meng

---
Meng Xu
Phd Candidate in Computer and Information Science
University of Pennsylvania

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [help] How to install xen with my own kernel on grub2?
  2013-07-13  4:02 ` Meng
@ 2013-07-13 13:35   ` Li Yechen
  2013-07-13 16:57     ` Wei Liu
  2013-07-14  6:39     ` Meng Xu
  0 siblings, 2 replies; 13+ messages in thread
From: Li Yechen @ 2013-07-13 13:35 UTC (permalink / raw)
  To: Meng; +Cc: xen-devel@lists.xen.org


[-- Attachment #1.1: Type: text/plain, Size: 1597 bytes --]

Hi Meng,

> Grub2 script checks the Xen options of each Linux kernel's configuration
> file under /boot. If no such config, it won't create the relative entry.
> You can have a look at the 20_linux_xen script under /etc/grub.d/ to get
> more details.


Thank you very for your advice!  I does not find the config as you said.
Anyway I write a menuentry manually and now it seems to work.

but then when I try to start xend, an error come out as:

  File "/usr/sbin/xend", line 36, in <module>
    from xen.xend.server import SrvDaemon
  File "/usr/lib64/python2.7/site-packages/xen/xend/server/SrvDaemon.py",
line 20, in <module>
    import xen.lowlevel.xc
ImportError: libxenctrl.so.4.2: cannot open shared object file: No such
file or directory

I think my steps to install xen is right. Google says that it's something
wrong with lib64.

I never meet this error before in CentOS. Do you have any ideas?





On Sat, Jul 13, 2013 at 12:02 PM, Meng <xumengpanda@gmail.com> wrote:

> Hi Yechen,
>
> Grub2 script checks the Xen options of each Linux kernel's configuration
> file under /boot. If no such config, it won't create the relative entry.
>
> You can have a look at the 20_linux_xen script under /etc/grub.d/ to get
> more details.
>
> Best,
>
> Meng
>
> ---
> Meng Xu
> Phd Candidate in Computer and Information Science
> University of Pennsylvania




-- 
Yechen Li

Team of System Virtualization and Cloud Computing
School of Electronic Engineering  and Computer Science,
Peking University, China

Nothing is impossible because impossible itself  says: " I'm possible "
lccycc From PKU

[-- Attachment #1.2: Type: text/html, Size: 2826 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [help] How to install xen with my own kernel on grub2?
  2013-07-13 13:35   ` Li Yechen
@ 2013-07-13 16:57     ` Wei Liu
  2013-07-13 17:11       ` Li Yechen
  2013-07-14  6:39     ` Meng Xu
  1 sibling, 1 reply; 13+ messages in thread
From: Wei Liu @ 2013-07-13 16:57 UTC (permalink / raw)
  To: Li Yechen; +Cc: wei.liu2, Meng, xen-devel@lists.xen.org

On Sat, Jul 13, 2013 at 09:35:45PM +0800, Li Yechen wrote:
> Hi Meng,
> 
> > Grub2 script checks the Xen options of each Linux kernel's configuration
> > file under /boot. If no such config, it won't create the relative entry.
> > You can have a look at the 20_linux_xen script under /etc/grub.d/ to get
> > more details.
> 
> 
> Thank you very for your advice!  I does not find the config as you said.
> Anyway I write a menuentry manually and now it seems to work.
> 
> but then when I try to start xend, an error come out as:
> 
>   File "/usr/sbin/xend", line 36, in <module>
>     from xen.xend.server import SrvDaemon
>   File "/usr/lib64/python2.7/site-packages/xen/xend/server/SrvDaemon.py",
> line 20, in <module>
>     import xen.lowlevel.xc
> ImportError: libxenctrl.so.4.2: cannot open shared object file: No such
> file or directory
> 
> I think my steps to install xen is right. Google says that it's something
> wrong with lib64.
> 
> I never meet this error before in CentOS. Do you have any ideas?
> 
> 

You probably need to edit /etc/ld.so.conf and  run 'ldconfig' to tell
the dynamic linker to pick up the newer installed libraries.


Wei.

> 
> 
> 
> On Sat, Jul 13, 2013 at 12:02 PM, Meng <xumengpanda@gmail.com> wrote:
> 
> > Hi Yechen,
> >
> > Grub2 script checks the Xen options of each Linux kernel's configuration
> > file under /boot. If no such config, it won't create the relative entry.
> >
> > You can have a look at the 20_linux_xen script under /etc/grub.d/ to get
> > more details.
> >
> > Best,
> >
> > Meng
> >
> > ---
> > Meng Xu
> > Phd Candidate in Computer and Information Science
> > University of Pennsylvania
> 
> 
> 
> 
> -- 
> Yechen Li
> 
> Team of System Virtualization and Cloud Computing
> School of Electronic Engineering  and Computer Science,
> Peking University, China
> 
> Nothing is impossible because impossible itself  says: " I'm possible "
> lccycc From PKU

> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [help] How to install xen with my own kernel on grub2?
  2013-07-13 16:57     ` Wei Liu
@ 2013-07-13 17:11       ` Li Yechen
  2013-07-13 17:20         ` Wei Liu
  0 siblings, 1 reply; 13+ messages in thread
From: Li Yechen @ 2013-07-13 17:11 UTC (permalink / raw)
  To: Wei Liu; +Cc: Meng, xen-devel@lists.xen.org


[-- Attachment #1.1: Type: text/plain, Size: 3928 bytes --]

Yes! I have fixed this and thank you all the same.
Now the problems come to xend start:

xc: error: Could not obtain handle on privileged command interface (2 = No
such file or directory): Internal error
Traceback (most recent call last):
  File "/usr/sbin/xend", line 36, in <module>
    from xen.xend.server import SrvDaemon
  File "/usr/lib64/python2.7/site-packages/xen/xend/server/SrvDaemon.py",
line 26, in <module>
    import relocate
  File "/usr/lib64/python2.7/site-packages/xen/xend/server/relocate.py",
line 28, in <module>
    from xen.xend import XendDomain
  File "/usr/lib64/python2.7/site-packages/xen/xend/XendDomain.py", line
36, in <module>
    from xen.xend import XendOptions, XendCheckpoint, XendDomainInfo
  File "/usr/lib64/python2.7/site-packages/xen/xend/XendCheckpoint.py",
line 20, in <module>
    from xen.xend import balloon, sxp, image
  File "/usr/lib64/python2.7/site-packages/xen/xend/image.py", line 46, in
<module>
    xc = xen.lowlevel.xc.xc()
xen.lowlevel.xc.Error: (1, 'Internal error', 'xc_interface_open failed: No
such file or directory')

google says that /proc/xen should mount to xenfs, while I see no.
I'm still searching the solution :(

why so many errors come out in Fedora?
By the way, what kind of OS do you suggest in Xen development?
I give up CentOS because it's too hard to find a suitable package when
trying to install software. And the gcc version is also too low.



On Sun, Jul 14, 2013 at 12:57 AM, Wei Liu <wei.liu2@citrix.com> wrote:

> On Sat, Jul 13, 2013 at 09:35:45PM +0800, Li Yechen wrote:
> > Hi Meng,
> >
> > > Grub2 script checks the Xen options of each Linux kernel's
> configuration
> > > file under /boot. If no such config, it won't create the relative
> entry.
> > > You can have a look at the 20_linux_xen script under /etc/grub.d/ to
> get
> > > more details.
> >
> >
> > Thank you very for your advice!  I does not find the config as you said.
> > Anyway I write a menuentry manually and now it seems to work.
> >
> > but then when I try to start xend, an error come out as:
> >
> >   File "/usr/sbin/xend", line 36, in <module>
> >     from xen.xend.server import SrvDaemon
> >   File "/usr/lib64/python2.7/site-packages/xen/xend/server/SrvDaemon.py",
> > line 20, in <module>
> >     import xen.lowlevel.xc
> > ImportError: libxenctrl.so.4.2: cannot open shared object file: No such
> > file or directory
> >
> > I think my steps to install xen is right. Google says that it's something
> > wrong with lib64.
> >
> > I never meet this error before in CentOS. Do you have any ideas?
> >
> >
>
> You probably need to edit /etc/ld.so.conf and  run 'ldconfig' to tell
> the dynamic linker to pick up the newer installed libraries.
>
>
> Wei.
>
> >
> >
> >
> > On Sat, Jul 13, 2013 at 12:02 PM, Meng <xumengpanda@gmail.com> wrote:
> >
> > > Hi Yechen,
> > >
> > > Grub2 script checks the Xen options of each Linux kernel's
> configuration
> > > file under /boot. If no such config, it won't create the relative
> entry.
> > >
> > > You can have a look at the 20_linux_xen script under /etc/grub.d/ to
> get
> > > more details.
> > >
> > > Best,
> > >
> > > Meng
> > >
> > > ---
> > > Meng Xu
> > > Phd Candidate in Computer and Information Science
> > > University of Pennsylvania
> >
> >
> >
> >
> > --
> > Yechen Li
> >
> > Team of System Virtualization and Cloud Computing
> > School of Electronic Engineering  and Computer Science,
> > Peking University, China
> >
> > Nothing is impossible because impossible itself  says: " I'm possible "
> > lccycc From PKU
>
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.xen.org
> > http://lists.xen.org/xen-devel
>
>


-- 
Yechen Li

Team of System Virtualization and Cloud Computing
School of Electronic Engineering  and Computer Science,
Peking University, China

Nothing is impossible because impossible itself  says: " I'm possible "
lccycc From PKU

[-- Attachment #1.2: Type: text/html, Size: 5831 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [help] How to install xen with my own kernel on grub2?
  2013-07-13 17:11       ` Li Yechen
@ 2013-07-13 17:20         ` Wei Liu
  2013-07-13 17:39           ` Li Yechen
  0 siblings, 1 reply; 13+ messages in thread
From: Wei Liu @ 2013-07-13 17:20 UTC (permalink / raw)
  To: Li Yechen; +Cc: Meng, Wei Liu, xen-devel@lists.xen.org

On Sun, Jul 14, 2013 at 01:11:12AM +0800, Li Yechen wrote:
> Yes! I have fixed this and thank you all the same.
> Now the problems come to xend start:
> 
> xc: error: Could not obtain handle on privileged command interface (2 = No
> such file or directory): Internal error
> Traceback (most recent call last):
>   File "/usr/sbin/xend", line 36, in <module>
>     from xen.xend.server import SrvDaemon
>   File "/usr/lib64/python2.7/site-packages/xen/xend/server/SrvDaemon.py",
> line 26, in <module>
>     import relocate
>   File "/usr/lib64/python2.7/site-packages/xen/xend/server/relocate.py",
> line 28, in <module>
>     from xen.xend import XendDomain
>   File "/usr/lib64/python2.7/site-packages/xen/xend/XendDomain.py", line
> 36, in <module>
>     from xen.xend import XendOptions, XendCheckpoint, XendDomainInfo
>   File "/usr/lib64/python2.7/site-packages/xen/xend/XendCheckpoint.py",
> line 20, in <module>
>     from xen.xend import balloon, sxp, image
>   File "/usr/lib64/python2.7/site-packages/xen/xend/image.py", line 46, in
> <module>
>     xc = xen.lowlevel.xc.xc()
> xen.lowlevel.xc.Error: (1, 'Internal error', 'xc_interface_open failed: No
> such file or directory')
> 
> google says that /proc/xen should mount to xenfs, while I see no.
> I'm still searching the solution :(
> 

Make sure your kernel has all the necessary Xen drivers compiled in or
loaded.

> why so many errors come out in Fedora?
> By the way, what kind of OS do you suggest in Xen development?
> I give up CentOS because it's too hard to find a suitable package when
> trying to install software. And the gcc version is also too low.
> 
> 

Debian Wheezy works quite well for me. However you might need to compile
your own Dom0 kernel there seems to be a regression on its default 3.2
kernel. It might not boot on some hardware.


Wei.

> 
> On Sun, Jul 14, 2013 at 12:57 AM, Wei Liu <wei.liu2@citrix.com> wrote:
> 
> > On Sat, Jul 13, 2013 at 09:35:45PM +0800, Li Yechen wrote:
> > > Hi Meng,
> > >
> > > > Grub2 script checks the Xen options of each Linux kernel's
> > configuration
> > > > file under /boot. If no such config, it won't create the relative
> > entry.
> > > > You can have a look at the 20_linux_xen script under /etc/grub.d/ to
> > get
> > > > more details.
> > >
> > >
> > > Thank you very for your advice!  I does not find the config as you said.
> > > Anyway I write a menuentry manually and now it seems to work.
> > >
> > > but then when I try to start xend, an error come out as:
> > >
> > >   File "/usr/sbin/xend", line 36, in <module>
> > >     from xen.xend.server import SrvDaemon
> > >   File "/usr/lib64/python2.7/site-packages/xen/xend/server/SrvDaemon.py",
> > > line 20, in <module>
> > >     import xen.lowlevel.xc
> > > ImportError: libxenctrl.so.4.2: cannot open shared object file: No such
> > > file or directory
> > >
> > > I think my steps to install xen is right. Google says that it's something
> > > wrong with lib64.
> > >
> > > I never meet this error before in CentOS. Do you have any ideas?
> > >
> > >
> >
> > You probably need to edit /etc/ld.so.conf and  run 'ldconfig' to tell
> > the dynamic linker to pick up the newer installed libraries.
> >
> >
> > Wei.
> >
> > >
> > >
> > >
> > > On Sat, Jul 13, 2013 at 12:02 PM, Meng <xumengpanda@gmail.com> wrote:
> > >
> > > > Hi Yechen,
> > > >
> > > > Grub2 script checks the Xen options of each Linux kernel's
> > configuration
> > > > file under /boot. If no such config, it won't create the relative
> > entry.
> > > >
> > > > You can have a look at the 20_linux_xen script under /etc/grub.d/ to
> > get
> > > > more details.
> > > >
> > > > Best,
> > > >
> > > > Meng
> > > >
> > > > ---
> > > > Meng Xu
> > > > Phd Candidate in Computer and Information Science
> > > > University of Pennsylvania
> > >
> > >
> > >
> > >
> > > --
> > > Yechen Li
> > >
> > > Team of System Virtualization and Cloud Computing
> > > School of Electronic Engineering  and Computer Science,
> > > Peking University, China
> > >
> > > Nothing is impossible because impossible itself  says: " I'm possible "
> > > lccycc From PKU
> >
> > > _______________________________________________
> > > Xen-devel mailing list
> > > Xen-devel@lists.xen.org
> > > http://lists.xen.org/xen-devel
> >
> >
> 
> 
> -- 
> Yechen Li
> 
> Team of System Virtualization and Cloud Computing
> School of Electronic Engineering  and Computer Science,
> Peking University, China
> 
> Nothing is impossible because impossible itself  says: " I'm possible "
> lccycc From PKU

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [help] How to install xen with my own kernel on grub2?
  2013-07-13 17:20         ` Wei Liu
@ 2013-07-13 17:39           ` Li Yechen
  2013-07-13 18:00             ` Wei Liu
  0 siblings, 1 reply; 13+ messages in thread
From: Li Yechen @ 2013-07-13 17:39 UTC (permalink / raw)
  To: Wei Liu; +Cc: Meng, xen-devel@lists.xen.org


[-- Attachment #1.1: Type: text/plain, Size: 5520 bytes --]

>
> Make sure your kernel has all the necessary Xen drivers compiled in or
> loaded
>

in make menuconfig:

Processor type and features  ---> Paravirtualized guest support
 [*]   Xen guest support
 [*]   Enable Xen debug and tuning parameters in debugfs

Device Drivers  --->  Xen driver support

These two is enough for kernel 3.9.4?
I think kernel version > 3 should auto support Xen.



On Sun, Jul 14, 2013 at 1:20 AM, Wei Liu <wei.liu2@citrix.com> wrote:

> On Sun, Jul 14, 2013 at 01:11:12AM +0800, Li Yechen wrote:
> > Yes! I have fixed this and thank you all the same.
> > Now the problems come to xend start:
> >
> > xc: error: Could not obtain handle on privileged command interface (2 =
> No
> > such file or directory): Internal error
> > Traceback (most recent call last):
> >   File "/usr/sbin/xend", line 36, in <module>
> >     from xen.xend.server import SrvDaemon
> >   File "/usr/lib64/python2.7/site-packages/xen/xend/server/SrvDaemon.py",
> > line 26, in <module>
> >     import relocate
> >   File "/usr/lib64/python2.7/site-packages/xen/xend/server/relocate.py",
> > line 28, in <module>
> >     from xen.xend import XendDomain
> >   File "/usr/lib64/python2.7/site-packages/xen/xend/XendDomain.py", line
> > 36, in <module>
> >     from xen.xend import XendOptions, XendCheckpoint, XendDomainInfo
> >   File "/usr/lib64/python2.7/site-packages/xen/xend/XendCheckpoint.py",
> > line 20, in <module>
> >     from xen.xend import balloon, sxp, image
> >   File "/usr/lib64/python2.7/site-packages/xen/xend/image.py", line 46,
> in
> > <module>
> >     xc = xen.lowlevel.xc.xc()
> > xen.lowlevel.xc.Error: (1, 'Internal error', 'xc_interface_open failed:
> No
> > such file or directory')
> >
> > google says that /proc/xen should mount to xenfs, while I see no.
> > I'm still searching the solution :(
> >
>
> Make sure your kernel has all the necessary Xen drivers compiled in or
> loaded.
>
> > why so many errors come out in Fedora?
> > By the way, what kind of OS do you suggest in Xen development?
> > I give up CentOS because it's too hard to find a suitable package when
> > trying to install software. And the gcc version is also too low.
> >
> >
>
> Debian Wheezy works quite well for me. However you might need to compile
> your own Dom0 kernel there seems to be a regression on its default 3.2
> kernel. It might not boot on some hardware.
>
>
> Wei.
>
> >
> > On Sun, Jul 14, 2013 at 12:57 AM, Wei Liu <wei.liu2@citrix.com> wrote:
> >
> > > On Sat, Jul 13, 2013 at 09:35:45PM +0800, Li Yechen wrote:
> > > > Hi Meng,
> > > >
> > > > > Grub2 script checks the Xen options of each Linux kernel's
> > > configuration
> > > > > file under /boot. If no such config, it won't create the relative
> > > entry.
> > > > > You can have a look at the 20_linux_xen script under /etc/grub.d/
> to
> > > get
> > > > > more details.
> > > >
> > > >
> > > > Thank you very for your advice!  I does not find the config as you
> said.
> > > > Anyway I write a menuentry manually and now it seems to work.
> > > >
> > > > but then when I try to start xend, an error come out as:
> > > >
> > > >   File "/usr/sbin/xend", line 36, in <module>
> > > >     from xen.xend.server import SrvDaemon
> > > >   File
> "/usr/lib64/python2.7/site-packages/xen/xend/server/SrvDaemon.py",
> > > > line 20, in <module>
> > > >     import xen.lowlevel.xc
> > > > ImportError: libxenctrl.so.4.2: cannot open shared object file: No
> such
> > > > file or directory
> > > >
> > > > I think my steps to install xen is right. Google says that it's
> something
> > > > wrong with lib64.
> > > >
> > > > I never meet this error before in CentOS. Do you have any ideas?
> > > >
> > > >
> > >
> > > You probably need to edit /etc/ld.so.conf and  run 'ldconfig' to tell
> > > the dynamic linker to pick up the newer installed libraries.
> > >
> > >
> > > Wei.
> > >
> > > >
> > > >
> > > >
> > > > On Sat, Jul 13, 2013 at 12:02 PM, Meng <xumengpanda@gmail.com>
> wrote:
> > > >
> > > > > Hi Yechen,
> > > > >
> > > > > Grub2 script checks the Xen options of each Linux kernel's
> > > configuration
> > > > > file under /boot. If no such config, it won't create the relative
> > > entry.
> > > > >
> > > > > You can have a look at the 20_linux_xen script under /etc/grub.d/
> to
> > > get
> > > > > more details.
> > > > >
> > > > > Best,
> > > > >
> > > > > Meng
> > > > >
> > > > > ---
> > > > > Meng Xu
> > > > > Phd Candidate in Computer and Information Science
> > > > > University of Pennsylvania
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Yechen Li
> > > >
> > > > Team of System Virtualization and Cloud Computing
> > > > School of Electronic Engineering  and Computer Science,
> > > > Peking University, China
> > > >
> > > > Nothing is impossible because impossible itself  says: " I'm
> possible "
> > > > lccycc From PKU
> > >
> > > > _______________________________________________
> > > > Xen-devel mailing list
> > > > Xen-devel@lists.xen.org
> > > > http://lists.xen.org/xen-devel
> > >
> > >
> >
> >
> > --
> > Yechen Li
> >
> > Team of System Virtualization and Cloud Computing
> > School of Electronic Engineering  and Computer Science,
> > Peking University, China
> >
> > Nothing is impossible because impossible itself  says: " I'm possible "
> > lccycc From PKU
>



-- 
Yechen Li

Team of System Virtualization and Cloud Computing
School of Electronic Engineering  and Computer Science,
Peking University, China

Nothing is impossible because impossible itself  says: " I'm possible "
lccycc From PKU

[-- Attachment #1.2: Type: text/html, Size: 8496 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [help] How to install xen with my own kernel on grub2?
  2013-07-13 17:39           ` Li Yechen
@ 2013-07-13 18:00             ` Wei Liu
  2013-07-15  7:31               ` Li Yechen
  0 siblings, 1 reply; 13+ messages in thread
From: Wei Liu @ 2013-07-13 18:00 UTC (permalink / raw)
  To: Li Yechen; +Cc: Meng, Wei Liu, xen-devel@lists.xen.org

On Sun, Jul 14, 2013 at 01:39:33AM +0800, Li Yechen wrote:
> >
> > Make sure your kernel has all the necessary Xen drivers compiled in or
> > loaded
> >
> 
> in make menuconfig:
> 
> Processor type and features  ---> Paravirtualized guest support
>  [*]   Xen guest support
>  [*]   Enable Xen debug and tuning parameters in debugfs
> 
> Device Drivers  --->  Xen driver support
> 
> These two is enough for kernel 3.9.4?
> I think kernel version > 3 should auto support Xen.
> 

Use '/' to search for "xen" you will get all the config options.

Running as Xen guest != Running as Dom0


Wei.

> 
> 
> On Sun, Jul 14, 2013 at 1:20 AM, Wei Liu <wei.liu2@citrix.com> wrote:
> 
> > On Sun, Jul 14, 2013 at 01:11:12AM +0800, Li Yechen wrote:
> > > Yes! I have fixed this and thank you all the same.
> > > Now the problems come to xend start:
> > >
> > > xc: error: Could not obtain handle on privileged command interface (2 =
> > No
> > > such file or directory): Internal error
> > > Traceback (most recent call last):
> > >   File "/usr/sbin/xend", line 36, in <module>
> > >     from xen.xend.server import SrvDaemon
> > >   File "/usr/lib64/python2.7/site-packages/xen/xend/server/SrvDaemon.py",
> > > line 26, in <module>
> > >     import relocate
> > >   File "/usr/lib64/python2.7/site-packages/xen/xend/server/relocate.py",
> > > line 28, in <module>
> > >     from xen.xend import XendDomain
> > >   File "/usr/lib64/python2.7/site-packages/xen/xend/XendDomain.py", line
> > > 36, in <module>
> > >     from xen.xend import XendOptions, XendCheckpoint, XendDomainInfo
> > >   File "/usr/lib64/python2.7/site-packages/xen/xend/XendCheckpoint.py",
> > > line 20, in <module>
> > >     from xen.xend import balloon, sxp, image
> > >   File "/usr/lib64/python2.7/site-packages/xen/xend/image.py", line 46,
> > in
> > > <module>
> > >     xc = xen.lowlevel.xc.xc()
> > > xen.lowlevel.xc.Error: (1, 'Internal error', 'xc_interface_open failed:
> > No
> > > such file or directory')
> > >
> > > google says that /proc/xen should mount to xenfs, while I see no.
> > > I'm still searching the solution :(
> > >
> >
> > Make sure your kernel has all the necessary Xen drivers compiled in or
> > loaded.
> >
> > > why so many errors come out in Fedora?
> > > By the way, what kind of OS do you suggest in Xen development?
> > > I give up CentOS because it's too hard to find a suitable package when
> > > trying to install software. And the gcc version is also too low.
> > >
> > >
> >
> > Debian Wheezy works quite well for me. However you might need to compile
> > your own Dom0 kernel there seems to be a regression on its default 3.2
> > kernel. It might not boot on some hardware.
> >
> >
> > Wei.
> >
> > >
> > > On Sun, Jul 14, 2013 at 12:57 AM, Wei Liu <wei.liu2@citrix.com> wrote:
> > >
> > > > On Sat, Jul 13, 2013 at 09:35:45PM +0800, Li Yechen wrote:
> > > > > Hi Meng,
> > > > >
> > > > > > Grub2 script checks the Xen options of each Linux kernel's
> > > > configuration
> > > > > > file under /boot. If no such config, it won't create the relative
> > > > entry.
> > > > > > You can have a look at the 20_linux_xen script under /etc/grub.d/
> > to
> > > > get
> > > > > > more details.
> > > > >
> > > > >
> > > > > Thank you very for your advice!  I does not find the config as you
> > said.
> > > > > Anyway I write a menuentry manually and now it seems to work.
> > > > >
> > > > > but then when I try to start xend, an error come out as:
> > > > >
> > > > >   File "/usr/sbin/xend", line 36, in <module>
> > > > >     from xen.xend.server import SrvDaemon
> > > > >   File
> > "/usr/lib64/python2.7/site-packages/xen/xend/server/SrvDaemon.py",
> > > > > line 20, in <module>
> > > > >     import xen.lowlevel.xc
> > > > > ImportError: libxenctrl.so.4.2: cannot open shared object file: No
> > such
> > > > > file or directory
> > > > >
> > > > > I think my steps to install xen is right. Google says that it's
> > something
> > > > > wrong with lib64.
> > > > >
> > > > > I never meet this error before in CentOS. Do you have any ideas?
> > > > >
> > > > >
> > > >
> > > > You probably need to edit /etc/ld.so.conf and  run 'ldconfig' to tell
> > > > the dynamic linker to pick up the newer installed libraries.
> > > >
> > > >
> > > > Wei.
> > > >
> > > > >
> > > > >
> > > > >
> > > > > On Sat, Jul 13, 2013 at 12:02 PM, Meng <xumengpanda@gmail.com>
> > wrote:
> > > > >
> > > > > > Hi Yechen,
> > > > > >
> > > > > > Grub2 script checks the Xen options of each Linux kernel's
> > > > configuration
> > > > > > file under /boot. If no such config, it won't create the relative
> > > > entry.
> > > > > >
> > > > > > You can have a look at the 20_linux_xen script under /etc/grub.d/
> > to
> > > > get
> > > > > > more details.
> > > > > >
> > > > > > Best,
> > > > > >
> > > > > > Meng
> > > > > >
> > > > > > ---
> > > > > > Meng Xu
> > > > > > Phd Candidate in Computer and Information Science
> > > > > > University of Pennsylvania
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Yechen Li
> > > > >
> > > > > Team of System Virtualization and Cloud Computing
> > > > > School of Electronic Engineering  and Computer Science,
> > > > > Peking University, China
> > > > >
> > > > > Nothing is impossible because impossible itself  says: " I'm
> > possible "
> > > > > lccycc From PKU
> > > >
> > > > > _______________________________________________
> > > > > Xen-devel mailing list
> > > > > Xen-devel@lists.xen.org
> > > > > http://lists.xen.org/xen-devel
> > > >
> > > >
> > >
> > >
> > > --
> > > Yechen Li
> > >
> > > Team of System Virtualization and Cloud Computing
> > > School of Electronic Engineering  and Computer Science,
> > > Peking University, China
> > >
> > > Nothing is impossible because impossible itself  says: " I'm possible "
> > > lccycc From PKU
> >
> 
> 
> 
> -- 
> Yechen Li
> 
> Team of System Virtualization and Cloud Computing
> School of Electronic Engineering  and Computer Science,
> Peking University, China
> 
> Nothing is impossible because impossible itself  says: " I'm possible "
> lccycc From PKU

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [help] How to install xen with my own kernel on grub2?
  2013-07-13 13:35   ` Li Yechen
  2013-07-13 16:57     ` Wei Liu
@ 2013-07-14  6:39     ` Meng Xu
  1 sibling, 0 replies; 13+ messages in thread
From: Meng Xu @ 2013-07-14  6:39 UTC (permalink / raw)
  To: Li Yechen; +Cc: xen-devel@lists.xen.org


[-- Attachment #1.1: Type: text/plain, Size: 361 bytes --]

> Thank you very for your advice!  I does not find the config as you said.
>
>
That's why grub2 script cannot create the correct entry. You need to copy
the .config file to /boot and rename it to config-yourKernelVersion.
If there is still no grub entry to that kernel, it means your configuration
of the kernel does not have "Xen supported as domain 0".

Meng

[-- Attachment #1.2: Type: text/html, Size: 722 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [help] How to install xen with my own kernel on grub2?
  2013-07-13 18:00             ` Wei Liu
@ 2013-07-15  7:31               ` Li Yechen
  2013-07-15  7:44                 ` Wei Liu
  0 siblings, 1 reply; 13+ messages in thread
From: Li Yechen @ 2013-07-15  7:31 UTC (permalink / raw)
  To: Wei Liu, Meng; +Cc: xen-devel@lists.xen.org


[-- Attachment #1.1: Type: text/plain, Size: 7197 bytes --]

>
> Use '/' to search for "xen" you will get all the config options.

all the options with "xen" is Yes or Module

That's why grub2 script cannot create the correct entry. You need to copy
> the .config file to /boot and rename it to config-yourKernelVersion.

Great, I copy the .config to /boot , run grub2-mkconfig and see the entry
of my kernel !
but that bug of  xen.lowlevel.xc.Error still happen.


On Sun, Jul 14, 2013 at 2:00 AM, Wei Liu <wei.liu2@citrix.com> wrote:

> On Sun, Jul 14, 2013 at 01:39:33AM +0800, Li Yechen wrote:
> > >
> > > Make sure your kernel has all the necessary Xen drivers compiled in or
> > > loaded
> > >
> >
> > in make menuconfig:
> >
> > Processor type and features  ---> Paravirtualized guest support
> >  [*]   Xen guest support
> >  [*]   Enable Xen debug and tuning parameters in debugfs
> >
> > Device Drivers  --->  Xen driver support
> >
> > These two is enough for kernel 3.9.4?
> > I think kernel version > 3 should auto support Xen.
> >
>
> Use '/' to search for "xen" you will get all the config options.
>
> Running as Xen guest != Running as Dom0
>
>
> Wei.
>
> >
> >
> > On Sun, Jul 14, 2013 at 1:20 AM, Wei Liu <wei.liu2@citrix.com> wrote:
> >
> > > On Sun, Jul 14, 2013 at 01:11:12AM +0800, Li Yechen wrote:
> > > > Yes! I have fixed this and thank you all the same.
> > > > Now the problems come to xend start:
> > > >
> > > > xc: error: Could not obtain handle on privileged command interface
> (2 =
> > > No
> > > > such file or directory): Internal error
> > > > Traceback (most recent call last):
> > > >   File "/usr/sbin/xend", line 36, in <module>
> > > >     from xen.xend.server import SrvDaemon
> > > >   File
> "/usr/lib64/python2.7/site-packages/xen/xend/server/SrvDaemon.py",
> > > > line 26, in <module>
> > > >     import relocate
> > > >   File
> "/usr/lib64/python2.7/site-packages/xen/xend/server/relocate.py",
> > > > line 28, in <module>
> > > >     from xen.xend import XendDomain
> > > >   File "/usr/lib64/python2.7/site-packages/xen/xend/XendDomain.py",
> line
> > > > 36, in <module>
> > > >     from xen.xend import XendOptions, XendCheckpoint, XendDomainInfo
> > > >   File
> "/usr/lib64/python2.7/site-packages/xen/xend/XendCheckpoint.py",
> > > > line 20, in <module>
> > > >     from xen.xend import balloon, sxp, image
> > > >   File "/usr/lib64/python2.7/site-packages/xen/xend/image.py", line
> 46,
> > > in
> > > > <module>
> > > >     xc = xen.lowlevel.xc.xc()
> > > > xen.lowlevel.xc.Error: (1, 'Internal error', 'xc_interface_open
> failed:
> > > No
> > > > such file or directory')
> > > >
> > > > google says that /proc/xen should mount to xenfs, while I see no.
> > > > I'm still searching the solution :(
> > > >
> > >
> > > Make sure your kernel has all the necessary Xen drivers compiled in or
> > > loaded.
> > >
> > > > why so many errors come out in Fedora?
> > > > By the way, what kind of OS do you suggest in Xen development?
> > > > I give up CentOS because it's too hard to find a suitable package
> when
> > > > trying to install software. And the gcc version is also too low.
> > > >
> > > >
> > >
> > > Debian Wheezy works quite well for me. However you might need to
> compile
> > > your own Dom0 kernel there seems to be a regression on its default 3.2
> > > kernel. It might not boot on some hardware.
> > >
> > >
> > > Wei.
> > >
> > > >
> > > > On Sun, Jul 14, 2013 at 12:57 AM, Wei Liu <wei.liu2@citrix.com>
> wrote:
> > > >
> > > > > On Sat, Jul 13, 2013 at 09:35:45PM +0800, Li Yechen wrote:
> > > > > > Hi Meng,
> > > > > >
> > > > > > > Grub2 script checks the Xen options of each Linux kernel's
> > > > > configuration
> > > > > > > file under /boot. If no such config, it won't create the
> relative
> > > > > entry.
> > > > > > > You can have a look at the 20_linux_xen script under
> /etc/grub.d/
> > > to
> > > > > get
> > > > > > > more details.
> > > > > >
> > > > > >
> > > > > > Thank you very for your advice!  I does not find the config as
> you
> > > said.
> > > > > > Anyway I write a menuentry manually and now it seems to work.
> > > > > >
> > > > > > but then when I try to start xend, an error come out as:
> > > > > >
> > > > > >   File "/usr/sbin/xend", line 36, in <module>
> > > > > >     from xen.xend.server import SrvDaemon
> > > > > >   File
> > > "/usr/lib64/python2.7/site-packages/xen/xend/server/SrvDaemon.py",
> > > > > > line 20, in <module>
> > > > > >     import xen.lowlevel.xc
> > > > > > ImportError: libxenctrl.so.4.2: cannot open shared object file:
> No
> > > such
> > > > > > file or directory
> > > > > >
> > > > > > I think my steps to install xen is right. Google says that it's
> > > something
> > > > > > wrong with lib64.
> > > > > >
> > > > > > I never meet this error before in CentOS. Do you have any ideas?
> > > > > >
> > > > > >
> > > > >
> > > > > You probably need to edit /etc/ld.so.conf and  run 'ldconfig' to
> tell
> > > > > the dynamic linker to pick up the newer installed libraries.
> > > > >
> > > > >
> > > > > Wei.
> > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Sat, Jul 13, 2013 at 12:02 PM, Meng <xumengpanda@gmail.com>
> > > wrote:
> > > > > >
> > > > > > > Hi Yechen,
> > > > > > >
> > > > > > > Grub2 script checks the Xen options of each Linux kernel's
> > > > > configuration
> > > > > > > file under /boot. If no such config, it won't create the
> relative
> > > > > entry.
> > > > > > >
> > > > > > > You can have a look at the 20_linux_xen script under
> /etc/grub.d/
> > > to
> > > > > get
> > > > > > > more details.
> > > > > > >
> > > > > > > Best,
> > > > > > >
> > > > > > > Meng
> > > > > > >
> > > > > > > ---
> > > > > > > Meng Xu
> > > > > > > Phd Candidate in Computer and Information Science
> > > > > > > University of Pennsylvania
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Yechen Li
> > > > > >
> > > > > > Team of System Virtualization and Cloud Computing
> > > > > > School of Electronic Engineering  and Computer Science,
> > > > > > Peking University, China
> > > > > >
> > > > > > Nothing is impossible because impossible itself  says: " I'm
> > > possible "
> > > > > > lccycc From PKU
> > > > >
> > > > > > _______________________________________________
> > > > > > Xen-devel mailing list
> > > > > > Xen-devel@lists.xen.org
> > > > > > http://lists.xen.org/xen-devel
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Yechen Li
> > > >
> > > > Team of System Virtualization and Cloud Computing
> > > > School of Electronic Engineering  and Computer Science,
> > > > Peking University, China
> > > >
> > > > Nothing is impossible because impossible itself  says: " I'm
> possible "
> > > > lccycc From PKU
> > >
> >
> >
> >
> > --
> > Yechen Li
> >
> > Team of System Virtualization and Cloud Computing
> > School of Electronic Engineering  and Computer Science,
> > Peking University, China
> >
> > Nothing is impossible because impossible itself  says: " I'm possible "
> > lccycc From PKU
>



-- 
Yechen Li

Team of System Virtualization and Cloud Computing
School of Electronic Engineering  and Computer Science,
Peking University, China

Nothing is impossible because impossible itself  says: " I'm possible "
lccycc From PKU

[-- Attachment #1.2: Type: text/html, Size: 11692 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [help] How to install xen with my own kernel on grub2?
  2013-07-15  7:31               ` Li Yechen
@ 2013-07-15  7:44                 ` Wei Liu
  2013-07-31 10:03                   ` Li Yechen
  0 siblings, 1 reply; 13+ messages in thread
From: Wei Liu @ 2013-07-15  7:44 UTC (permalink / raw)
  To: Li Yechen; +Cc: Meng, Wei Liu, xen-devel@lists.xen.org

On Mon, Jul 15, 2013 at 03:31:27PM +0800, Li Yechen wrote:
> >
> > Use '/' to search for "xen" you will get all the config options.
> 
> all the options with "xen" is Yes or Module
> 
> That's why grub2 script cannot create the correct entry. You need to copy
> > the .config file to /boot and rename it to config-yourKernelVersion.
> 

Right. Grub2 needs to grep kernel config to determine whether that
kernel is Xen-capable (which is pure madness IMHO) -- see
/etc/grub.d/20_linux_xen.

> Great, I copy the .config to /boot , run grub2-mkconfig and see the entry
> of my kernel !
> but that bug of  xen.lowlevel.xc.Error still happen.
> 

Check if you have
/dev/xen/{privcmd,evtchn,gntdev,xenbus,xenbus_backend,gntalloc}.

My suggestion would be that you have all Xen drivers compiled in, not as
modules.


Wei.

> 
> On Sun, Jul 14, 2013 at 2:00 AM, Wei Liu <wei.liu2@citrix.com> wrote:
> 
> > On Sun, Jul 14, 2013 at 01:39:33AM +0800, Li Yechen wrote:
> > > >
> > > > Make sure your kernel has all the necessary Xen drivers compiled in or
> > > > loaded
> > > >
> > >
> > > in make menuconfig:
> > >
> > > Processor type and features  ---> Paravirtualized guest support
> > >  [*]   Xen guest support
> > >  [*]   Enable Xen debug and tuning parameters in debugfs
> > >
> > > Device Drivers  --->  Xen driver support
> > >
> > > These two is enough for kernel 3.9.4?
> > > I think kernel version > 3 should auto support Xen.
> > >
> >
> > Use '/' to search for "xen" you will get all the config options.
> >
> > Running as Xen guest != Running as Dom0
> >
> >
> > Wei.
> >
> > >
> > >
> > > On Sun, Jul 14, 2013 at 1:20 AM, Wei Liu <wei.liu2@citrix.com> wrote:
> > >
> > > > On Sun, Jul 14, 2013 at 01:11:12AM +0800, Li Yechen wrote:
> > > > > Yes! I have fixed this and thank you all the same.
> > > > > Now the problems come to xend start:
> > > > >
> > > > > xc: error: Could not obtain handle on privileged command interface
> > (2 =
> > > > No
> > > > > such file or directory): Internal error
> > > > > Traceback (most recent call last):
> > > > >   File "/usr/sbin/xend", line 36, in <module>
> > > > >     from xen.xend.server import SrvDaemon
> > > > >   File
> > "/usr/lib64/python2.7/site-packages/xen/xend/server/SrvDaemon.py",
> > > > > line 26, in <module>
> > > > >     import relocate
> > > > >   File
> > "/usr/lib64/python2.7/site-packages/xen/xend/server/relocate.py",
> > > > > line 28, in <module>
> > > > >     from xen.xend import XendDomain
> > > > >   File "/usr/lib64/python2.7/site-packages/xen/xend/XendDomain.py",
> > line
> > > > > 36, in <module>
> > > > >     from xen.xend import XendOptions, XendCheckpoint, XendDomainInfo
> > > > >   File
> > "/usr/lib64/python2.7/site-packages/xen/xend/XendCheckpoint.py",
> > > > > line 20, in <module>
> > > > >     from xen.xend import balloon, sxp, image
> > > > >   File "/usr/lib64/python2.7/site-packages/xen/xend/image.py", line
> > 46,
> > > > in
> > > > > <module>
> > > > >     xc = xen.lowlevel.xc.xc()
> > > > > xen.lowlevel.xc.Error: (1, 'Internal error', 'xc_interface_open
> > failed:
> > > > No
> > > > > such file or directory')
> > > > >
> > > > > google says that /proc/xen should mount to xenfs, while I see no.
> > > > > I'm still searching the solution :(
> > > > >
> > > >
> > > > Make sure your kernel has all the necessary Xen drivers compiled in or
> > > > loaded.
> > > >
> > > > > why so many errors come out in Fedora?
> > > > > By the way, what kind of OS do you suggest in Xen development?
> > > > > I give up CentOS because it's too hard to find a suitable package
> > when
> > > > > trying to install software. And the gcc version is also too low.
> > > > >
> > > > >
> > > >
> > > > Debian Wheezy works quite well for me. However you might need to
> > compile
> > > > your own Dom0 kernel there seems to be a regression on its default 3.2
> > > > kernel. It might not boot on some hardware.
> > > >
> > > >
> > > > Wei.
> > > >
> > > > >
> > > > > On Sun, Jul 14, 2013 at 12:57 AM, Wei Liu <wei.liu2@citrix.com>
> > wrote:
> > > > >
> > > > > > On Sat, Jul 13, 2013 at 09:35:45PM +0800, Li Yechen wrote:
> > > > > > > Hi Meng,
> > > > > > >
> > > > > > > > Grub2 script checks the Xen options of each Linux kernel's
> > > > > > configuration
> > > > > > > > file under /boot. If no such config, it won't create the
> > relative
> > > > > > entry.
> > > > > > > > You can have a look at the 20_linux_xen script under
> > /etc/grub.d/
> > > > to
> > > > > > get
> > > > > > > > more details.
> > > > > > >
> > > > > > >
> > > > > > > Thank you very for your advice!  I does not find the config as
> > you
> > > > said.
> > > > > > > Anyway I write a menuentry manually and now it seems to work.
> > > > > > >
> > > > > > > but then when I try to start xend, an error come out as:
> > > > > > >
> > > > > > >   File "/usr/sbin/xend", line 36, in <module>
> > > > > > >     from xen.xend.server import SrvDaemon
> > > > > > >   File
> > > > "/usr/lib64/python2.7/site-packages/xen/xend/server/SrvDaemon.py",
> > > > > > > line 20, in <module>
> > > > > > >     import xen.lowlevel.xc
> > > > > > > ImportError: libxenctrl.so.4.2: cannot open shared object file:
> > No
> > > > such
> > > > > > > file or directory
> > > > > > >
> > > > > > > I think my steps to install xen is right. Google says that it's
> > > > something
> > > > > > > wrong with lib64.
> > > > > > >
> > > > > > > I never meet this error before in CentOS. Do you have any ideas?
> > > > > > >
> > > > > > >
> > > > > >
> > > > > > You probably need to edit /etc/ld.so.conf and  run 'ldconfig' to
> > tell
> > > > > > the dynamic linker to pick up the newer installed libraries.
> > > > > >
> > > > > >
> > > > > > Wei.
> > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > On Sat, Jul 13, 2013 at 12:02 PM, Meng <xumengpanda@gmail.com>
> > > > wrote:
> > > > > > >
> > > > > > > > Hi Yechen,
> > > > > > > >
> > > > > > > > Grub2 script checks the Xen options of each Linux kernel's
> > > > > > configuration
> > > > > > > > file under /boot. If no such config, it won't create the
> > relative
> > > > > > entry.
> > > > > > > >
> > > > > > > > You can have a look at the 20_linux_xen script under
> > /etc/grub.d/
> > > > to
> > > > > > get
> > > > > > > > more details.
> > > > > > > >
> > > > > > > > Best,
> > > > > > > >
> > > > > > > > Meng
> > > > > > > >
> > > > > > > > ---
> > > > > > > > Meng Xu
> > > > > > > > Phd Candidate in Computer and Information Science
> > > > > > > > University of Pennsylvania
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Yechen Li
> > > > > > >
> > > > > > > Team of System Virtualization and Cloud Computing
> > > > > > > School of Electronic Engineering  and Computer Science,
> > > > > > > Peking University, China
> > > > > > >
> > > > > > > Nothing is impossible because impossible itself  says: " I'm
> > > > possible "
> > > > > > > lccycc From PKU
> > > > > >
> > > > > > > _______________________________________________
> > > > > > > Xen-devel mailing list
> > > > > > > Xen-devel@lists.xen.org
> > > > > > > http://lists.xen.org/xen-devel
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Yechen Li
> > > > >
> > > > > Team of System Virtualization and Cloud Computing
> > > > > School of Electronic Engineering  and Computer Science,
> > > > > Peking University, China
> > > > >
> > > > > Nothing is impossible because impossible itself  says: " I'm
> > possible "
> > > > > lccycc From PKU
> > > >
> > >
> > >
> > >
> > > --
> > > Yechen Li
> > >
> > > Team of System Virtualization and Cloud Computing
> > > School of Electronic Engineering  and Computer Science,
> > > Peking University, China
> > >
> > > Nothing is impossible because impossible itself  says: " I'm possible "
> > > lccycc From PKU
> >
> 
> 
> 
> -- 
> Yechen Li
> 
> Team of System Virtualization and Cloud Computing
> School of Electronic Engineering  and Computer Science,
> Peking University, China
> 
> Nothing is impossible because impossible itself  says: " I'm possible "
> lccycc From PKU

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [help] How to install xen with my own kernel on grub2?
  2013-07-15  7:44                 ` Wei Liu
@ 2013-07-31 10:03                   ` Li Yechen
  2013-08-06 10:43                     ` Dario Faggioli
  0 siblings, 1 reply; 13+ messages in thread
From: Li Yechen @ 2013-07-31 10:03 UTC (permalink / raw)
  To: Wei Liu; +Cc: Meng, xen-devel@lists.xen.org


[-- Attachment #1.1: Type: text/plain, Size: 9423 bytes --]

Oh yeah I start a domU !
I think the problem is: xend  and /etc/init.d/xend
this two commands seems different.
 if I use /etc/init.d/xencommons start    and /etc/init.d/xend start, no
error comes any more. (however, there should be a "nothing to flush" but I
don't see it. hmm...maybe there is still something wrong here)

The old way I create a domU is use "xm create". This way still works, but
when I try the new xl command: "xl create", it ask me to stop xend first.
We don't need xend anymore in Xen 4.2?


On Mon, Jul 15, 2013 at 3:44 PM, Wei Liu <wei.liu2@citrix.com> wrote:

> On Mon, Jul 15, 2013 at 03:31:27PM +0800, Li Yechen wrote:
> > >
> > > Use '/' to search for "xen" you will get all the config options.
> >
> > all the options with "xen" is Yes or Module
> >
> > That's why grub2 script cannot create the correct entry. You need to copy
> > > the .config file to /boot and rename it to config-yourKernelVersion.
> >
>
> Right. Grub2 needs to grep kernel config to determine whether that
> kernel is Xen-capable (which is pure madness IMHO) -- see
> /etc/grub.d/20_linux_xen.
>
> > Great, I copy the .config to /boot , run grub2-mkconfig and see the entry
> > of my kernel !
> > but that bug of  xen.lowlevel.xc.Error still happen.
> >
>
> Check if you have
> /dev/xen/{privcmd,evtchn,gntdev,xenbus,xenbus_backend,gntalloc}.
>
> My suggestion would be that you have all Xen drivers compiled in, not as
> modules.
>
>
> Wei.
>
> >
> > On Sun, Jul 14, 2013 at 2:00 AM, Wei Liu <wei.liu2@citrix.com> wrote:
> >
> > > On Sun, Jul 14, 2013 at 01:39:33AM +0800, Li Yechen wrote:
> > > > >
> > > > > Make sure your kernel has all the necessary Xen drivers compiled
> in or
> > > > > loaded
> > > > >
> > > >
> > > > in make menuconfig:
> > > >
> > > > Processor type and features  ---> Paravirtualized guest support
> > > >  [*]   Xen guest support
> > > >  [*]   Enable Xen debug and tuning parameters in debugfs
> > > >
> > > > Device Drivers  --->  Xen driver support
> > > >
> > > > These two is enough for kernel 3.9.4?
> > > > I think kernel version > 3 should auto support Xen.
> > > >
> > >
> > > Use '/' to search for "xen" you will get all the config options.
> > >
> > > Running as Xen guest != Running as Dom0
> > >
> > >
> > > Wei.
> > >
> > > >
> > > >
> > > > On Sun, Jul 14, 2013 at 1:20 AM, Wei Liu <wei.liu2@citrix.com>
> wrote:
> > > >
> > > > > On Sun, Jul 14, 2013 at 01:11:12AM +0800, Li Yechen wrote:
> > > > > > Yes! I have fixed this and thank you all the same.
> > > > > > Now the problems come to xend start:
> > > > > >
> > > > > > xc: error: Could not obtain handle on privileged command
> interface
> > > (2 =
> > > > > No
> > > > > > such file or directory): Internal error
> > > > > > Traceback (most recent call last):
> > > > > >   File "/usr/sbin/xend", line 36, in <module>
> > > > > >     from xen.xend.server import SrvDaemon
> > > > > >   File
> > > "/usr/lib64/python2.7/site-packages/xen/xend/server/SrvDaemon.py",
> > > > > > line 26, in <module>
> > > > > >     import relocate
> > > > > >   File
> > > "/usr/lib64/python2.7/site-packages/xen/xend/server/relocate.py",
> > > > > > line 28, in <module>
> > > > > >     from xen.xend import XendDomain
> > > > > >   File
> "/usr/lib64/python2.7/site-packages/xen/xend/XendDomain.py",
> > > line
> > > > > > 36, in <module>
> > > > > >     from xen.xend import XendOptions, XendCheckpoint,
> XendDomainInfo
> > > > > >   File
> > > "/usr/lib64/python2.7/site-packages/xen/xend/XendCheckpoint.py",
> > > > > > line 20, in <module>
> > > > > >     from xen.xend import balloon, sxp, image
> > > > > >   File "/usr/lib64/python2.7/site-packages/xen/xend/image.py",
> line
> > > 46,
> > > > > in
> > > > > > <module>
> > > > > >     xc = xen.lowlevel.xc.xc()
> > > > > > xen.lowlevel.xc.Error: (1, 'Internal error', 'xc_interface_open
> > > failed:
> > > > > No
> > > > > > such file or directory')
> > > > > >
> > > > > > google says that /proc/xen should mount to xenfs, while I see no.
> > > > > > I'm still searching the solution :(
> > > > > >
> > > > >
> > > > > Make sure your kernel has all the necessary Xen drivers compiled
> in or
> > > > > loaded.
> > > > >
> > > > > > why so many errors come out in Fedora?
> > > > > > By the way, what kind of OS do you suggest in Xen development?
> > > > > > I give up CentOS because it's too hard to find a suitable package
> > > when
> > > > > > trying to install software. And the gcc version is also too low.
> > > > > >
> > > > > >
> > > > >
> > > > > Debian Wheezy works quite well for me. However you might need to
> > > compile
> > > > > your own Dom0 kernel there seems to be a regression on its default
> 3.2
> > > > > kernel. It might not boot on some hardware.
> > > > >
> > > > >
> > > > > Wei.
> > > > >
> > > > > >
> > > > > > On Sun, Jul 14, 2013 at 12:57 AM, Wei Liu <wei.liu2@citrix.com>
> > > wrote:
> > > > > >
> > > > > > > On Sat, Jul 13, 2013 at 09:35:45PM +0800, Li Yechen wrote:
> > > > > > > > Hi Meng,
> > > > > > > >
> > > > > > > > > Grub2 script checks the Xen options of each Linux kernel's
> > > > > > > configuration
> > > > > > > > > file under /boot. If no such config, it won't create the
> > > relative
> > > > > > > entry.
> > > > > > > > > You can have a look at the 20_linux_xen script under
> > > /etc/grub.d/
> > > > > to
> > > > > > > get
> > > > > > > > > more details.
> > > > > > > >
> > > > > > > >
> > > > > > > > Thank you very for your advice!  I does not find the config
> as
> > > you
> > > > > said.
> > > > > > > > Anyway I write a menuentry manually and now it seems to work.
> > > > > > > >
> > > > > > > > but then when I try to start xend, an error come out as:
> > > > > > > >
> > > > > > > >   File "/usr/sbin/xend", line 36, in <module>
> > > > > > > >     from xen.xend.server import SrvDaemon
> > > > > > > >   File
> > > > > "/usr/lib64/python2.7/site-packages/xen/xend/server/SrvDaemon.py",
> > > > > > > > line 20, in <module>
> > > > > > > >     import xen.lowlevel.xc
> > > > > > > > ImportError: libxenctrl.so.4.2: cannot open shared object
> file:
> > > No
> > > > > such
> > > > > > > > file or directory
> > > > > > > >
> > > > > > > > I think my steps to install xen is right. Google says that
> it's
> > > > > something
> > > > > > > > wrong with lib64.
> > > > > > > >
> > > > > > > > I never meet this error before in CentOS. Do you have any
> ideas?
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > > You probably need to edit /etc/ld.so.conf and  run 'ldconfig'
> to
> > > tell
> > > > > > > the dynamic linker to pick up the newer installed libraries.
> > > > > > >
> > > > > > >
> > > > > > > Wei.
> > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > On Sat, Jul 13, 2013 at 12:02 PM, Meng <
> xumengpanda@gmail.com>
> > > > > wrote:
> > > > > > > >
> > > > > > > > > Hi Yechen,
> > > > > > > > >
> > > > > > > > > Grub2 script checks the Xen options of each Linux kernel's
> > > > > > > configuration
> > > > > > > > > file under /boot. If no such config, it won't create the
> > > relative
> > > > > > > entry.
> > > > > > > > >
> > > > > > > > > You can have a look at the 20_linux_xen script under
> > > /etc/grub.d/
> > > > > to
> > > > > > > get
> > > > > > > > > more details.
> > > > > > > > >
> > > > > > > > > Best,
> > > > > > > > >
> > > > > > > > > Meng
> > > > > > > > >
> > > > > > > > > ---
> > > > > > > > > Meng Xu
> > > > > > > > > Phd Candidate in Computer and Information Science
> > > > > > > > > University of Pennsylvania
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > Yechen Li
> > > > > > > >
> > > > > > > > Team of System Virtualization and Cloud Computing
> > > > > > > > School of Electronic Engineering  and Computer Science,
> > > > > > > > Peking University, China
> > > > > > > >
> > > > > > > > Nothing is impossible because impossible itself  says: " I'm
> > > > > possible "
> > > > > > > > lccycc From PKU
> > > > > > >
> > > > > > > > _______________________________________________
> > > > > > > > Xen-devel mailing list
> > > > > > > > Xen-devel@lists.xen.org
> > > > > > > > http://lists.xen.org/xen-devel
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Yechen Li
> > > > > >
> > > > > > Team of System Virtualization and Cloud Computing
> > > > > > School of Electronic Engineering  and Computer Science,
> > > > > > Peking University, China
> > > > > >
> > > > > > Nothing is impossible because impossible itself  says: " I'm
> > > possible "
> > > > > > lccycc From PKU
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Yechen Li
> > > >
> > > > Team of System Virtualization and Cloud Computing
> > > > School of Electronic Engineering  and Computer Science,
> > > > Peking University, China
> > > >
> > > > Nothing is impossible because impossible itself  says: " I'm
> possible "
> > > > lccycc From PKU
> > >
> >
> >
> >
> > --
> > Yechen Li
> >
> > Team of System Virtualization and Cloud Computing
> > School of Electronic Engineering  and Computer Science,
> > Peking University, China
> >
> > Nothing is impossible because impossible itself  says: " I'm possible "
> > lccycc From PKU
>



-- 
Yechen Li

Team of System Virtualization and Cloud Computing
School of Electronic Engineering  and Computer Science,
Peking University, China

Nothing is impossible because impossible itself  says: " I'm possible "
lccycc From PKU

[-- Attachment #1.2: Type: text/html, Size: 15156 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [help] How to install xen with my own kernel on grub2?
  2013-07-31 10:03                   ` Li Yechen
@ 2013-08-06 10:43                     ` Dario Faggioli
  0 siblings, 0 replies; 13+ messages in thread
From: Dario Faggioli @ 2013-08-06 10:43 UTC (permalink / raw)
  To: Li Yechen; +Cc: Meng, Wei Liu, xen-devel@lists.xen.org


[-- Attachment #1.1: Type: text/plain, Size: 1086 bytes --]

On mer, 2013-07-31 at 18:03 +0800, Li Yechen wrote:


> The old way I create a domU is use "xm create". This way still works,
> but when I try the new xl command: "xl create", it ask me to stop xend
> first.
> 
> We don't need xend anymore in Xen 4.2?
> 
You need xend and will always do, _if_ you want to use 'xm create', and
'xm' in general.

OTOH, you not only do not need xend, but you actually need to
_get_rid_ot_it_ (stopping is enough), if you want to use xl.

When choosing, keep in mind that xend is being deprecated. It actually
was deprecated already in 4.2 and in 4.3, and won't probably be even
built in 4.4, so move fast to xl/libxl. :-D

Actually, having seen another e-mail from you (from yesterday, I think),
I guess you figured that out already, but still... :-)

Regards,
Dario

-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)


[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-08-06 10:43 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-13  3:12 [help] How to install xen with my own kernel on grub2? Li Yechen
2013-07-13  4:02 ` Meng
2013-07-13 13:35   ` Li Yechen
2013-07-13 16:57     ` Wei Liu
2013-07-13 17:11       ` Li Yechen
2013-07-13 17:20         ` Wei Liu
2013-07-13 17:39           ` Li Yechen
2013-07-13 18:00             ` Wei Liu
2013-07-15  7:31               ` Li Yechen
2013-07-15  7:44                 ` Wei Liu
2013-07-31 10:03                   ` Li Yechen
2013-08-06 10:43                     ` Dario Faggioli
2013-07-14  6:39     ` Meng Xu

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.