On 14.05.21 11:11, along li wrote:
> It's very easy to build jailhouse in Ubuntu 18.04.  But not ubuntu
> 20.04( produce link error)
> 

Newer kernels no longer support retrieving missing symbols via kallsyms.
So you need to patch and recompile them. That's what you need to do
anyway when you want to use ivshmem devices.

Patch queues are available at [1] and [2].

Jan

[1] https://github.com/siemens/linux/commits/jailhouse-enabling/5.10
[2]
http://git.kiszka.org/?p=linux.git;a=shortlog;h=refs/heads/queues/jailhouse

> 1.install kernel-header
> 2.build jailhouse
>   make KDIR=/usr/src/linux-5.4.0       #KDIR is set to the linux src dir
> or  header dir
> 
> 3. install python and pip etc.
> apt install python-pip
> pip install wheel
> pip install setuptools
> pip install Flask
> pip install mako
> 
> 
> 4. install jailhouse 
> sudo make install 
> 
> jailhouse should be install sucess.
> How to use ? 
> 1.insmod   driver/jailhouse.ko
> 2.jailhouse enable configs/x86/machine.cell
> 
> --------------------------------------------------
> The most  diffcult is how to write  good  machine.c to produce machine.cell.
> May this help you !
> 
> 
> 
> 
> 
> 在2021年5月10日星期一 UTC+8 下午6:40:00<Henning Schild> 写道:
> 
>     There is no reason for "sudo" for a simple "make". It is likely you are
>     missing kernel sources, or tools that the build process needs. Or -
>     given that distro - things are outdated. Jailhouse does not need much,
>     but also centos does not offer much ;)
> 
>     try a fresh clone, no "sudo", "make V=1 -j1"
> 
>     Henning
> 
>     Am Sat, 8 May 2021 11:19:01 +0530
>     schrieb Prashant Kalikotay <[email protected]>:
> 
>     > Thank you so much for your reply. While my installation I run sudo
>     > make and that fails with the error : /path/to/build no such file or
>     > directory is present. I checked the path/to/build and it exists and i
>     > have also given superuser privileges to the user.
>     > Could anyone get me anything on this. I am using CentOS 8.
>     >
>     > Regards,
>     > Prashant K
>     >
>     > On Fri, 7 May 2021, 14:37 Bram Hooimeijer, <
>     > [email protected]> wrote:
>     >
>     > >
>     > > > Dear Sir/Madam,
>     > > >
>     > > > I am trying to install jailhouse in
>     > > > CentOS
>     > > but the installation did
>     > > > not work or it did not get installed. Whereas when I tried to
>     > > > install in
>     > > Ubuntu
>     > > > it readily installed. My query is does Jailhouse install in
>     > > > CentOS or is
>     > > there any
>     > > > additional things to be done to install it?.
>     > >
>     > > What errors do you get? Maybe there's someone on the list who
>     > > encountered those before.
>     > >
>     > > As far as I know, Jailhouse should run given that the kernel is
>     > > properly configured.
>     > > For newer Linux kernels, you might need some patches:
>     > >
>     http://git.kiszka.org/?p=linux.git;a=summary
>     <http://git.kiszka.org/?p=linux.git;a=summary>
> 
>     > > I have it running with minimal modifications on Linux 5.4
>     > >
>     > > Best, Bram Hooimeijer
>     > >
>     > >
>     > > >
>     > > > Thanking you in advance.
>     > > >
>     > > >
>     > > > Regards,
>     > > >
>     > > > Prashant K
>     > > >
>     > > > --
>     > >
>     >
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Jailhouse" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jailhouse-dev/22bbb8a9-2af9-4e79-9a71-81f20e8f564an%40googlegroups.com
> <https://groups.google.com/d/msgid/jailhouse-dev/22bbb8a9-2af9-4e79-9a71-81f20e8f564an%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/b0caae36-ca7a-f6e8-5ea9-d612b6d00d40%40siemens.com.

Reply via email to