Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installed hardened on remote server, server unreachable
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6313
Location: /usr/lib64/lv2

PostPosted: Fri Jan 22, 2016 9:18 pm    Post subject: Installed hardened on remote server, server unreachable Reply with quote

I've been trying to install Gentoo on a remote server. I've tried three times, and each time, the server ends up unreachable when I attempt the first boot into the installed system.

Here is the dmesg. I don't see anything wrong, but what do I know?
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.


Last edited by audiodef on Sat Jan 23, 2016 4:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43198
Location: 56N 3W

PostPosted: Fri Jan 22, 2016 9:51 pm    Post subject: Reply with quote

audiodef

Code:
[    0.000000] Kernel command line: initrd=rescue/current-64/initramfs.cpio.xz nfsdir=213.133.99.101:/nfs RFILE=rescue64-jessie-v005.ext2 iommu=soft vga=0x317 HASH=$5$zyDFspJbzl$uP/nTu1mbARR6Z8CzSStYs7ajEIm8SaKu4LWerApr2C IP6=2a01:4f8:130:9007:: IP6MASK=64 IP6GW=fe80::1 lang=de nomce quiet config_url=https://admin-robot.your-server.de/admin/api/boot/rescue/1285466.VqKSbg.eHqqoNB_QHpgVaagmBQGuxEy25GkmUijY1cj9W585UA BOOT_IMAGE=rescue/current-64/vmlinuz BOOTIF=01-6c-62-6d-85-ba-a7


That's the Hetzner rescue kernel, not your Gentoo kernel, so its dmesg won't help.

There are two ways to do this.
a) by analysis. That's hard you need logs and unless root is mounted read/write, you won't be able to preserve logs.
b) by using the Hetzner software console.
That's less hard.
You tell your Hetzner server to reboot into QEMU. It boots your install in QEMU on your box and gives you the console in a web browser.
You get an email with a password and port to point your web browser at.

If you want to do it by analysis, post your
grub.cfg
ls -l /boot
lspci
kernel .config
/etc/fstab
ls -R /etc/runlevels/
/etc/conf.d/net file

Did you install dhcpcd if you intended to use a dynamic net setup?

The QEMU console has it drawbacks too. It gave me an AMD emulated CPU and my install was built for Intel.
I had to rebuild the kernel and a few packages for generic to get rid of the illegal instruction exceptions.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
schorsch_76
Guru
Guru


Joined: 19 Jun 2012
Posts: 450

PostPosted: Fri Jan 22, 2016 10:20 pm    Post subject: Reply with quote

At Hetzner you can request a LARA console for 3 hours without charge ;) You can even change the BIOS.

I got my server at Hetzner too. With knowledge and expierence you can set it up without a LARA console ;)

I assume you already got your HDD setup.

At the rescue system,
- check your kernel modules (lspci -k).
- Compile your new kernel with all modules
- prepare initrd (genkernel-next)
- notice your IP address, setup /etc/conf.d/net. Use net.ifnames=0 to make eth0 "eth0" ;) setup net.eth0 at default runlevel
- setup sshd at default
- enable rc.log in /etc/rc.conf (rc logger for diagnostic)

- bind /sys /proc /dev into the target
- chroot into the rescue system
- mount boot
- install grub into the MBR

- press thumbs .. and reboot

- if it boots... fine :)
- if you had trouble, reboot into rexcue again, check rc.log

- Expecially the network setup is not as straight forward as on a desktop machine.
you should understand the debian configuration here and adjust it to gentoos /etc/conf.d/net
http://wiki.hetzner.de/index.php/Netzkonfiguration_Debian/en
_________________
// valid again: I forgot about the git access. Now 1.2GB big. Start: 2015-06-25
git daily portage tree
Web: https://portage.schorsch-tech.de
git clone https://portage.schorsch-tech.de/portage.git
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6313
Location: /usr/lib64/lv2

PostPosted: Fri Jan 22, 2016 10:28 pm    Post subject: Reply with quote

Here's lspci:

Code:

00:00.0 Host bridge: Intel Corporation 5520/5500/X58 I/O Hub to ESI Port (rev 13)
00:01.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 1 (rev 13)
00:03.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 3 (rev 13)
00:07.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 7 (rev 13)
00:14.0 PIC: Intel Corporation 7500/5520/5500/X58 I/O Hub System Management Registers (rev 13)
00:14.1 PIC: Intel Corporation 7500/5520/5500/X58 I/O Hub GPIO and Scratch Pad Registers (rev 13)
00:14.2 PIC: Intel Corporation 7500/5520/5500/X58 I/O Hub Control Status and RAS Registers (rev 13)
00:14.3 PIC: Intel Corporation 7500/5520/5500/X58 I/O Hub Throttle Registers (rev 13)
00:1a.0 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #4
00:1a.1 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #5
00:1a.2 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #6
00:1a.7 USB controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #2
00:1c.0 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 1
00:1c.4 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 5
00:1d.0 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #1
00:1d.1 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #2
00:1d.2 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #3
00:1d.7 USB controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #1
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 90)
00:1f.0 ISA bridge: Intel Corporation 82801JIR (ICH10R) LPC Interface Controller
00:1f.2 SATA controller: Intel Corporation 82801JI (ICH10 Family) SATA AHCI Controller
00:1f.3 SMBus: Intel Corporation 82801JI (ICH10 Family) SMBus Controller
02:00.0 VGA compatible controller: NVIDIA Corporation G98 [GeForce 8400 GS Rev. 2] (rev a1)
06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 02)


EDIT:

Just tried kernel compile with hardened-4.1. This worked. There might be a bug in hardened-4.3, which is what I was trying. I wasn't even using ~amd64, so not sure why 4.1 wasn't installed by default.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum