VBox5.2.4 GuestAdditions window host Win10 failed install on Centos 7 Guest

Discussions about using Linux guests in VirtualBox.
winter668
Posts: 8
Joined: 4. Jan 2018, 02:14

VBox5.2.4 GuestAdditions window host Win10 failed install on Centos 7 Guest

Post by winter668 »

error: ./install.sh: line 371: bzip2: command not found
tar: This not look like a tar archive

The Linux guest window is small and can not be resized. After "yum install bzip2" can not see all five steps. Only show 3 steps, first 2 steps is blocked by guest black window.

Thank you
Attachments
Capture.PNG
Capture.PNG (37.01 KiB) Viewed 5827 times
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VBox5.2.4 GuestAdditions window host Win10 failed install on Centos 7 Guest

Post by socratis »

winter668 wrote:The Linux guest window is small and can not be resized.
That's right. This is *not* a terminal window. This is a VGA screen with 640x480 resolution (from the looks of it). You cannot "resize" such a window and there is no scrollbar. You could run the command with the " | more" pipe redirection, it might work.

How exactly did you install CentOS?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBox5.2.4 GuestAdditions window host Win10 failed install on Centos 7 Guest

Post by Perryg »

What I see is a tty ( Terminal Type (Unix terminal interface) ) window that one gets when there is no active desktop. Think command line only like a server.
The only way to adjust that frame is with framebuffers. This would need to be done in the guest and has nothing really to do with VirtualBox. Also if the guest does not have a desktop manager with Xorg or Wayland the guest additions would not help anyway.

Note: you can use the shift+page up and shift+page down to see the contents up to a fashion until the allocated buffers for scrolling have been depleted.
winter668
Posts: 8
Joined: 4. Jan 2018, 02:14

Re: VBox5.2.4 GuestAdditions window host Win10 failed install on Centos 7 Guest

Post by winter668 »

Hi Perryg,

Thank you for let me know I can use shift + page up/page down to see the content hide/blocked by the back window.
In the next screen attachment:

1. I display the content of of VM's GuestAdditions.iso

2. Tried to invoke the guest addition installer ./VBoxLinuxAdditions.run.
After that, you can saw the errors. How to fix the error and make the guest addition working?
Attachments
Capture2.PNG
Capture2.PNG (22.2 KiB) Viewed 5787 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBox5.2.4 GuestAdditions window host Win10 failed install on Centos 7 Guest

Post by Perryg »

If you type the following what does it return?

Code: Select all

bzip2 -V
winter668
Posts: 8
Joined: 4. Jan 2018, 02:14

Re: VBox5.2.4 GuestAdditions window host Win10 failed install on Centos 7 Guest

Post by winter668 »

Thank you Perryg

I an not sure what I did is correct.
"bzip2 -V" just turn "-bash : bzip2: command not found". Do you like me to try more other things?
Attachments
Capture3.PNG
Capture3.PNG (12.44 KiB) Viewed 5777 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBox5.2.4 GuestAdditions window host Win10 failed install on Centos 7 Guest

Post by Perryg »

That means that you have not installed bzip2. If it were installed it would have returned the version number. So install bzip2 and verify after you have it installed by running that command again.

Example of proper return:

Code: Select all

perry@perry-main ~ $ bzip2 -V
bzip2, a block-sorting file compressor.  Version 1.0.6, 6-Sept-2010.
   
   Copyright (C) 1996-2010 by Julian Seward.
   
   This program is free software; you can redistribute it and/or modify
   it under the terms set out in the LICENSE file, which is included
   in the bzip2-1.0.6 source distribution.
   
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   LICENSE file for more details.
winter668
Posts: 8
Joined: 4. Jan 2018, 02:14

Re: VBox5.2.4 GuestAdditions window host Win10 failed install on Centos 7 Guest

Post by winter668 »

Thank you Perryg.
I tried to install : sudo yum -y install bzip2.
I saw errors on the next screen. Total 2 screen with errors. The correct order should be Capture4 and Capture5.
Attachments
Capture5.PNG
Capture5.PNG (20.95 KiB) Viewed 5775 times
Capture4.PNG
Capture4.PNG (18.19 KiB) Viewed 5775 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBox5.2.4 GuestAdditions window host Win10 failed install on Centos 7 Guest

Post by Perryg »

What you have now is either no network connection or a misconfigured repo on the guest. Can you ping google.com and or 8.8.8.8?
winter668
Posts: 8
Joined: 4. Jan 2018, 02:14

Re: VBox5.2.4 GuestAdditions window host Win10 failed install on Centos 7 Guest

Post by winter668 »

Hi Perryg,

How to ping google.com or 8.8.8.8 on Linux guest?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBox5.2.4 GuestAdditions window host Win10 failed install on Centos 7 Guest

Post by Perryg »

You type ping google.com or ping 8.8.8.8

If it fails then you should look at the guest network stack. Some OSes do not enable them by default ( really dumb but that is the way it is ). But this is now in the realm of a specific Linux OS and how to configure it. You should ask them if that is indeed the issue.
winter668
Posts: 8
Joined: 4. Jan 2018, 02:14

Re: VBox5.2.4 GuestAdditions window host Win10 failed install on Centos 7 Guest

Post by winter668 »

Thank you Perryg,

You are right, the guest network didn't start yet.
I resolved it by change: /etc/sysconfig/network-scripts/ifcfg-enp0s3 for "ONBOOT" from "no" to "yes", then reboot the guest.

After this I installed bzip2 successfully
"yum install gcc make perl" successfully
"yum install kernel-devel" successfully

But guess installation still blocked by the errors in the next screen.
Looks like package kernel-devel-3.10.0-693.11.6.e17.x86_64 is already in the system and is the latest version.
Attachments
Capture6.PNG
Capture6.PNG (15.38 KiB) Viewed 5733 times
Last edited by winter668 on 6. Jan 2018, 22:18, edited 1 time in total.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBox5.2.4 GuestAdditions window host Win10 failed install on Centos 7 Guest

Post by Perryg »

It tells you what is missing. Install the kernel headers that matches the running kernel.

Remember I mentioned that the guest additions will do nothing for you if you do not have a desktop. Command line needs to be adjusted with framebuffers.
winter668
Posts: 8
Joined: 4. Jan 2018, 02:14

Re: VBox5.2.4 GuestAdditions window host Win10 failed install on Centos 7 Guest

Post by winter668 »

Thank you Perryg,

Would you advice me how to have a desktop?
I am quite new to Linux.
I am planning to have a Linux platform first, then use the VirtualBox guest additions to transfer a JBoss download to Linux.
Then install JBoss on top of Linux.
Let me know what's the easiest way to do that. Many thanks!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBox5.2.4 GuestAdditions window host Win10 failed install on Centos 7 Guest

Post by Perryg »

You should ask these kind of questions ( how to install and operate a Linux OS ) with the appropriate Linux OS forum. CentOS would be https://www.centos.org/forums/ You should have been asked and selected to install the desktop upon the original install process. You can install it after but it requires more knowledge and is really outside the scope of this forum.
Post Reply