Bug#863198: Xen compiling with XSM on

2019-01-23 Thread Herve Moris
Hi Hans,

As far as I remember Mark Pryor managed to compile it and made a debian
package with XSM enabled.

So I think you can indeed close this bug :)

Fun fact, I just compiled compiled the new stable version (4.11.1)
yesterday successfully.

If anyone crossing these reports wants to know the process (build in a
Docker container, default flask policy):

/# In an updated Debian 9 docker /

/echo "deb-src http://ftp.be.debian.org/debian/ testing main" >>
/etc/apt/sources.list//
//apt update && apt upgrade -y/

///# install testing apt sources//
//apt-get source xen//
//
//# or just use ://
//apt-get build-dep xen//
//
//apt install checkpolicy texinfo fakeroot libpci-dev pandoc
libsystemd-dev fig2dev markdown devscripts rdfind//
//
//cd $(find $(pwd) -maxdepth 1 -type d -name "xen-*")//
//
//cat <> //
//
//# Enableling and configuring XSM and FLASK//
//XSM_ENABLE=y//
//FLASK_ENABLE=y//
//CONFIG_XSM=y//
//CONFIG_FLASK=y//
//CONFIG_FLASK_AVC_STATS=y//
//CONFIG_XSM_POLICY=y//
//
//EOF//
//
//cd ..//
//
//dpkg-buildpackage -rfakeroot -us -uc -b//
//
//mkdir ../deb_files//
//mv ../*.deb /../deb_files//
//
//# Copy what is under ./deb_files to the server (docker cp ... &&
scp -r ...)//
//
//
//## Installation notes//
//# Install the deb files//
//dpkg -i *.deb//
//
//# set GRUB_CMDLINE_XEN_DEFAULT="flask=permissive" and
GRUB_CMDLINE_XEN=""//
//# in /etc/default/grub.d/xen.cfg//
//
//update-grub//
//
//# if grub doesn't want to start XEN kernel because of xenpolicy
multiboot header bla bla - Li'l Bug with Grub integration//
//# change //
//# for i in /boo/xen*; do ...    to    for i in /boo/xen-*; do
...  (line 180)//
//# in vim /etc/grub.d/20_linux_xen//
//
//update-grub/


Best Regards,

Hervé


*Hervé Moris*
System Administrator / Backend developer

*Loyaltek*
Cantersteen 47
1000 - Brussels
Tel : +32 2 808.07.58
Fax : +32 2 706.56.84

www.loyaltek.com 
On 1/23/19 11:41 PM, Hans van Kranenburg wrote:
> tags 863198 + moreinfo
> thanks
>
> Hi Hervé,
>
> I'm hunting down old bug reports in the Xen packages, and also ran into
> this one:
>
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863198
>
> Like John Keates already answered in there, when dealing with the source
> of a debian package, you're also expected to use the debian packaging
> way of building it. When just issuing make commands, you're dealing with
> the upstream source in a way that we cannot support in Debian.
>
> Since there has been no more activity on the report, I might close it in
> a while if there's no response, since it's not something we can act on.
>
> Have fun,
> Hans


Bug#863198: Xen compiling with XSM on

2019-01-23 Thread Hans van Kranenburg
tags 863198 + moreinfo
thanks

Hi Hervé,

I'm hunting down old bug reports in the Xen packages, and also ran into
this one:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863198

Like John Keates already answered in there, when dealing with the source
of a debian package, you're also expected to use the debian packaging
way of building it. When just issuing make commands, you're dealing with
the upstream source in a way that we cannot support in Debian.

Since there has been no more activity on the report, I might close it in
a while if there's no response, since it's not something we can act on.

Have fun,
Hans



Bug#863198: [Pkg-xen-devel] Bug#863198: Xen compiling with XSM on

2017-05-23 Thread John Keates
Have you tried building the package instead? I find that ‘make install’ often 
doesn’t do what you expect when a project is engineered to work as a package.

Try the following:

- run apt-get source and apt-get build-sep as you did
- Edit rules.real in the debian directory, you can add configure settings in 
there as well
- run debuild  or dpkg-buildpackage -us -uc to get .deb packages with your 
changes

you then end up with ‘normal’ debian packages you can install using dpkg -i.

John

> On 23 May 2017, at 12:32, Hervé Moris  wrote:
> 
> Package: xen
> 
> Version: 4.8.1
> OS : Debian Jessie 8.8 (stable), testing repository enabled in sources.list 
> to download xen-4.8.1
> 
> 
> I'm trying to install xen with XSM Flask module on.
> Following, the instructions I did :
> 
> apt-get build-dep xen
> apt-get source xen
> cd xen-4.8.1
> vim.tiny Configure.mk (and added XSM_ENABLE ?=y and FLASK_ENABLE ?=y)
> make clean
> ./configure --enable-xen --enable-tools --enable-xsm
> make
> make install
> update grub
> reboot
> After the reboot, debian with hypervisor starts but I'm unable to launch xl 
> command and xenstore-ls gives no answer. 
> Am I missing something ?
> 
> Regards,
> 
> Hervé
> 
> uname -a : Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2 (2017-04-30) x86_64 
> GNU/Linux
> ___
> Pkg-xen-devel mailing list
> pkg-xen-de...@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-xen-devel



Bug#863198: Xen compiling with XSM on

2017-05-23 Thread Hervé Moris

Package: xen

Version: 4.8.1

OS : Debian Jessie 8.8 (stable), testing repository enabled in 
sources.list to download xen-4.8.1




I'm trying to install xen with XSM Flask module on.

Following, the instructions I did :

1. apt-get build-dep xen
2. apt-get source xen
3. cd xen-4.8.1
4. vim.tiny Configure.mk (and added XSM_ENABLE ?=y and FLASK_ENABLE
   ?=y)
5. make clean
6. ./configure --enable-xen --enable-tools --enable-xsm
7. make
8. make install
9. update grub
   10. reboot

After the reboot, debian with hypervisor starts but I'm unable to launch 
xl command and xenstore-ls gives no answer.


Am I missing something ?

Regards,

Hervé


/uname -a /: Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2 (2017-04-30) 
x86_64 GNU/Linux