Re: [qubes-users] Build USB install with kernel 5+

2020-04-20 Thread 'Max Andersen' via qubes-users
Den 17. apr. 2020 kl. 09.40 skrev Frédéric Pierret 
:
>> 
> It's because I don't sign commit tag. Please add NO_CHECK = 1 into 
> builder.conf. BTW, don't hesitate to check documentation too.

Working like a charm, thank you .

Sincerely
Max

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/4A4EC77A-7BCE-4850-88D7-E9F45EC12C8E%40militant.dk.


Re: [qubes-users] Build USB install with kernel 5+

2020-04-17 Thread Frédéric Pierret


On 2020-04-16 22:55, Max Andersen wrote:
> 
> On 4/16/20 10:46 PM, Frédéric Pierret wrote:
>> Also, if you wait a little bit, it will be in official repository soon. The 
>> PR has been merged few minutes ago and the build is in progress :)
> 
> Cool, I just changed it and it got me a new error so  I guess I might have 
> been to fast, sorry :)
> 
> -> Updating sources for linux-kernel...
> --> Fetching from https://github.com/fepitre/qubes-linux-kernel kernel-5.6...
> --> Verifying tags...
> No valid signed tag found!
> make: *** [Makefile:204: linux-kernel.get-sources] Error 1
> [user@qubes-builder qubes-builder]$
> 

It's because I don't sign commit tag. Please add NO_CHECK = 1 into 
builder.conf. BTW, don't hesitate to check documentation too.

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/1c91fec8-d43e-9619-469e-92932ea752aa%40qubes-os.org.


signature.asc
Description: OpenPGP digital signature


Re: [qubes-users] Build USB install with kernel 5+

2020-04-16 Thread Frédéric Pierret
>>
>> -> Updating sources for linux-kernel...
>> --> Fetching from https://github.com/QubesOS/qubes-linux-kernel.git 
>> kernel-5.6...
>> fatal: Remote branch kernel-5.6 not found in upstream origin
>>
> There is a typo in 3.2. It should be :
> 
>   GIT_URL_linux_kernel=...
> 
> instead of just
> 
>   URL_...
> 

Also, if you wait a little bit, it will be in official repository soon. The PR 
has been merged few minutes ago and the build is in progress :)

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/e1b9c33e-1512-6604-d158-311eaa5cfdba%40qubes-os.org.


signature.asc
Description: OpenPGP digital signature


Re: [qubes-users] Build USB install with kernel 5+

2020-04-16 Thread Frédéric Pierret


On 2020-04-16 22:34, 'Max Andersen' via qubes-users wrote:
> 
> On 4/15/20 10:05 AM, Frédéric Pierret wrote:
>> On 2020-04-15 08:09, Max Andersen wrote:
 Den 14. apr. 2020 kl. 08.02 skrev Frédéric Pierret 
 :

 Hi,
 I used to build newer ISO in the past for such troubles with kernel-latest 
 embedded. If you are interested, I can build you an 4.0.3 with 
 kernel-latest-5.6 for try?
>>> When I try, the builder script fails horribly. Can you write a stepguide? 
>>> Maybe just commands and selections on how you build it(if it is not too 
>>> much of a hassle)?
>> Sure, here are the procedure for building latest Qubes 4.0.3 ISO with 
>> already built packages (templates included) using Qubes OS official 
>> repositories:
>>
>> 1) In a working directory, e.g. `/home/user/`, clone `qubes-builder`:
>>
>> git clone https://github.com/QubesOS/qubes-builder
>>
>> 2) Download specific builder conf file for such process:
>>
>> wget 
>> https://raw.githubusercontent.com/QubesOS/qubes-release-configs/master/R4.0/qubes-os-iso-full-online.conf
>>  -O /home/user/qubes-builder/builder.conf
>>
>> 3) Enable QubesOS testing packages for the build and specify release branch 
>> for the installer:
>>
>> echo 'USE_QUBES_REPO_TESTING=1' >> /home/user/qubes-builder/builder.conf
>> echo 'BRANCH_installer_qubes_os=release4.0' >> 
>> /home/user/qubes-builder/builder.conf
>>
>> 4) Get sources:
>>
>> cd /home/user/qubes-builder/
>> make get-sources
>>
>> 5) Enable `kernel-latest` in the ISO build process:
>>
>> sed -i 's#\(> type="\)optional\(">kernel-latest.*$\)#\1mandatory\2#' 
>> qubes-src/installer-qubes-os/conf/comps-qubes.xml
>>
>> 6) Build ISO:
>>
>> make iso
>>
>> 7) Get your freshly built ISO in `/home/user/qubes-builder/iso`
>>
>> The current kernel-5.6 is still at PR stage. If you want to try it you need 
>> to build it:
>>
>> 3.1) Add `linux-kernel` in `COMPONENTS`:
>>
>> echo 'COMPONENTS+=linux-kernel'
>>
>> 3.2) Change URL and BRANCH of the git repository:
>>
>> echo 'URL_linux_kernel=https://github.com/fepitre/qubes-linux-kernel' >> 
>> /home/user/qubes-builder/builder.conf
>> echo 'BRANCH_linux_kernel=kernel-5.6' >> 
>> /home/user/qubes-builder/builder.conf
>>
>> 4.1) Get sources of it:
>>
>> make get-sources
> 
> 
> It went  quite well with 5.5.13, but not with 5.6. I get the error:
> 
> -> Updating sources for linux-kernel...
> --> Fetching from https://github.com/QubesOS/qubes-linux-kernel.git 
> kernel-5.6...
> fatal: Remote branch kernel-5.6 not found in upstream origin
> 
There is a typo in 3.2. It should be :

GIT_URL_linux_kernel=...

instead of just

URL_...

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/95ab3e94-6d4a-7969-f461-885c71f9e368%40qubes-os.org.


signature.asc
Description: OpenPGP digital signature


Re: [qubes-users] Build USB install with kernel 5+

2020-04-16 Thread 'Max Andersen' via qubes-users

On 4/15/20 10:05 AM, Frédéric Pierret wrote:
> On 2020-04-15 08:09, Max Andersen wrote:
>>
>>> Den 14. apr. 2020 kl. 08.02 skrev Frédéric Pierret 
>>> :
>>>
>>> Hi,
>>> I used to build newer ISO in the past for such troubles with kernel-latest 
>>> embedded. If you are interested, I can build you an 4.0.3 with 
>>> kernel-latest-5.6 for try?
>> When I try, the builder script fails horribly. Can you write a stepguide? 
>> Maybe just commands and selections on how you build it(if it is not too much 
>> of a hassle)?
> Sure, here are the procedure for building latest Qubes 4.0.3 ISO with already 
> built packages (templates included) using Qubes OS official repositories:
>
> 1) In a working directory, e.g. `/home/user/`, clone `qubes-builder`:
>
> git clone https://github.com/QubesOS/qubes-builder
>
> 2) Download specific builder conf file for such process:
>
> wget 
> https://raw.githubusercontent.com/QubesOS/qubes-release-configs/master/R4.0/qubes-os-iso-full-online.conf
>  -O /home/user/qubes-builder/builder.conf
>
> 3) Enable QubesOS testing packages for the build and specify release branch 
> for the installer:
>
> echo 'USE_QUBES_REPO_TESTING=1' >> /home/user/qubes-builder/builder.conf
> echo 'BRANCH_installer_qubes_os=release4.0' >> 
> /home/user/qubes-builder/builder.conf
>
> 4) Get sources:
>
> cd /home/user/qubes-builder/
> make get-sources
>
> 5) Enable `kernel-latest` in the ISO build process:
>
> sed -i 's#\( type="\)optional\(">kernel-latest.*$\)#\1mandatory\2#' 
> qubes-src/installer-qubes-os/conf/comps-qubes.xml
>
> 6) Build ISO:
>
> make iso
>
> 7) Get your freshly built ISO in `/home/user/qubes-builder/iso`
>
> The current kernel-5.6 is still at PR stage. If you want to try it you need 
> to build it:
>
> 3.1) Add `linux-kernel` in `COMPONENTS`:
>
> echo 'COMPONENTS+=linux-kernel'
>
> 3.2) Change URL and BRANCH of the git repository:
>
> echo 'URL_linux_kernel=https://github.com/fepitre/qubes-linux-kernel' >> 
> /home/user/qubes-builder/builder.conf
> echo 'BRANCH_linux_kernel=kernel-5.6' >> 
> /home/user/qubes-builder/builder.conf
>
> 4.1) Get sources of it:
>
> make get-sources


It went  quite well with 5.5.13, but not with 5.6. I get the error:

-> Updating sources for linux-kernel...
--> Fetching from https://github.com/QubesOS/qubes-linux-kernel.git
kernel-5.6...
fatal: Remote branch kernel-5.6 not found in upstream origin

The builder.conf contains:

vim: ft=make

VERBOSE ?= 2

BACKEND_VMM ?= xen

GIT_BASEURL ?= https://github.com
GIT_PREFIX ?= QubesOS/qubes-

RELEASE ?= 4.0

DIST_DOM0 ?= fc25
DISTS_VM ?=

COMPONENTS = \
    installer-qubes-os \
    linux-yum \
    linux-kernel \
    builder-rpm

BUILDER_PLUGINS ?= builder-rpm

USE_QUBES_REPO_VERSION = $(RELEASE)

INSTALLER_KICKSTART=/home/user/qubes-src/installer-qubes-os/conf/iso-full-online.ks
USE_QUBES_REPO_TESTING=1
BRANCH_installer_qubes_os=release4.0
URL_linux_kernel=https://github.com/fepitre/qubes-linux-kernel
BRANCH_linux_kernel=kernel-5.6


Thank you very much for your help. I really appreciate it.

Sincerely

Max

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/8e51dca8-61e0-128b-ad12-427334b8363c%40militant.dk.


signature.asc
Description: OpenPGP digital signature


Re: [qubes-users] Build USB install with kernel 5+

2020-04-16 Thread Frédéric Pierret


On 2020-04-16 20:55, 'Max Andersen' via qubes-users wrote:
> New error emerges:
> 
> [user@qubes-builder qubes-builder]$ make iso
> -> Preparing for ISO build...
> --> Removing old rpms from the installer repos...
> ---> Cleaning up repo: dom0-updates...
> ---> Cleaning up repo: installer...
> ---> Cleaning up repo: qubes-dom0...
> --> Copying installer-qubes-os RPMs...
> ln: failed to access 
> 'pkgs/dom0-fc25/noarch/pykickstart-2.32-4.fc25.noarch.rpm': No such file or 
> directory
> ln: failed to access 
> 'pkgs/dom0-fc25/noarch/python-kickstart-2.32-4.fc25.noarch.rpm': No such file 
> or directory
> ln: failed to access 
> 'pkgs/dom0-fc25/noarch/python3-kickstart-2.32-4.fc25.noarch.rpm': No such 
> file or directory
> ln: failed to access 
> 'pkgs/dom0-fc25/noarch/python-blivet-2.1.11-6.fc25.noarch.rpm': No such file 
> or directory
> ln: failed to access 
> 'pkgs/dom0-fc25/noarch/python3-blivet-2.1.11-6.fc25.noarch.rpm': No such file 
> or directory
> ln: failed to access 'pkgs/dom0-fc25/x86_64/lorax-25.19-1.fc25.x86_64.rpm': 
> No such file or directory
> ln: failed to access 
> 'pkgs/dom0-fc25/x86_64/lorax-lmc-virt-25.19-1.fc25.x86_64.rpm': No such file 
> or directory
> ln: failed to access 
> 'pkgs/dom0-fc25/x86_64/lorax-lmc-novirt-25.19-1.fc25.x86_64.rpm': No such 
> file or directory
> ln: failed to access 
> 'pkgs/dom0-fc25/x86_64/lorax-templates-generic-25.19-1.fc25.x86_64.rpm': No 
> such file or directory
> ln: failed to access 
> 'pkgs/dom0-fc25/noarch/lorax-templates-qubes-4.0.6-1.fc25.noarch.rpm': No 
> such file or directory
> ln: failed to access 'pkgs/dom0-fc25/noarch/pungi-4.1.14-2.fc25.noarch.rpm': 
> No such file or directory
> ln: failed to access 
> 'pkgs/dom0-fc25/noarch/pungi-utils-4.1.14-2.fc25.noarch.rpm': No such file or 
> directory
> ln: failed to access 
> 'pkgs/dom0-fc25/x86_64/anaconda-25.20.9-17.fc25.x86_64.rpm': No such file or 
> directory
> ln: failed to access 
> 'pkgs/dom0-fc25/x86_64/anaconda-core-25.20.9-17.fc25.x86_64.rpm': No such 
> file or directory
> ln: failed to access 
> 'pkgs/dom0-fc25/x86_64/anaconda-gui-25.20.9-17.fc25.x86_64.rpm': No such file 
> or directory
> ln: failed to access 
> 'pkgs/dom0-fc25/x86_64/anaconda-tui-25.20.9-17.fc25.x86_64.rpm': No such file 
> or directory
> ln: failed to access 
> 'pkgs/dom0-fc25/x86_64/anaconda-widgets-25.20.9-17.fc25.x86_64.rpm': No such 
> file or directory
> ln: failed to access 
> 'pkgs/dom0-fc25/x86_64/anaconda-widgets-devel-25.20.9-17.fc25.x86_64.rpm': No 
> such file or directory
> ln: failed to access 
> 'pkgs/dom0-fc25/x86_64/anaconda-dracut-25.20.9-17.fc25.x86_64.rpm': No such 
> file or directory
> ln: failed to access 
> 'pkgs/dom0-fc25/x86_64/anaconda-debuginfo-25.20.9-17.fc25.x86_64.rpm': No 
> such file or directory
> ln: failed to access 
> 'pkgs/dom0-fc25/x86_64/anaconda-debugsource-25.20.9-17.fc25.x86_64.rpm': No 
> such file or directory
> ln: failed to access 
> 'pkgs/dom0-fc25/noarch/qubes-anaconda-addon-4.0.11-1.fc25.noarch.rpm': No 
> such file or directory
> ln: failed to access 'pkgs/dom0-fc25/noarch/qubes-release-4.0-8.noarch.rpm': 
> No such file or directory
> ln: failed to access 
> 'pkgs/dom0-fc25/noarch/qubes-release-notes-4.0-8.noarch.rpm': No such file or 
> directory
> ln: failed to access 
> 'pkgs/dom0-fc25/noarch/qubes-dom0-dist-upgrade-2.0-2.noarch.rpm': No such 
> file or directory
> make[1]: *** 
> [/home/user/qubes-builder/qubes-src/builder-rpm/Makefile.rpmbuilder:158: 
> update-repo-do] Error 1
> make: *** [Makefile:493: iso.copy-rpms.installer-qubes-os] Error 2
> [user@qubes-builder qubes-builder]$

If you built kernel

make iso COMPONENTS=linux-kernel

else

make iso COMPONENTS=

As 'installer-qubes-os' is in COMPONENTS of builder.conf it thinks that the 
packages have been built where as it downloaded it.

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/308aa2d9-87d7-5bcb-bf0f-89a61f5419ce%40qubes-os.org.


signature.asc
Description: OpenPGP digital signature


Re: [qubes-users] Build USB install with kernel 5+

2020-04-16 Thread 'Max Andersen' via qubes-users

On 4/16/20 8:44 PM, Frédéric Pierret wrote:
>> When running make iso I get:
>>
>> [user@qubes-builder qubes-builder]$ make iso
>> -> Preparing for ISO build...
>> --> Removing old rpms from the installer repos...
>> which: no createrepo_c in 
>> (/home/user/.local/bin:/home/user/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/home/user/qubes-builder/qubes-src/builder-rpm/tools)
>> which: no createrepo in 
>> (/home/user/.local/bin:/home/user/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/home/user/qubes-builder/qubes-src/builder-rpm/tools)
>> ---> Cleaning up repo: dom0-updates...
>> ./clean_repos.sh: line 6: -q: command not found
>> ---> Cleaning up repo: installer...
>> ./clean_repos.sh: line 6: -q: command not found
>> ---> Cleaning up repo: qubes-dom0...
>> ./clean_repos.sh: line 6: -q: command not found
>> make[1]: *** [Makefile:80: clean-repos] Error 127
>> make: *** [Makefile:485: iso.clean-repos] Error 2
>> [user@qubes-builder qubes-builder]$
>>
>> Do I need some libraries or something?
> Yes normally you ran:
>   
>   make install-deps
>
> Here it seems that 'createrepo' or 'createrepo_c' is not installed. 
>
> Hum a little fix in the script 'clean_repos.sh' is needed for proper exit and 
> message. I'll fix that.

I cloned a new machine from the newest fedora-template-31, so I know
what is needed in the newest build.

Running make install-deps. installing :

Installed:
  annobin-8.78-3.fc31.x86_64  
createrepo_c-0.15.5-1.fc31.x86_64  
createrepo_c-libs-0.15.5-1.fc31.x86_64  
drpm-0.4.1-1.fc31.x86_64
dwz-0.12-11.fc31.x86_64  
efi-srpm-macros-4-3.fc31.noarch 
  elfutils-0.179-1.fc31.x86_64
fonts-srpm-macros-2.0.3-1.fc31.noarch  
fpc-srpm-macros-1.2-2.fc31.noarch   
gdb-minimal-8.3.50.20190824-30.fc31.x86_64  
ghc-srpm-macros-1.5.0-1.fc31.noarch  
gnat-srpm-macros-4-10.fc31.noarch   
  go-srpm-macros-3.0.8-4.fc31.noarch  
libmodulemd-2.9.1-1.fc31.x86_64
nim-srpm-macros-3-1.fc31.noarch 
ocaml-srpm-macros-5-6.fc31.noarch   
openblas-srpm-macros-2-6.fc31.noarch 
patch-2.7.6-11.fc31.x86_64  
  perl-Digest-SHA-1:6.02-440.fc31.x86_64  
perl-srpm-macros-1-33.fc31.noarch  
python-srpm-macros-3-54.fc31.noarch 
python3-sh-1.12.14-13.fc31.noarch   
qt5-srpm-macros-5.13.2-1.fc31.noarch 
redhat-rpm-config-143-1.fc31.noarch 
  rpm-build-4.15.1-1.fc31.x86_64  
rpm-sign-4.15.1-1.fc31.x86_64  
rpmdevtools-8.10-9.fc31.noarch  
rust-srpm-macros-13-1.fc31.noarch   
xemacs-filesystem-21.5.34-34.20190323hgc0ed7ef9a5a1.fc31.noarch  
zstd-1.4.4-1.fc31.x86_64  

New error emerges:

[user@qubes-builder qubes-builder]$ make iso
-> Preparing for ISO build...
--> Removing old rpms from the installer repos...
---> Cleaning up repo: dom0-updates...
---> Cleaning up repo: installer...
---> Cleaning up repo: qubes-dom0...
--> Copying installer-qubes-os RPMs...
ln: failed to access
'pkgs/dom0-fc25/noarch/pykickstart-2.32-4.fc25.noarch.rpm': No such file
or directory
ln: failed to access
'pkgs/dom0-fc25/noarch/python-kickstart-2.32-4.fc25.noarch.rpm': No such
file or directory
ln: failed to access
'pkgs/dom0-fc25/noarch/python3-kickstart-2.32-4.fc25.noarch.rpm': No
such file or directory
ln: failed to access
'pkgs/dom0-fc25/noarch/python-blivet-2.1.11-6.fc25.noarch.rpm': No such
file or directory
ln: failed to access
'pkgs/dom0-fc25/noarch/python3-blivet-2.1.11-6.fc25.noarch.rpm': No such
file or directory
ln: failed to access
'pkgs/dom0-fc25/x86_64/lorax-25.19-1.fc25.x86_64.rpm': No such file or
directory
ln: failed to access
'pkgs/dom0-fc25/x86_64/lorax-lmc-virt-25.19-1.fc25.x86_64.rpm': No such
file or directory
ln: failed to access
'pkgs/dom0-fc25/x86_64/lorax-lmc-novirt-25.19-1.fc25.x86_64.rpm': No
such file or directory
ln: failed to access
'pkgs/dom0-fc25/x86_64/lorax-templates-generic-25.19-1.fc25.x86_64.rpm':
No such file or directory
ln: failed to access
'pkgs/dom0-fc25/noarch/lorax-templates-qubes-4.0.6-1.fc25.noarch.rpm':
No such file or directory
ln: failed to access
'pkgs/dom0-fc25/noarch/pungi-4.1.14-2.fc25.noarch.rpm': No such file or
directory
ln: failed to access
'pkgs/dom0-fc25/noarch/pungi-utils-4.1.14-2.fc25.noarch.rpm': No such
file or directory
ln: failed to access
'pkgs/dom0-fc25/x86_64/anaconda-25.20.9-17.fc25.x86_64.rpm': No such
file or directory
ln: failed to access
'pkgs/dom0-fc25/x86_64/anaconda-core-25.20.9-17.fc25.x86_64.rpm': No
such file or directory
ln: failed to access
'pkgs/dom0-fc25/x86_64/anaconda-gui-25.20.9-17.fc25.x86_64.rpm': No such
file or directory
ln: failed to access
'pkgs/dom0-fc25/x86_64/anaconda-tui-25.20.9-17.fc25.x86_64.rpm': No such
file or directory
ln: failed to access
'pkgs/dom0-fc25/x86_64/anaconda-widgets-25.20.9-17.fc25.x86_64.rpm': No
such file or directory
ln: failed to access

Re: [qubes-users] Build USB install with kernel 5+

2020-04-16 Thread Frédéric Pierret

> When running make iso I get:
> 
> [user@qubes-builder qubes-builder]$ make iso
> -> Preparing for ISO build...
> --> Removing old rpms from the installer repos...
> which: no createrepo_c in 
> (/home/user/.local/bin:/home/user/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/home/user/qubes-builder/qubes-src/builder-rpm/tools)
> which: no createrepo in 
> (/home/user/.local/bin:/home/user/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/home/user/qubes-builder/qubes-src/builder-rpm/tools)
> ---> Cleaning up repo: dom0-updates...
> ./clean_repos.sh: line 6: -q: command not found
> ---> Cleaning up repo: installer...
> ./clean_repos.sh: line 6: -q: command not found
> ---> Cleaning up repo: qubes-dom0...
> ./clean_repos.sh: line 6: -q: command not found
> make[1]: *** [Makefile:80: clean-repos] Error 127
> make: *** [Makefile:485: iso.clean-repos] Error 2
> [user@qubes-builder qubes-builder]$
> 
> Do I need some libraries or something?

Yes normally you ran:

make install-deps

Here it seems that 'createrepo' or 'createrepo_c' is not installed. 

Hum a little fix in the script 'clean_repos.sh' is needed for proper exit and 
message. I'll fix that.

Best,
Frédéric

> Sincerely
> 
> Max
> 

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/5f66a10c-c3cd-6617-6e9b-b5f21ef0c648%40qubes-os.org.


signature.asc
Description: OpenPGP digital signature


Re: [qubes-users] Build USB install with kernel 5+

2020-04-16 Thread 'Max Andersen' via qubes-users

On 4/15/20 10:05 AM, Frédéric Pierret wrote:
> On 2020-04-15 08:09, Max Andersen wrote:
>>
>>> Den 14. apr. 2020 kl. 08.02 skrev Frédéric Pierret 
>>> :
>>>
>>> Hi,
>>> I used to build newer ISO in the past for such troubles with kernel-latest 
>>> embedded. If you are interested, I can build you an 4.0.3 with 
>>> kernel-latest-5.6 for try?
>> When I try, the builder script fails horribly. Can you write a stepguide? 
>> Maybe just commands and selections on how you build it(if it is not too much 
>> of a hassle)?
> Sure, here are the procedure for building latest Qubes 4.0.3 ISO with already 
> built packages (templates included) using Qubes OS official repositories:
>
> 1) In a working directory, e.g. `/home/user/`, clone `qubes-builder`:
>
> git clone https://github.com/QubesOS/qubes-builder
>
> 2) Download specific builder conf file for such process:
>
> wget 
> https://raw.githubusercontent.com/QubesOS/qubes-release-configs/master/R4.0/qubes-os-iso-full-online.conf
>  -O /home/user/qubes-builder/builder.conf
>
> 3) Enable QubesOS testing packages for the build and specify release branch 
> for the installer:
>
> echo 'USE_QUBES_REPO_TESTING=1' >> /home/user/qubes-builder/builder.conf
> echo 'BRANCH_installer_qubes_os=release4.0' >> 
> /home/user/qubes-builder/builder.conf
>
> 4) Get sources:
>
> cd /home/user/qubes-builder/
> make get-sources
>
> 5) Enable `kernel-latest` in the ISO build process:
>
> sed -i 's#\( type="\)optional\(">kernel-latest.*$\)#\1mandatory\2#' 
> qubes-src/installer-qubes-os/conf/comps-qubes.xml
>
> 6) Build ISO:
>
> make iso
When running make iso I get:

[user@qubes-builder qubes-builder]$ make iso
-> Preparing for ISO build...
--> Removing old rpms from the installer repos...
which: no createrepo_c in
(/home/user/.local/bin:/home/user/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/home/user/qubes-builder/qubes-src/builder-rpm/tools)
which: no createrepo in
(/home/user/.local/bin:/home/user/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/home/user/qubes-builder/qubes-src/builder-rpm/tools)
---> Cleaning up repo: dom0-updates...
./clean_repos.sh: line 6: -q: command not found
---> Cleaning up repo: installer...
./clean_repos.sh: line 6: -q: command not found
---> Cleaning up repo: qubes-dom0...
./clean_repos.sh: line 6: -q: command not found
make[1]: *** [Makefile:80: clean-repos] Error 127
make: *** [Makefile:485: iso.clean-repos] Error 2
[user@qubes-builder qubes-builder]$

Do I need some libraries or something?

Sincerely

Max

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/d05519f3-5234-8eaf-ecdc-4b943060c1fd%40militant.dk.


signature.asc
Description: OpenPGP digital signature


Re: [qubes-users] Build USB install with kernel 5+

2020-04-15 Thread Frédéric Pierret

On 2020-04-15 08:09, Max Andersen wrote:
> 
> 
>> Den 14. apr. 2020 kl. 08.02 skrev Frédéric Pierret 
>> :
>>
>> Hi,
>> I used to build newer ISO in the past for such troubles with kernel-latest 
>> embedded. If you are interested, I can build you an 4.0.3 with 
>> kernel-latest-5.6 for try?
> 
> When I try, the builder script fails horribly. Can you write a stepguide? 
> Maybe just commands and selections on how you build it(if it is not too much 
> of a hassle)?

Sure, here are the procedure for building latest Qubes 4.0.3 ISO with already 
built packages (templates included) using Qubes OS official repositories:

1) In a working directory, e.g. `/home/user/`, clone `qubes-builder`:

git clone https://github.com/QubesOS/qubes-builder

2) Download specific builder conf file for such process:

wget 
https://raw.githubusercontent.com/QubesOS/qubes-release-configs/master/R4.0/qubes-os-iso-full-online.conf
 -O /home/user/qubes-builder/builder.conf

3) Enable QubesOS testing packages for the build and specify release branch for 
the installer:

echo 'USE_QUBES_REPO_TESTING=1' >> /home/user/qubes-builder/builder.conf
echo 'BRANCH_installer_qubes_os=release4.0' >> 
/home/user/qubes-builder/builder.conf

4) Get sources:

cd /home/user/qubes-builder/
make get-sources

5) Enable `kernel-latest` in the ISO build process:

sed -i 's#\(kernel-latest.*$\)#\1mandatory\2#' 
qubes-src/installer-qubes-os/conf/comps-qubes.xml

6) Build ISO:

make iso

7) Get your freshly built ISO in `/home/user/qubes-builder/iso`

The current kernel-5.6 is still at PR stage. If you want to try it you need to 
build it:

3.1) Add `linux-kernel` in `COMPONENTS`:

echo 'COMPONENTS+=linux-kernel'

3.2) Change URL and BRANCH of the git repository:

echo 'URL_linux_kernel=https://github.com/fepitre/qubes-linux-kernel' >> 
/home/user/qubes-builder/builder.conf
echo 'BRANCH_linux_kernel=kernel-5.6' >> 
/home/user/qubes-builder/builder.conf

4.1) Get sources of it:

make get-sources

4.2) Build it:

make linux-kernel

Those extra steps X.Y) can be added into the whole ISO build process. Else, it 
can be done after you have installed the ISO previously built (or downloaded 
ISO from official website) with official Qubes packages and install the built 
kernel manually by copying the RPMs create into 
`/home/user/qubes-builder/qubes-src/linux-kernel/pkgs/dom0-fc25/x86_64/`.

I've probably written typo. Don't hesitate to ask in any case.

Best,
Frédéric

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/df39babb-03c3-ab0b-2157-d7d915292a02%40qubes-os.org.


signature.asc
Description: OpenPGP digital signature


Re: [qubes-users] Build USB install with kernel 5+

2020-04-15 Thread 'Max Andersen' via qubes-users



> Den 14. apr. 2020 kl. 08.02 skrev Frédéric Pierret 
> :
> 
> Hi,
> I used to build newer ISO in the past for such troubles with kernel-latest 
> embedded. If you are interested, I can build you an 4.0.3 with 
> kernel-latest-5.6 for try?

When I try, the builder script fails horribly. Can you write a stepguide? Maybe 
just commands and selections on how you build it(if it is not too much of a 
hassle)?

I would love to build it on my own, so I can do it in the future, since my 
hardware is so new

Thank you very much
Max

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/1C62A5AB-20E7-4C68-BA0B-80F4E6B3C64B%40militant.dk.


Re: [qubes-users] Build USB install with kernel 5+

2020-04-14 Thread Frédéric Pierret
Hi,
I used to build newer ISO in the past for such troubles with kernel-latest 
embedded. If you are interested, I can build you an 4.0.3 with 
kernel-latest-5.6 for try?

Best,

On 2020-04-14 07:54, 'Max Andersen' via qubes-users wrote:
> Just want to mention the system(firmware, etc.) is brand new, so many
> issues might be lack of support.
> 
> On 4/14/20 1:28 AM, 'awokd' via qubes-users wrote:
>> 'Max Andersen' via qubes-users:
>>
>>> I can actually put in an older wireless usb in the machine, and it sees it 
>>> with lsusb in dom0, but I Dont know how To enable it in vm
>> In dom0, use qvm-usb to try to attach that device to sys-net. Some USB
>> devices don't passthrough very well, though.
> 
> qvm-usb shows no output:
> 
> [max@dom0 ~]$ qvm-usb
> BACKEND:DEVID  DESCRIPTION  USED BY
> [max@dom0 ~]$ lsusb
> Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 001 Device 006: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS
> 802.11n Wireless Network Adapter
> Bus 001 Device 005: ID 046d:c52f Logitech, Inc. Unifying Receiver
> Bus 001 Device 004: ID 046d:c318 Logitech, Inc. Illuminated Keyboard
> Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub
> Bus 001 Device 003: ID 8087:0026 Intel Corp.
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> [max@dom0 ~]$
> 
>>> Tried qvm-pci
>>>
>>> It showed usb controller on that?
>>>
>>> When runming qvm-pci a sys-net-clone-1 dom0:00_14.0 it failed with got 
>>> empty response from qubesd and hung
>> You might be trying to attach the USB controller itself to
>> sys-net-clone-1. This can work, if you're sure nothing else is on it
>> (like your keyboard & mouse). Many systems only have one controller
>> though, so try USB passthrough first.
> 
> 
> That was probably what I did and it failed :).
> 
> Sincerely
> 
> Max
> 
> 

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/aa585133-1fc0-c11a-29a7-519a442075a3%40qubes-os.org.


Re: [qubes-users] Build USB install with kernel 5+

2020-04-13 Thread 'Max Andersen' via qubes-users
Just want to mention the system(firmware, etc.) is brand new, so many
issues might be lack of support.

On 4/14/20 1:28 AM, 'awokd' via qubes-users wrote:
> 'Max Andersen' via qubes-users:
>
>> I can actually put in an older wireless usb in the machine, and it sees it 
>> with lsusb in dom0, but I Dont know how To enable it in vm
> In dom0, use qvm-usb to try to attach that device to sys-net. Some USB
> devices don't passthrough very well, though.

qvm-usb shows no output:

[max@dom0 ~]$ qvm-usb
BACKEND:DEVID  DESCRIPTION  USED BY
[max@dom0 ~]$ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS
802.11n Wireless Network Adapter
Bus 001 Device 005: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 001 Device 004: ID 046d:c318 Logitech, Inc. Illuminated Keyboard
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 003: ID 8087:0026 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[max@dom0 ~]$

>> Tried qvm-pci
>>
>> It showed usb controller on that?
>>
>> When runming qvm-pci a sys-net-clone-1 dom0:00_14.0 it failed with got empty 
>> response from qubesd and hung
> You might be trying to attach the USB controller itself to
> sys-net-clone-1. This can work, if you're sure nothing else is on it
> (like your keyboard & mouse). Many systems only have one controller
> though, so try USB passthrough first.


That was probably what I did and it failed :).

Sincerely

Max


-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/e1f5bbea-d78a-80a7-fd58-bc3349efbf64%40militant.dk.


Re: [qubes-users] Build USB install with kernel 5+

2020-04-13 Thread 'awokd' via qubes-users
'Max Andersen' via qubes-users:

> I can actually put in an older wireless usb in the machine, and it sees it 
> with lsusb in dom0, but I Dont know how To enable it in vm

In dom0, use qvm-usb to try to attach that device to sys-net. Some USB
devices don't passthrough very well, though.

> Tried qvm-pci
> 
> It showed usb controller on that?
> 
> When runming qvm-pci a sys-net-clone-1 dom0:00_14.0 it failed with got empty 
> response from qubesd and hung

You might be trying to attach the USB controller itself to
sys-net-clone-1. This can work, if you're sure nothing else is on it
(like your keyboard & mouse). Many systems only have one controller
though, so try USB passthrough first.

-- 
- don't top post
Mailing list etiquette:
- trim quoted reply to only relevant portions
- when possible, copy and paste text instead of screenshots

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/98b80349-4b57-ee17-ba72-87af296f55fc%40danwin1210.me.


Re: [qubes-users] Build USB install with kernel 5+

2020-04-11 Thread 'Max Andersen' via qubes-users


> Den 28. mar. 2020 kl. 19.38 skrev Ilpo Järvinen 
> :
> 
> On Sat, 28 Mar 2020, max via qubes-users wrote:
> 
>> Hi everyone,
>> 
>> Any help appreciated.
>> 
>> I managed to install a Qubes 4.0.3 on an Intel NUC10FNK. No VM's can start
>> due to an error like: Internal error: Unable to reset PCI device
>> :00:1f:6:no FLR, PM rset or bus reset available.
> 
> Test setting permissive mode for that PCI device.

Hi Ilpo,

I tried your recommendation, and now it starts the vm, but it still has no 
network, since the driver propably only resides in newer kernels which dom0 
does not have. (it says sys-net has no network cards)

I can actually put in an older wireless usb in the machine, and it sees it with 
lsusb in dom0, but I Dont know how To enable it in vm

I tried readlink /sys/bus/usb/devices/usb1

It gave :00:14.0/usb1

Tried qvm-pci

It showed usb controller on that?

When runming qvm-pci a sys-net-clone-1 dom0:00_14.0 it failed with got empty 
response from qubesd and hung

Any ideas, maybe on getting kernel 5 on qubes?
Sincerely 
Max

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/C6333494-4A9C-4197-A70D-093A0ECAA72A%40militant.dk.


Re: [qubes-users] Build USB install with kernel 5+

2020-03-28 Thread 'Ilpo Järvinen' via qubes-users
On Sat, 28 Mar 2020, max via qubes-users wrote:

> Hi everyone,
> 
> Any help appreciated.
> 
> I managed to install a Qubes 4.0.3 on an Intel NUC10FNK. No VM's can start
> due to an error like: Internal error: Unable to reset PCI device
> :00:1f:6:no FLR, PM rset or bus reset available.

Test setting permissive mode for that PCI device.

-- 
 i.

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/alpine.DEB.2.20.2003282036430.8497%40whs-18.cs.helsinki.fi.