Page 1 of 1

SOLVED: vbox guest additions causes crash/loop on reboot

Posted: 17. Sep 2016, 20:57
by neuronetv
I'm running VirtualBox-4.3-4.3.40_110317_el7-1.x86_64 on a centos7 host machine, command line only. I have a centos 6.8 guest GUI machine, I've installed VBoxGuestAdditions_4.3.40 on it and every time i reboot after the install the next boot kind of crashes/hangs. The boot process gets so far then gets stuck and the screen flashes on and off. Fortunately I still have terminal access at this stuck point so I can uninstall vboxga and when the uninstall is done the boot process proceeds as normal. Here are the commands I use to install vboxga:

Code: Select all

0) yum -y install dkms gcc kernel-headers-`uname -r` kernel-devel
1) mkdir /home/vboxga
2) then I mount the VBoxGuestAdditions_4.3.40.iso into /home/vboxga
3) # cd /home/vboxga 
3) # echo export KERN_DIR=/usr/src/kernels/`uname -r` >> ~/.bashrc
4) export MAKE='/usr/bin/gmake -i'
5) # ./VBoxLinuxAdditions.run
the install process shows this:

Code: Select all

Verifying archive integrity... All good.
Uncompressing VirtualBox 4.3.40 Guest Additions for Linux............
VirtualBox Guest Additions installer
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules           [  OK  ]
Removing existing VirtualBox non-DKMS kernel modules       [  OK  ]
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module                   [  OK  ]
Building the shared folder support module                  [  OK  ]
Building the OpenGL support module                         [  OK  ]
Doing non-kernel setup of the Guest Additions              [  OK  ]
Starting the VirtualBox Guest Additions                    [  OK  ]
Installing the Window System drivers
Installing X.Org Server 1.17 modules                       [  OK  ]
Setting up the Window System to use the Guest Additions    [  OK  ]
You may need to restart the the Window System (or just restart the guest system)
to enable the Guest Additions.
Installing graphics libraries and desktop services componen[  OK  ]
there are no errors, and the centos6 guets gui seems to behave better but then on the reboot the console shows "Building module <blah de blah> ......." <--- this lasts for about 2 mins
then it carries on booting
then when it gets to "Starting certmonger" the boot gets stuck and the screen flashes on and off for ever.
Can anyone help with this? Where am I going wrong?

Re: vbox guest additions causes crash/loop on reboot

Posted: 17. Sep 2016, 23:29
by Perryg
Post the guests log file ( as an attachment ). Right click on the guest in the Main Manager then click show log. Save and post as an attachment. Compress if it is too large to post.

Re: vbox guest additions causes crash/loop on reboot

Posted: 18. Sep 2016, 14:18
by neuronetv
thanks for your response, attached is the centos6 guests' VBox.log

Re: vbox guest additions causes crash/loop on reboot

Posted: 18. Sep 2016, 15:12
by Perryg

Code: Select all

centos6-updated-rhgb-disk1.vmdk
Is this a turnkey install or did you do this as a transport from somewhere else?

I also see that IOAPIC is disabled and you have selected a 64_bit OS, is there a reason for this?

I also need to see the following:
From the hosts terminal VBoxManage showvminfo <VM Name> --details and post here. Replace <VM Name> with the actual name of the VM. Use " " if the name has a space in it.

Re: vbox guest additions causes crash/loop on reboot

Posted: 18. Sep 2016, 21:18
by neuronetv
I think the answer is no, it's not a turnkey install, I installed centos6 myself using the iso. I built the machine up to a certain state and then backed it up, calling the backup centos6-updated-rhgb-disk1. The backup does not contain vboxga, thus when I restore it it's clean, ready for another go at the vboxga install. I'm sorry I don't know what IOAPIC is. I selected 64 bit because it was a 64bit version of centos 6.
Here is the output of VBoxManage showvminfo "centos6" --details

Code: Select all

Name:            centos6
Groups:          /
Guest OS:        Red Hat (32-bit)
UUID:            c8638fdb-f612-4e4e-a895-f50598781fd1
Config file:     /home/tony/VirtualBox VMs/centos6/centos6.vbox
Snapshot folder: /home/tony/VirtualBox VMs/centos6/Snapshots
Log folder:      /home/tony/VirtualBox VMs/centos6/Logs
Hardware UUID:   c8638fdb-f612-4e4e-a895-f50598781fd1
Memory size:     1012MB
Page Fusion:     off
VRAM size:       8MB
CPU exec cap:    100%
HPET:            off
Chipset:         piix3
Firmware:        BIOS
Number of CPUs:  1
PAE:             on
Long Mode:       on
Synthetic CPU:   off
CPUID overrides: None
Boot menu mode:  message and menu
Boot Device (1): DVD
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
ACPI:            on
IOAPIC:          off
Time offset:     0ms
RTC:             local time
Hardw. virt.ext: on
Nested Paging:   on
Large Pages:     off
VT-x VPID:       on
VT-x unr. exec.: on
State:           powered off (since 2016-09-16T09:45:01.000000000)
Monitor count:   1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address: 
Teleporter Password: 
Tracing Enabled: off
Allow Tracing to Access VM: off
Tracing Configuration: 
Autostart Enabled: off
Autostart Delay: 0
Default Frontend: 
Storage Controller Name (0):            IDE Controller
Storage Controller Type (0):            PIIX4
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0):  2
Storage Controller Port Count (0):      2
Storage Controller Bootable (0):        on
IDE Controller (0, 0): /home/tony/VirtualBox VMs/centos6/centos6-updated-rhgb-disk1.vmdk (UUID: 2898caae-6ad9-4134-a5a0-85257709b02b)
IDE Controller (1, 0): Empty
NIC 1:           MAC: 0800279F5165, Attachment: Bridged Interface 'enp6s4f0', Cable connected: on, Trace: off (file: none), Type: Am79C973, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 2:           disabled
NIC 3:           disabled
NIC 4:           disabled
NIC 5:           disabled
NIC 6:           disabled
NIC 7:           disabled
NIC 8:           disabled
Pointing Device: PS/2 Mouse
Keyboard Device: PS/2 Keyboard
UART 1:          disabled
UART 2:          disabled
LPT 1:           disabled
LPT 2:           disabled
Audio:           disabled
Clipboard Mode:  disabled
Drag'n'drop Mode: disabled
VRDE:            enabled (Address 0.0.0.0, Ports 3390, MultiConn: off, ReuseSingleConn: off, Authentication type: null)
Video redirection: disabled
VRDE property: TCP/Ports  = "3390"
VRDE property: TCP/Address = <not set>
VRDE property: VideoChannel/Enabled = <not set>
VRDE property: VideoChannel/Quality = <not set>
VRDE property: VideoChannel/DownscaleProtection = <not set>
VRDE property: Client/DisableDisplay = <not set>
VRDE property: Client/DisableInput = <not set>
VRDE property: Client/DisableAudio = <not set>
VRDE property: Client/DisableUSB = <not set>
VRDE property: Client/DisableClipboard = <not set>
VRDE property: Client/DisableUpstreamAudio = <not set>
VRDE property: Client/DisableRDPDR = <not set>
VRDE property: H3DRedirect/Enabled = <not set>
VRDE property: Security/Method = <not set>
VRDE property: Security/ServerCertificate = <not set>
VRDE property: Security/ServerPrivateKey = <not set>
VRDE property: Security/CACertificate = <not set>
VRDE property: Audio/RateCorrectionMode = <not set>
VRDE property: Audio/LogPath = <not set>
USB:             disabled
EHCI:            disabled

USB Device Filters:

<none>

Available remote USB devices:

<none>

Currently Attached USB Devices:

<none>

Bandwidth groups:  <none>

Shared folders:  <none>

VRDE Connection:    not active
Clients so far:     0

Video capturing:    not active
Capture screens:    0
Capture file:       /home/tony/VirtualBox VMs/centos6/centos6.webm
Capture dimensions: 1024x768
Capture rate:       512 kbps
Capture FPS:        25

Guest:

Configured memory balloon size:      0 MB
thanks for your further help on this btw.

Re: vbox guest additions causes crash/loop on reboot

Posted: 18. Sep 2016, 21:28
by Perryg
I selected 64 bit because it was a 64bit version of centos 6.

Code: Select all

00:00:00.367876 Guest OS type: 'RedHat'
00:00:00.381247 fHMForced=true - 64-bit guest
Very weird log information. You say it was 64-bit install then your showvminfo says 32-bit, but forced 64-bit. What is the exact name of the install media?
Also when you say backed up do you mean you exported the original? Do you still have the original and was it *.VDI or did you intend to create a vmdk by default ( note VDI is the default ).

Re: vbox guest additions causes crash/loop on reboot

Posted: 18. Sep 2016, 21:46
by neuronetv
the install media is: CentOS-6.8-x86_64-bin-DVD1.iso
Yes, once I built the centos guest to certain point I exported it and the two files I got from the export were centos6-updated-rhgb.ovf and centos6-updated-rhgb-disk1.vmdk.
I've restored this guest machine and the two files I have in the VirtualBox VMs folder are: centos6-updated-rhgb-disk1.vmdk and centos6.vbox.

Re: vbox guest additions causes crash/loop on reboot

Posted: 18. Sep 2016, 21:58
by Perryg
I would first put things back to original and use the proper settings. Then instead of export-import just copy the entire folder to a different place. I would also suggest that you only use the default settings except the drive size and amount of RAM if you want to change them. Then post a new log of that so we can see if it is correct.

Re: vbox guest additions causes crash/loop on reboot

Posted: 18. Sep 2016, 22:05
by neuronetv
ok thanks, do you mean delete the guest and build again from scratch? If not, what do you mean by 'put things back to original and use the proper settings'. What settings are wrong in your opinion? Is there a list anywhere of what the default settings should be for a linux guest? I'm happy to change the guests settings but I would not know what to change....

Re: vbox guest additions causes crash/loop on reboot

Posted: 18. Sep 2016, 22:46
by Perryg
Hard to say. The original settings are the default ones when you select the proper guest and bit. Then the built in template selects them for you and you can alter the ones that you deem necessary. But I would definitely get it set properly and with the defaults before you go any further to save wasting time. I can assure you that CentOS works fine for me and others as a guest with the guest additions.

Here is the information on one of my test CentOS 64-bit guests.

Code: Select all

perry@perry-main ~ $ VBoxManage showvminfo CentOS
Name:            CentOS
Groups:          /
Guest OS:        Red Hat (64-bit)
UUID:            b0078ead-c578-4acb-b758-ed7c12146ff6
Config file:     /drive/Drive1/VirtualBox-VMs/CentOS/CentOS.vbox
Snapshot folder: /drive/Drive1/VirtualBox-VMs/CentOS/Snapshots
Log folder:      /drive/Drive1/VirtualBox-VMs/CentOS/Logs
Hardware UUID:   b0078ead-c578-4acb-b758-ed7c12146ff6
Memory size:     1024MB
Page Fusion:     off
VRAM size:       16MB
CPU exec cap:    100%
HPET:            off
Chipset:         piix3
Firmware:        BIOS
Number of CPUs:  1
PAE:             on
Long Mode:       on
Triple Fault Reset: off
APIC:            on
X2APIC:          on
CPUID Portability Level: 0
CPUID overrides: None
Boot menu mode:  message and menu
Boot Device (1): DVD
Boot Device (2): HardDisk
Boot Device (3): Not Assigned
Boot Device (4): Not Assigned
ACPI:            on
IOAPIC:          on
BIOS APIC mode:  APIC
Time offset:     0ms
RTC:             UTC
Hardw. virt.ext: on
Nested Paging:   on
Large Pages:     off
VT-x VPID:       on
VT-x unr. exec.: on
Paravirt. Provider: Default
Effective Paravirt. Provider: KVM
State:           saved (since 2016-08-08T17:22:17.000000000)
Monitor count:   1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address: 
Teleporter Password: 
Tracing Enabled: off
Allow Tracing to Access VM: off
Tracing Configuration: 
Autostart Enabled: off
Autostart Delay: 0
Default Frontend: 
Storage Controller Name (0):            IDE
Storage Controller Type (0):            PIIX4
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0):  2
Storage Controller Port Count (0):      2
Storage Controller Bootable (0):        on
Storage Controller Name (1):            SATA
Storage Controller Type (1):            IntelAhci
Storage Controller Instance Number (1): 0
Storage Controller Max Port Count (1):  30
Storage Controller Port Count (1):      1
Storage Controller Bootable (1):        on
IDE (1, 0): /home/perry/VBox-GAs/VBoxGuestAdditions_5.1.2.iso (UUID: 26f668a9-dd0e-4465-9706-6a2e88b09c5c)
SATA (0, 0): /drive/Drive1/VirtualBox-VMs/CentOS/Snapshots/{0e3a761a-0507-464e-82ca-0a074d5da07d}.vdi (UUID: 0e3a761a-0507-464e-82ca-0a074d5da07d)
NIC 1:           MAC: 080027A18ADA, Attachment: NAT, Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 1 Settings:  MTU: 0, Socket (send: 64, receive: 64), TCP Window (send:64, receive: 64)
NIC 2:           disabled
NIC 3:           disabled
NIC 4:           disabled
NIC 5:           disabled
NIC 6:           disabled
NIC 7:           disabled
NIC 8:           disabled
Pointing Device: PS/2 Mouse
Keyboard Device: PS/2 Keyboard
UART 1:          disabled
UART 2:          disabled
UART 3:          disabled
UART 4:          disabled
LPT 1:           disabled
LPT 2:           disabled
Audio:           enabled (Driver: PulseAudio, Controller: AC97, Codec: AD1980)
Clipboard Mode:  disabled
Drag and drop Mode: disabled
VRDE:            disabled
USB:             enabled
EHCI:            disabled
XHCI:            disabled

USB Device Filters:

<none>

Bandwidth groups:  <none>

Shared folders:  <none>

Video capturing:    not active
Capture screens:    0
Capture file:       /drive/Drive1/VirtualBox-VMs/CentOS/CentOS.webm
Capture dimensions: 1024x768
Capture rate:       512 kbps
Capture FPS:        25

Guest:

Configured memory balloon size:      0 MB

Snapshots:

   Name: 1 (UUID: ********************) *

perry@perry-main ~ $ 

SOLVED: vbox guest additions causes crash/loop on reboot

Posted: 5. Oct 2016, 23:19
by neuronetv
3 weeks later I found the culprit, it was selinux. I changed selinux to disabled, rebooted and all is now fine. I've lost count of the number of times selinux has been the hidden cause of so much grief.

Re: SOLVED: vbox guest additions causes crash/loop on reboot

Posted: 6. Oct 2016, 09:23
by socratis
Thanks for the update. Good thing to keep it in mind. It might help others in the future.