Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't work ./gentoo-vbox-builder.sh #2

Closed
Gremlingroj opened this issue May 13, 2020 · 10 comments
Closed

Don't work ./gentoo-vbox-builder.sh #2

Gremlingroj opened this issue May 13, 2020 · 10 comments

Comments

@Gremlingroj
Copy link

Please help me. There is a log:

livecd /home/gentoo-vbox-builder-master # ./gentoo-vbox-builder.sh
cat: /root/.ssh/id_rsa.pub: No such file or directory

  • Gentoo VirtualBox Image Builder 1.0.5
  • The following parameters will be used:
  • Guest Name: Gentoo amd64
  • Host SSH Port: 2222
  • Gentoo Stage3: amd64 (ARCH: amd64)
  • Started at Wed May 13 18:24:18 UTC 2020
  • PHASE 1: Prepare Instance...
    /home/gentoo-vbox-builder-master/lib/phase1-prepare-instance.sh: line 28: VBoxManage: command not found
    /home/gentoo-vbox-builder-master/lib/phase1-prepare-instance.sh: line 38: VBoxManage: command not found
  • Checking if host SSH port is available...
    /home/gentoo-vbox-builder-master/lib/phase1-prepare-instance.sh: line 48: VBoxManage: command not found
  • Downloading Gentoo LiveCD...
  • Downloading: http://distfiles.gentoo.org/releases/amd64/autobuilds/20200419T214502Z/install-amd64-minimal-20200419T214502Z.iso ...
    
@sormy
Copy link
Owner

sormy commented May 14, 2020

I will take a look. Gentoo devs sometimes release breaking changes :-)

@sormy
Copy link
Owner

sormy commented May 14, 2020

Looking on logs:

  • Are you running install from root?
  • VBoxManage is not installed. Do you have VBox installed and added in PATH?

@sormy
Copy link
Owner

sormy commented May 14, 2020

Tried today. Found an issue with GPG_SERVER override. Fixed it. The fix is pushed.
By the way, script has successfully finished on macOS v10.14.6 and VirualBox 6.0.14 r133895.
VBoxManage is installed in /usr/local/bin/VBoxManage and PATH is set to include /usr/local/bin.

Artems-MacBook-Pro:gentoo-vbox-builder $ GPG_SERVER="ipv4.pool.sks-keyservers.net" ./gentoo-vbox-builder.sh 
 * Gentoo VirtualBox Image Builder 1.0.6
 * The following parameters will be used:
 *   Guest Name: Gentoo amd64
 *   Host SSH Port: 2222
 *   Gentoo Stage3: amd64 (ARCH: amd64)
 * Started at Wed May 13 23:10:05 EDT 2020
 * PHASE 1: Prepare Instance...
 *   Checking if host SSH port is available...
 *   Downloading Gentoo LiveCD...
 *     Downloading: http://distfiles.gentoo.org/releases/amd64/autobuilds/20200419T214502Z/install-amd64-minimal-20200419T214502Z.iso ...
 *     Verifying sha512 hash...
 *     Verifying whirlpool hash...
 *     Verifying GPG signature...
 *   Creating guest...
 *   Configuring guest...
 *   Adding storage controller to guest...
 *   Attaching DVD drive to guest...
 *   Creating disk for guest...
 *   Attaching disk to guest...
 *   Running guest...
 *   Booting Gentoo from LiveCD...
 *   Configuring SSH...
 *   Waiting until SSH will be up (1/5)...
ssh_exchange_identification: Connection closed by remote host
 *   Waiting until SSH will be up (2/5)...
 * PHASE 2: Prepare Root...
 *   Synchronizing time...
 *   Preparing disk...
 *     Creating partitions...
 *     Formatting partitions...
 *     Labeling partitions...
 *   Mounting disk...
 *   Setting work directory...
 *   Installing stage3...
 *     Downloading: http://distfiles.gentoo.org/releases/amd64/autobuilds/20200422T214502Z/stage3-amd64-20200422T214502Z.tar.xz ...
 *     Verifying sha512 hash...
 *     Verifying whirlpool hash...
 *     Verifying GPG signature...
 *     Extracting...
 *     Cleaning up...
 *   Installing LiveCD's kernel configuration...
 *   Copying network options...
 *   Configuring fstab...
 *   Mounting proc/sys/dev/pts...
 * PHASE 3: Build Root...
 *   Updating configuration...
 *   Tuning compiler options...
 *   Installing portage repo...
 *   Rebuilding the world...
 *   Installing kernel sources...
 *   Installing genkernel...
 *   Installing kernel...
 *   Installing bootloader...
 *   Installing acpid...
 *   Configuring network...
 *   Configuring SSH...
 *   Installing authorized SSH public key...
 *   Rebooting...
 *   Waiting until SSH will be up (1/5)...
 *   Shutting down...
 *   Removing LiveCD from DVD drive...
 * Done at Thu May 14 01:20:36 EDT 2020
 * Process took 130 minutes

@Gremlingroj
Copy link
Author

Thanks for such a quick reply.

  • Are you running install from root?

I start the virtual machine from the image c0de3cd004636722448e7b7c116feed9 * install-amd64-minimal-20200419T214502Z.iso in livecd mode, type gentoo, set the passwd password, start the ssh server and connect through the putty. I don’t do anything else, because there is nothing in the instructions or I read poorly.

  • VBoxManage is not installed. Do you have VBox installed and added in PATH?

VBoxManage is most likely not installed, since again it is not clear how. Emerge in Livecd mode is not available. For some reason, connecting the add-on disk of the guest operating system fails.

There were no such problems with other *nix systems, but here I cannot install the third day even with a simple script. Please help as you can.

@sormy
Copy link
Owner

sormy commented May 14, 2020

The script from this repo should be execute on host, NOT on guest.

@Gremlingroj
Copy link
Author

So I can’t just put Gentoo on VirtualBox in Windows environment? If I can, then please tell me how?

@sormy
Copy link
Owner

sormy commented May 14, 2020

You can :-) But this script uses bash and a bunch of tools. If you will install all of them in windows then it will work. There is simplified gist that is designed to be executed inside guest: https://gist.github.com/sormy/7221a65a3becf082aaa3af2ec8dee1bc. You also reported an issue with it. I will need to take a look what has changed and fix it.

@Gremlingroj
Copy link
Author

I used it https://gist.githubusercontent.com/sormy/7221a65a3becf082aaa3af2ec8dee1bc/raw/7b207c32d3ea90e683a7d9b53b1723059160dc93/gentoo-installer.sh, everything was fine, but the bootloader did not install and the system did not boot.

@Gremlingroj
Copy link
Author

Tomorrow I can continue. Thanks for the help.

@sormy
Copy link
Owner

sormy commented May 15, 2020

I fixed the script in https://www.artembutusov.com/gentoo-linux-quick-installer-script/
So closing the issue ;-)

@sormy sormy closed this as completed May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants