Talk:Installing Gentoo: Difference between revisions

From BitFolk
Jump to navigation Jump to search
(I failed)
 
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
I failed pretty much at the first hurdle with this guide.
== Serial console and kernel parameters (to fix console hanging) ==


I'm guessing that stage3 has to be unpacked into the target directory ('''/mnt/gentoo'''), but the guide doesn't specify.
I had to do the following on my image to get the serial console to work:<br>
echo "hvc0:2345:respawn:/sbin/agetty -L 9600 hvc0" >> /mnt/etc/inittab<br>
echo  hvc0 >> /mnt/etc/securetty


Where does '''mirrorselect''' come from? This looks like a Gentoo package but I can't find it for Debian thus can't install it in the rescue environment.
I also needed to add "console=hvc0 xencons=tty" to my list of kernel parameters:<br>
kernel /boot/vmlinuz root=/dev/xvda1 console=hvc0 xencons=tty


: [[User:Strugglers|Andy]]
==PVH mode==
Since the kernel is now new enough it would be good to have Gentoo guests run in [[PVH]] mode. All that needs to be done is:
 
* enable <code>PCI</code>, <code>XEN_PVHVM</code> and <code>ACPI</code>
* enable <code>CONFIG_XEN_PVH</code> in the kernel (as well as <code>CONFIG_XEN_PV</code> for now)
* install that kernel
* shut down
* <code>xen shell> virtmode pvh</code>
* <code>xen shell> boot</code>
 
No reason why it shouldn't Just Work but if it doesn't, switch back to PV mode.
 
Could a Gentoo user please give this a try and update the article?
 
&ndash;[[User:Strugglers|Andy]] ([[User talk:Strugglers|talk]]) 03:05, 3 February 2021 (UTC)
 
It boots here. <code>Linux rr2.swordarmor.fr 5.4.92-gentoo #1 SMP Wed Feb 3 07:57:00 GMT 2021 x86_64 Intel(R) Xeon(R) W-2145 CPU @ 3.70GHz GenuineIntel GNU/Linux
</code>
 
&ndash;[[User:Rr2|alarig]] ([[User talk:Rr2|talk]]) 08:20, 3 February 2021 (UTC)

Latest revision as of 08:21, 3 February 2021

Serial console and kernel parameters (to fix console hanging)

I had to do the following on my image to get the serial console to work:
echo "hvc0:2345:respawn:/sbin/agetty -L 9600 hvc0" >> /mnt/etc/inittab
echo hvc0 >> /mnt/etc/securetty

I also needed to add "console=hvc0 xencons=tty" to my list of kernel parameters:
kernel /boot/vmlinuz root=/dev/xvda1 console=hvc0 xencons=tty

PVH mode

Since the kernel is now new enough it would be good to have Gentoo guests run in PVH mode. All that needs to be done is:

  • enable PCI, XEN_PVHVM and ACPI
  • enable CONFIG_XEN_PVH in the kernel (as well as CONFIG_XEN_PV for now)
  • install that kernel
  • shut down
  • xen shell> virtmode pvh
  • xen shell> boot

No reason why it shouldn't Just Work but if it doesn't, switch back to PV mode.

Could a Gentoo user please give this a try and update the article?

Andy (talk) 03:05, 3 February 2021 (UTC)

It boots here. Linux rr2.swordarmor.fr 5.4.92-gentoo #1 SMP Wed Feb 3 07:57:00 GMT 2021 x86_64 Intel(R) Xeon(R) W-2145 CPU @ 3.70GHz GenuineIntel GNU/Linux

alarig (talk) 08:20, 3 February 2021 (UTC)