RE: [gentoo-user] virtualbox woes

2022-08-01 Thread Matthew Sacks
Thank you!

Sent from Mail for Windows

From: Michael
Sent: Monday, August 1, 2022 1:17 AM
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] virtualbox woes

On Monday, 1 August 2022 01:46:32 BST Matthew Sacks wrote:
> The vbox log and screenshot are all I have to go off. Next time I”ll provide
> that upfront. New to these parts (gentoo lists).

No problem.  :-)

> It crashes on boot actually to answer your question.

I've always run VBox on a linux host, so I am not familiar with MSWindows host
peculiarities.  However, I would think VBox on MSWindows would/should be plug
'n play.

>From what you've shown you're experiencing a kernel crash of the VM at boot.
I'd start by looking at the configuration of the linux kernel you're trying to
boot and at the same time consider the settings of the VM appropriate for your
hardware, e.g. use AHCI/NVMe for storage instead of PIIX, add more than one
CPU, adequate memory, etc.

Starting with these recommendations for Gentoo guests should get you in the
right ballpark:

https://wiki.gentoo.org/wiki/VirtualBox#Gentoo_guests

PS.  When you boot the Live media within the VM to install Gentoo make sure
you boot it as legacy BIOS or as UEFI and configure VBox to match.



Re: [gentoo-user] Selective news?

2022-08-01 Thread Ramon Fischer

Take a look in "/etc/pulse/client.conf".

You can either set "autospawn = yes" or comment it.

"pulseaudio" is automatically started via 
"/etc/xdg/autostart/pulseaudio.desktop"; at least in my case.


-Ramon

On 31/07/2022 14:33, Alexander Puchmayr wrote:

Not sure which start script to add it to; .login or .profile are unsuitable
because it would then start it at every login even with ssh).


--
GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF



OpenPGP_signature
Description: OpenPGP digital signature


Re: [gentoo-user] --sync

2022-08-01 Thread Michael
On Monday, 1 August 2022 10:43:55 BST tastytea wrote:
> On 2022-08-01 07:58+0100 Michael  wrote:
> > […]
> > 
> > 2. These days rsync uses hashes and gpg to check the integrity of
> > portage and will flag up a warning in case of file tampering, or
> > corrupt data.  As far as I know such a solution doesn't exist with
> > git.
> 
> Verification can be turned on with
>   sync-git-verify-commit-signature = yes
> in repos.conf.[1] This does not seem to be enabled by default.[2]
> 
> [1]
> 
> [2] 

I see ... this is an improvement from what I recall it to be.  Thanks for 
pointing it out.  Perhaps I should start using git again.  :-)

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] hibernate... /bin/echo: write error: No such device

2022-08-01 Thread J. Roeleveld
On Wednesday, 27 July 2022 23:53:08 CEST Walter Dnes wrote:
>   One of the last few items on the laptop setup.  I emerged hibernate
> and copied over the /etc/hibernate/ directory from my desktop.  When I
> try to hibernate the laptop, I get...
> 
> [thimk][root][~] hibernate
> /bin/echo: write error: No such device
> 
> ...with a beep, and the machine comes back.  Grepping for the "echo"
> command, I get...
> 
> [thimk][root][~] grep -r echo /etc/hibernate/
> /etc/hibernate/common.conf:# OnSuspend 20 echo "Good night!"
> /etc/hibernate/common.conf:# OnResume 20 echo "Good morning!"
> 
>   The latest entries in /var/log/hibernate.log are...
> 
> Starting suspend at Wed Jul 27 05:00:47 PM EDT 2022
> hibernate: [01] Executing CheckLastResume ...
> hibernate: [01] Executing CheckRunlevel ...
> hibernate: [01] Executing LockFileGet ...
> hibernate: [01] Executing NewKernelFileCheck ...
> hibernate: [10] Executing EnsureSysfsPowerStateCapable ...
> hibernate: [11] Executing XHacksSuspendHook1 ...
> hibernate: [59] Executing RemountXFSBootRO ...
> hibernate: [89] Executing SaveKernelModprobe ...
> hibernate: [91] Executing ModulesUnloadBlacklist ...
> hibernate: [95] Executing XHacksSuspendHook2 ...
> hibernate: [98] Executing CheckRunlevel ...
> hibernate: [99] Executing DoSysfsPowerStateSuspend ...
> hibernate: Activating sysfs power state disk ...
> hibernate: [90] Executing ModulesLoad ...
> hibernate: [89] Executing RestoreKernelModprobe ...
> hibernate: [85] Executing XHacksResumeHook2 ...
> hibernate: [70] Executing ClockRestore ...
> hibernate: [59] Executing RemountXFSBootRW ...
> hibernate: [11] Executing XHacksResumeHook1 ...
> hibernate: [01] Executing NoteLastResume ...
> hibernate: [01] Executing LockFilePut ...
> Resumed at Wed Jul 27 05:00:50 PM EDT 2022


I wonder at which point it actually shows that message.
I assume you are using:
# eix hibernate 
* sys-power/hibernate-script 
Available versions:  2.0-r6 {vim-syntax} 
Homepage:https://gitlab.com/nigelcunningham/Hibernate-Script 
Description: Hibernate script supporting multiple suspend methods


If yes, then try it with the verbose-option, maybe then you get to see where 
that is generated.

Does suspend itself work? Or is the script failing as well?
Do you have hibernate configured in the kernel?

To check, you can try forcing hibernate manually by:

# echo disk > /sys/power/state

To resume, you will need to inform the kernel where to resume from.

Kernel command line option:  resume="/path/to/swap/device" 

If your swap-partition is a LV (eg, using LVM), you'll need to use an initrd 
that will find the correct device-ID to pass to the resume-functionality.

I created my own init-ramfs for this and use the "hibernate" option provided 
by kde/plasma. I can't remember when I last used a third-party script to get 
this to work as it's generally quite simple to get working.

--
Joost







Re: [gentoo-user] virtualbox woes

2022-08-01 Thread J. Roeleveld
On Monday, 1 August 2022 02:46:32 CEST Matthew Sacks wrote:
> The vbox log and screenshot are all I have to go off. Next time I?ll provide
> that upfront. New to these parts (gentoo lists).
> 
> It crashes on boot actually to answer your question.

Please stop top-posting. It makes these emails difficult to read.

Did you enable hardware virtualisation (VT) in the BIOS?
What are the VM-settings you use for the VM?
Does your host have sufficient CPU-cores and memory for the Host + the VM?

--
Joost


> 
> Sent from Mail for Windows
> 
> From: Jack
> Sent: Sunday, July 31, 2022 7:48 AM
> To: gentoo-user@lists.gentoo.org
> Subject: Re: [gentoo-user] virtualbox woes
> 
> On 7/31/22 09:27, Matthew Sacks wrote:
> I cant get gentoo to run on virtualbox, segfaults or core dumps or
> something.
> 
> Please learn how to ask for help.  You have provided next to no useful
> information.  From the other thread, you provided a log, and the fact that
> you are trying to run a Gentoo guest on a Windows (which version?) host. 
> Which version of VB?  The latter might matter, as there have been some
> reports of VBox instability, although I believe those are on Linux hosts,
> not guests.
> 
> In the other thread, you mention that the crash happens on shutting down. 
> How did you shut down?  Have you tried other ways?  Have you checked the
> virtualbox forums for similar reports?
> 
> Jack








Re: [gentoo-user] --sync

2022-08-01 Thread tastytea
On 2022-08-01 07:58+0100 Michael  wrote:

> […]
> 
> 2. These days rsync uses hashes and gpg to check the integrity of
> portage and will flag up a warning in case of file tampering, or
> corrupt data.  As far as I know such a solution doesn't exist with
> git.

Verification can be turned on with
  sync-git-verify-commit-signature = yes
in repos.conf.[1] This does not seem to be enabled by default.[2]

[1] 
[2] 



Re: [gentoo-user] virtualbox woes

2022-08-01 Thread Michael
On Monday, 1 August 2022 01:46:32 BST Matthew Sacks wrote:
> The vbox log and screenshot are all I have to go off. Next time I”ll provide
> that upfront. New to these parts (gentoo lists).

No problem.  :-)

> It crashes on boot actually to answer your question.

I've always run VBox on a linux host, so I am not familiar with MSWindows host 
peculiarities.  However, I would think VBox on MSWindows would/should be plug 
'n play.

From what you've shown you're experiencing a kernel crash of the VM at boot.  
I'd start by looking at the configuration of the linux kernel you're trying to 
boot and at the same time consider the settings of the VM appropriate for your 
hardware, e.g. use AHCI/NVMe for storage instead of PIIX, add more than one 
CPU, adequate memory, etc.

Starting with these recommendations for Gentoo guests should get you in the 
right ballpark:

https://wiki.gentoo.org/wiki/VirtualBox#Gentoo_guests

PS.  When you boot the Live media within the VM to install Gentoo make sure 
you boot it as legacy BIOS or as UEFI and configure VBox to match.


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] --sync

2022-08-01 Thread Neil Bothwick
On Mon, 01 Aug 2022 07:58:05 +0100, Michael wrote:

> 1. It used to be the case the first time you run git it would try to
> download GB of commits history and take ages to do so on a slow
> connection.  The solution used to be to add "EGIT_CLONE_TYPE=shallow"
> in your make.conf, but I'm not sure if this is still needed (I don't
> use git).

It doesn't seem to be the case, running sync with an empty portage tree
gives

>>> Syncing repository 'gentoo' into '/var/portage'...
/usr/bin/git clone --depth 1 https://github.com/gentoo-mirror/gentoo .

% du /var/portage
608M/var/portage

It did take 32s, but most of that was the Performing Global Updates stage.


-- 
Neil Bothwick

"A hundred years of forgetting and it all comes rushing back..."


pgpwv3Vd16uAM.pgp
Description: OpenPGP digital signature