[gentoo-user] vmware + ext4 issue

2018-01-01 Thread Adam Carter
When i run a vmware workstation windows 10 guest on an ext4 nvme drive, I
get a kernel crash. The same guest seems stable on an ext4 filesystem on a
spinning disk. Should i report this to kernel devs, and if so, how?

Dec 31 17:20:39 sysname kernel: [ cut here ]
Dec 31 17:20:40 sysname kernel: WARNING: CPU: 5 PID: 4935 at
fs/ext4/inode.c:3842 ext4_set_page_dirty+0x39/0x50
Dec 31 17:20:40 sysname kernel: Modules linked in: vmw_vsock_vmci_transport
vmnet(O) vmw_vmci vmblock(O) vsock vmmon(O) cfg80211 rfkill auth_rpcgss
oid_registry nfsv4 dns_resolver nfs lockd grace sunrpc hid_microsoft
aesni_intel crypto_simd cryptd fam15h_power snd_hda_codec_hdmi glue_helper
snd_hda_codec_realtek snd_hda_codec_generic alx k10temp mdio ohci_pci
i2c_piix4 ohci_hcd snd_hda_intel snd_hda_codec snd_hwdep snd_hda_core
snd_pcm snd_timer sch_fq_codel
Dec 31 17:20:40 sysname kernel: CPU: 5 PID: 4935 Comm: vmx-vcpu-2 Tainted:
G   O4.14.9-gentoo #1
Dec 31 17:20:40 sysname kernel: Hardware name: Gigabyte Technology Co.,
Ltd. To be filled by O.E.M./GA-990FX-GAMING, BIOS NV1 11/03/2015
Dec 31 17:20:40 sysname kernel: task: 9e8c014b0040 task.stack:
b65bc554
Dec 31 17:20:40 sysname kernel: RIP: 0010:ext4_set_page_dirty+0x39/0x50
Dec 31 17:20:40 sysname kernel: RSP: 0018:b65bc5543d70 EFLAGS: 00010246
Dec 31 17:20:40 sysname kernel: RAX: 01ffe000102c RBX: 9e8d048db460
RCX: 
Dec 31 17:20:40 sysname kernel: RDX:  RSI: 0041
RDI: e5f0c690
Dec 31 17:20:40 sysname kernel: RBP: 0041 R08: b65c
R09: 3000
Dec 31 17:20:40 sysname kernel: R10: 9e8bfec42910 R11: 9e8c014b0040
R12: 0001
Dec 31 17:20:40 sysname kernel: R13: 9e8d048db460 R14: 
R15: 0002
Dec 31 17:20:40 sysname kernel: FS:  7fe07b7f5700()
GS:9e8d3ed4() knlGS:
Dec 31 17:20:40 sysname kernel: CS:  0010 DS:  ES:  CR0:
80050033
Dec 31 17:20:40 sysname kernel: CR2: 7fe0a31fd000 CR3: 0003017a8000
CR4: 000406e0
Dec 31 17:20:40 sysname kernel: Call Trace:
Dec 31 17:20:40 sysname kernel:  qp_release_pages+0x5b/0x70 [vmw_vmci]
Dec 31 17:20:40 sysname kernel:
qp_host_unregister_user_memory.isra.20+0x1d/0x70 [vmw_vmci]
Dec 31 17:20:40 sysname kernel:  vmci_qp_broker_detach+0x23d/0x3f0
[vmw_vmci]
Dec 31 17:20:40 sysname kernel:  vmci_host_unlocked_ioctl+0x1b7/0xb90
[vmw_vmci]
Dec 31 17:20:40 sysname kernel:  do_vfs_ioctl+0xa0/0x660
Dec 31 17:20:40 sysname kernel:  ? vfs_read+0xe4/0x100
Dec 31 17:20:40 sysname kernel:  SyS_ioctl+0x6f/0x80
Dec 31 17:20:40 sysname kernel:  entry_SYSCALL_64_fastpath+0x13/0x6c
Dec 31 17:20:40 sysname kernel: RIP: 0033:0x7fe1af175ea7
Dec 31 17:20:40 sysname kernel: RSP: 002b:7fe07b7ecad8 EFLAGS: 3246
ORIG_RAX: 0010
Dec 31 17:20:40 sysname kernel: RAX: ffda RBX: 564d1d4030b0
RCX: 7fe1af175ea7
Dec 31 17:20:40 sysname kernel: RDX: 7fe07b7ecaf0 RSI: 07aa
RDI: 00cb
Dec 31 17:20:40 sysname kernel: RBP: 0175 R08: 0002
R09: 7fe07b7ecc80
Dec 31 17:20:40 sysname kernel: R10:  R11: 3246
R12: 564d1d3fb8e8
Dec 31 17:20:40 sysname kernel: R13: 564d1d403809 R14: 0002
R15: 0050
Dec 31 17:20:40 sysname kernel: Code: c7 48 8b 00 a8 01 75 16 48 8b 57 20
48 8d 42 ff 83 e2 01 48 0f 44 c7 48 8b 00 a8 10 74 0d 48 8b 07 f6 c4 10 74
0f e9 a7 ce f9 ff <0f> ff 48 8b 07 f6 c4 10 75 f1 0f ff e9 96 ce f9 ff 66
0f 1f 44
Dec 31 17:20:40 sysname kernel: ---[ end trace bdcc9ef5a4c4713c ]---


Re: [gentoo-user] Re: Kernel 4.14.7 no longer switches to VT7

2018-01-01 Thread Peter Humphrey
On Sunday, 31 December 2017 18:46:06 GMT Ian Zimmerman wrote:
> On 2017-12-31 01:56, Peter Humphrey wrote:
> > If you don't mind my asking, what factors make you prefer vanilla to
> > gentoo sources? (I assume that's what you use.)
> 
> One reason is security fixes.  Sometimes longterm vanilla already
> includes the fixes from mainline, and when it does not, I know that the
> diff will nearly always apply because they are just two branches of the
> same git tree.
> 
> The other reason is the extra kconfig options in the gentoo sources,
> which are on by default and I don't want any of them.  I don't remember
> anymore but I _think_ at some point it wouldn't let me turn them off
> without extreme violence.

Interesting. Thanks.

-- 
Regards,
Peter.




Re: [gentoo-user] Troubleshooting mounting local filesystems

2018-01-01 Thread Adam Carter
>
> > Can you cut and paste the terminal session of the post boot fixes?
>
> What are you asking for here?
>

Just fishing for more info because I cant think of any circumstance that
would cause the issue you're seeing.

If it were me i'd force an fsck on next reboot, then reboot. I just had a
look on my machines and it looks like the old fsck every N mounts is
disabled everywhere by default these days.


[gentoo-user] Re: Running Gentoo in VirtualBox

2018-01-01 Thread Kai Krakow
Am Sun, 31 Dec 2017 12:40:43 -0700 schrieb thelma:

> I'm using Gentoo as a server (so it runs 24/7) Apache, Asterisk, Hylafax
> etc.
> 
> What are my chances to run Gentoo as a VirtualBox?
> 
> Installing Gentoo takes me 2-3 days (basic setup min., I don't do it
> every month so I have to go through Gentoo handbook); to configure it
> the way I want it takes another week or two.

I recommend having a template Gentoo system with the basic setup and 
basic world set you need. Keep that updates once in a while. If you need 
to deploy a new system, simply clone from this.

I'm doing something similar with our servers:

Upon deploying a new server, I just clone a most similar one, excluding 
the data partitions. Then I cleanup world, make.conf, passwd/groups, 
reset the machine uid in /etc, adjust IP configuration, and run "emerge --
depclean" followed by a world upgrade.

This can be made easier if you're planning your mount volumes correctly, 
that is having mysql, home, hylafax whatever on separate partitions. It 
allows you to run rsync without crossing mount borders.

This works for me since 10+ years of running Gentoo based servers now.


> So I was thinking,  if I run Windows 10 and configure Gentoo as a
> virtual box it might be easier to transfer it from one system to
> another, in case there is a HD failure (like it just happened to me
> yesterday).
> 
> Any input will be appreciated.

I usually virtualize systems by first preparing the kernel to have 
support for VirtualBox or VMware, then installing the proper tools.

After this, prepare the VM and empty disk images, boot sysrescuecd in it 
(which is actually Gentoo based), format and mount your empty disk images 
in it (within the final structure, so you pre-create mount points), then 
use rsync over SSH (as root) to transfer all files. You can do that while 
the source system is still online.

Keep in mind not to rsync special directories like /sys or /proc from the 
source. Create empty mount points instead.

Then try to boot the system offline (do not yet connect it to virtual 
networking), see if it boots. If not, try to fix it and record the steps. 
You can also chroot into the cloned system from sysrescuecd.

Now it's time for resync. Stop services on the source system so it quasi-
offline, just keep sshd running. Now, rsync again. It will now copy the 
differences in just a few seconds to minutes. Maybe reapply the 
previously recorded fixing steps, then boot the cloned system and shut 
the other system down.

If source and destination is the same hardware, you may want to use an 
external drive as intermediate rsync storage. But then you have an 
offline system you cannot boot in case of failure. It's a bit harder then 
if you do it the first time. But it also works great if you are familiar 
with the process.


> I know I might have problem with Serial port and receiving faxes via
> HylaFax as they are time sensitive.

Serial port usually does work in pass-through mode, I've done exactly 
that previously with hylafax.


-- 
Regards,
Kai

Replies to list-only preferred.




[gentoo-user] Re: Kernel 4.14.7 no longer switches to VT7

2018-01-01 Thread Jörg Schaible
Hello Kai,

Am Sat, 30 Dec 2017 00:48:09 +0100 schrieb Kai Krakow:

[snip]
 
> If I remember right (many months ago), I fixed it by changing one line
> in /etc/sddm.conf:
> 
> [X11]
> ServerArguments=-nolisten tcp -keeptty
>   
>This is where the magic happens
> 
> You may want to add or remove that parameter...

thanks for the suggestion, but for me it had unfortunately no influence on the 
behavior...

Cheers,
Jörg






[gentoo-user] Re: Kernel 4.14.7 no longer switches to VT7

2018-01-01 Thread Jörg Schaible
Hi Alan,

Am Sat, 30 Dec 2017 02:18:12 +0200 schrieb Alan McKinnon:

[snip]

> It's probably a dodgy kernel point bersion, 4.14 is problematic.

[snip] 
 
> If you want to fix the bugs, then by all means soldier on. But if your
> intent is to have a working system that boots, probably drop using
> 4.14.x and go back to say 4.12.x ?

For my wife's box, I've made 4.12.12 the default, since the TV switch works 
with that kernel.

For my own one I've kept 4.14.8-r1 as default. It works for me apart from the 
manual VT switch. It's just 
annoying. We'll see what happens with the next version of the kernel.

Cheers,
Jörg





Re: [gentoo-user] Troubleshooting mounting local filesystems

2018-01-01 Thread Daniel Frey

On 01/01/18 01:14, Adam Carter wrote:

> Can you cut and paste the terminal session of the post boot fixes?

What are you asking for here?


Just fishing for more info because I cant think of any circumstance that 
would cause the issue you're seeing.


If it were me i'd force an fsck on next reboot, then reboot. I just had 
a look on my machines and it looks like the old fsck every N mounts is 
disabled everywhere by default these days.




That's a good idea, I stopped nfs, umounted and ran fsck, and it came 
back clean. I've remounted and restarted nfs for now.


I'll try restarting later.

Dan



[gentoo-user] [OT?]: In search of a program to do different b/w dithering methods

2018-01-01 Thread tuxic
Hi,

Happy New Year!!!

the programmable pocket calculator "DM42" offers OFFIMAGES,
which will be displayed, when the calculator is switched off.

The display is pure black and white.

For displaying (the illusion of) different shades of gray, one need
to convert the colored image into a so called "dithered" black and
white image (newspapers often use this trick).
Since -- in difference to the newspapers -- the pixels all have the
same size and can only be switched on or off only a few dithering
methods can be applied from which I want to choose the best suited
for a certain image.

The only problem: Which software can do this kind of conversion?

Thanks a lot for any help in advance!
Cheers
Meino




Re: [gentoo-user] [OT?]: In search of a program to do different b/w dithering methods

2018-01-01 Thread Frank Steinmetzger
On Mon, Jan 01, 2018 at 09:24:46PM +0100, tu...@posteo.de wrote:
> Hi,
> […]
> For displaying (the illusion of) different shades of gray, one need
> to convert the colored image into a so called "dithered" black and
> white image (newspapers often use this trick).
> Since -- in difference to the newspapers -- the pixels all have the
> same size and can only be switched on or off only a few dithering
> methods can be applied from which I want to choose the best suited
> for a certain image.
>
> The only problem: Which software can do this kind of conversion?

The obvious answer Gimp has three methods. Open your photo, select Image →
Mode → Indexed. Select 1 bit colour depth and choose between the dithering
methods at the bottom of the dialog.

-- 
Gruß | Greetings | Qapla’
Please do not share anything from, with or about me on any social network.

The bad thing about Wikipedia jokes is
- Deleted due to lack of relevance. -



Re: [gentoo-user] [OT?]: In search of a program to do different b/w dithering methods

2018-01-01 Thread tuxic
On 01/01 10:34, Frank Steinmetzger wrote:
> On Mon, Jan 01, 2018 at 09:24:46PM +0100, tu...@posteo.de wrote:
> > Hi,
> > […]
> > For displaying (the illusion of) different shades of gray, one need
> > to convert the colored image into a so called "dithered" black and
> > white image (newspapers often use this trick).
> > Since -- in difference to the newspapers -- the pixels all have the
> > same size and can only be switched on or off only a few dithering
> > methods can be applied from which I want to choose the best suited
> > for a certain image.
> >
> > The only problem: Which software can do this kind of conversion?
> 
> The obvious answer Gimp has three methods. Open your photo, select Image →
> Mode → Indexed. Select 1 bit colour depth and choose between the dithering
> methods at the bottom of the dialog.
> 
> -- 
> Gruß | Greetings | Qapla’
> Please do not share anything from, with or about me on any social network.
> 
> The bad thing about Wikipedia jokes is
> - Deleted due to lack of relevance. -
> 

Hi Frank,

thanks for your help! :)
Yes, Gimp would be one possibility...but I forgot to mention, that
I am looking for a command line tool...
I want to do 'mass dithering' and want neither a gui nor a 
heavy program like The Gimp.

I checked pbmplus and found no useful part for that porpuse...

Cheers
Meino





Re: [gentoo-user] [OT?]: In search of a program to do different b/w dithering methods

2018-01-01 Thread Adam Carter
>
> I am looking for a command line tool...
> I want to do 'mass dithering' and want neither a gui nor a
> heavy program like The Gimp.
>
> I checked pbmplus and found no useful part for that porpuse...
>

Does this do what you want? Its installed by default with imagemagick

http://www.imagemagick.org/script/convert.php