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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20170523/7fec4f3b/attachment.html>
John Keates
2017-May-23 12:31 UTC
[Pkg-xen-devel] Bug#863198: Bug#863198: Xen compiling with XSM on
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 <herve.moris at loyaltek.com> 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-devel at lists.alioth.debian.org > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-xen-devel-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20170523/0c861d96/attachment.html>
Hans van Kranenburg
2019-Jan-23 22:41 UTC
[Pkg-xen-devel] Bug#863198: Xen compiling with XSM on
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
Debian Bug Tracking System
2019-Jan-23 22:45 UTC
[Pkg-xen-devel] Processed: Re: Xen compiling with XSM on
Processing commands for control at bugs.debian.org:> tags 863198 + moreinfoBug #863198 [xen] Xen compiling with XSM on Added tag(s) moreinfo.> thanksStopping processing here. Please contact me if you need assistance. -- 863198: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863198 Debian Bug Tracking System Contact owner at bugs.debian.org with problems
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 <<EOF >> // // //# 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 <http://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-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/pkg-xen-devel/attachments/20190124/5fdbb144/attachment-0001.html>
Debian Bug Tracking System
2019-Feb-22 18:09 UTC
[Pkg-xen-devel] Bug#863198: marked as done (Xen compiling with XSM on)
Your message dated Fri, 22 Feb 2019 19:08:02 +0100 with message-id <71ba9ec6-3ed7-48f3-fac2-904d556002bc at knorrie.org> and subject line Re: Xen compiling with XSM on has caused the Debian Bug report #863198, regarding Xen compiling with XSM on to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner at bugs.debian.org immediately.) -- 863198: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863198 Debian Bug Tracking System Contact owner at bugs.debian.org with problems -------------- next part -------------- An embedded message was scrubbed... From: =?UTF-8?Q?Herv=c3=a9_Moris?= <herve.moris at loyaltek.com> Subject: Xen compiling with XSM on Date: Tue, 23 May 2017 12:32:11 +0200 Size: 5695 URL: <http://alioth-lists.debian.net/pipermail/pkg-xen-devel/attachments/20190222/75b63694/attachment.mht> -------------- next part -------------- An embedded message was scrubbed... From: Hans van Kranenburg <hans at knorrie.org> Subject: Re: Xen compiling with XSM on Date: Fri, 22 Feb 2019 19:08:02 +0100 Size: 7532 URL: <http://alioth-lists.debian.net/pipermail/pkg-xen-devel/attachments/20190222/75b63694/attachment-0001.mht>