Re: [qubes-users] Re: Compiling kernel modules

2019-04-04 Thread Zbigniew Łukasiak
Thanks - it worked!

I hope a fix gets into the core system as I still have some problems
with the modem and I am not sure what I am doing wrong.

Z.

On Sat, Mar 30, 2019 at 5:07 PM awokd  wrote:
>
> Zbigniew Łukasiak wrote on 3/27/19 8:22 AM:
> > On Wed, Mar 27, 2019 at 12:50 AM 'awokd' via qubes-users
> >  wrote:
> >>
> >> Zbigniew Łukasiak wrote on 3/24/19 4:22 PM:
> >>> OK - so it looks that it does not work like that in QubesOS - i.e. by
> >>> default the  modules directory is read only. I found some instructions
> >>> on installing custom kernels in:
> >>> www.qubes-os.org/doc/managing-vm-kernel/#using-kernel-installed-in-the-vm.
> >>> I don't really need a new kernel - I just want to be able to compile
> >>> the modules - but this looks like a possible way out for me. So I did
> >>> cloned the fedora-29 template and:
> >>>
> >>> qvm-prefs  virt_mode hvm
> >>> qvm-prefs  kernel ''
> >>>
> >>> unfortunately now the cloned template does not start - so I cannot
> >>> continue with the instructions at the doc linked above. When I change
> >>> the kernel back to '4.14.103-1' it works fine.
> >>
> >> That should be all you have to do. Might be an issue with fedora-29.
> >> Does it work with 28?
> >
> > With 28 the same thing. It does not start -
> > /var/log/xen/console/guest-fedora-28-netvm-template.log is empty.
> >
>
> This worked for me with Debian-9:
>
> - create Standalone based from template, or clone existing template
> - leave PVH and kernel set, start terminal
> - sudo dkms autoinstall -k 4.9.0-8-amd64 [without this step I got either
> gibberish or no terminal window]
> - powerdown, set to HVM and kernel to none
> - start terminal
>
> I had the same problem you described while trying Fedora-28. I'm not
> sure how to run dkms in there because it complains about a missing
> dkms.conf. See also https://github.com/QubesOS/qubes-issues/issues/4920.
>
>


-- 
Zbigniew Lukasiak
https://medium.com/@zby
http://brudnopis.blogspot.com/

-- 
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 post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/CAGL_UUvgadzPhpjTdQ8yODQf%3D-3B4eFXaZJ8WYH9ZvRUPRyV_A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] Re: Compiling kernel modules

2019-03-30 Thread 'awokd' via qubes-users

Zbigniew Łukasiak wrote on 3/27/19 8:22 AM:

On Wed, Mar 27, 2019 at 12:50 AM 'awokd' via qubes-users
 wrote:


Zbigniew Łukasiak wrote on 3/24/19 4:22 PM:

OK - so it looks that it does not work like that in QubesOS - i.e. by
default the  modules directory is read only. I found some instructions
on installing custom kernels in:
www.qubes-os.org/doc/managing-vm-kernel/#using-kernel-installed-in-the-vm.
I don't really need a new kernel - I just want to be able to compile
the modules - but this looks like a possible way out for me. So I did
cloned the fedora-29 template and:

qvm-prefs  virt_mode hvm
qvm-prefs  kernel ''

unfortunately now the cloned template does not start - so I cannot
continue with the instructions at the doc linked above. When I change
the kernel back to '4.14.103-1' it works fine.


That should be all you have to do. Might be an issue with fedora-29.
Does it work with 28?


With 28 the same thing. It does not start -
/var/log/xen/console/guest-fedora-28-netvm-template.log is empty.



This worked for me with Debian-9:

- create Standalone based from template, or clone existing template
- leave PVH and kernel set, start terminal
- sudo dkms autoinstall -k 4.9.0-8-amd64 [without this step I got either 
gibberish or no terminal window]

- powerdown, set to HVM and kernel to none
- start terminal

I had the same problem you described while trying Fedora-28. I'm not 
sure how to run dkms in there because it complains about a missing 
dkms.conf. See also https://github.com/QubesOS/qubes-issues/issues/4920.



--
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 post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/e6f14a82-52d7-b3bb-de88-661d0a1f62a0%40danwin1210.me.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] Re: Compiling kernel modules

2019-03-27 Thread Zbigniew Łukasiak
On Wed, Mar 27, 2019 at 12:50 AM 'awokd' via qubes-users
 wrote:
>
> Zbigniew Łukasiak wrote on 3/24/19 4:22 PM:
> > OK - so it looks that it does not work like that in QubesOS - i.e. by
> > default the  modules directory is read only. I found some instructions
> > on installing custom kernels in:
> > www.qubes-os.org/doc/managing-vm-kernel/#using-kernel-installed-in-the-vm.
> > I don't really need a new kernel - I just want to be able to compile
> > the modules - but this looks like a possible way out for me. So I did
> > cloned the fedora-29 template and:
> >
> > qvm-prefs  virt_mode hvm
> > qvm-prefs  kernel ''
> >
> > unfortunately now the cloned template does not start - so I cannot
> > continue with the instructions at the doc linked above. When I change
> > the kernel back to '4.14.103-1' it works fine.
>
> That should be all you have to do. Might be an issue with fedora-29.
> Does it work with 28?

With 28 the same thing. It does not start -
/var/log/xen/console/guest-fedora-28-netvm-template.log is empty.

In /var/log/xen/console/guest-fedora-28-netvm-template-dm.log there
are entries - last lines are:

+ target=40
+ device_model=device-model/40
+ true
+ xenstore-watch -n 2 device-model/40/command
device-model/40/command
 -device 'scsi-hd,bus=scsi0.0,drive=disk1,wwn=0x3525400051756266'
-drive 
'file=/dev/xvdc,if=none,id=disk2,format=host_device,cache=writeback,readonly=off'
-device 'scsi-hd,bus=scsi0.0,drive=disk2,wwn=0x3525400051756267'
+ set +x
random: qemu: uninitialized urandom read (16 bytes read)
{"QMP": {"version": {"qemu": {"micro": 0, "minor": 0, "major": 3},
"package": ""}, "capabilities": []}}
{"execute": "qmp_capabilities"}
qubes_gui/init: 592
qubes_gui/init: 607
qubes_gui/init: 609
qubes_gui/init[639]: version sent, waiting for xorg conf
{"return": {}}
qemu: pin_memory_cacheattr failed: Operation not permitted
clocksource: tsc: mask: 0x max_cycles: 0x39c700f5c78,
max_idle_ns: 440795340708 ns
random: crng init done

ZŁ

-- 
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 post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/CAGL_UUtnPUVEMT9TD0j9UUsz-9_P%2BjEHRfaT7Oh%3DyX18uFKxaQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] Re: Compiling kernel modules

2019-03-26 Thread 'awokd' via qubes-users

Zbigniew Łukasiak wrote on 3/24/19 4:22 PM:

OK - so it looks that it does not work like that in QubesOS - i.e. by
default the  modules directory is read only. I found some instructions
on installing custom kernels in:
www.qubes-os.org/doc/managing-vm-kernel/#using-kernel-installed-in-the-vm.
I don't really need a new kernel - I just want to be able to compile
the modules - but this looks like a possible way out for me. So I did
cloned the fedora-29 template and:

qvm-prefs  virt_mode hvm
qvm-prefs  kernel ''

unfortunately now the cloned template does not start - so I cannot
continue with the instructions at the doc linked above. When I change
the kernel back to '4.14.103-1' it works fine.


That should be all you have to do. Might be an issue with fedora-29. 
Does it work with 28?


--
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 post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/148d100f-7ca8-b0d7-9d79-8c4fd1d22428%40danwin1210.me.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] Re: Compiling kernel modules

2019-03-24 Thread Zbigniew Łukasiak
OK - so it looks that it does not work like that in QubesOS - i.e. by
default the  modules directory is read only. I found some instructions
on installing custom kernels in:
www.qubes-os.org/doc/managing-vm-kernel/#using-kernel-installed-in-the-vm.
I don't really need a new kernel - I just want to be able to compile
the modules - but this looks like a possible way out for me. So I did
cloned the fedora-29 template and:

qvm-prefs  virt_mode hvm
qvm-prefs  kernel ''

unfortunately now the cloned template does not start - so I cannot
continue with the instructions at the doc linked above. When I change
the kernel back to '4.14.103-1' it works fine.

--
ZL

-- 
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 post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/CAGL_UUvA65K__3Kg1mNexjdMidvOJEsT%2BOYDyJUzBH7aR3AayQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.