Cannot boot Solaris 10 u4 after installing VirtualBox 3.0.10

Discussions related to using VirtualBox on Solaris hosts.
Post Reply
Toaster
Posts: 16
Joined: 6. Nov 2009, 15:10
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: OpenSolaris snv_127

Cannot boot Solaris 10 u4 after installing VirtualBox 3.0.10

Post by Toaster »

Hi guys,

I wanted to try Virtualbox 3.0.10 into my old Solaris 10 u4 machine.

Well, now after the first reboot, i cannot boot it anymore. It stuck at the Solaris 10 boot message. I have to login prompt it stuck there. I tried to boot the failsafe, it worked, it just did a touch /a/reconfigure (because it mount the filesystem into /a), and after that it stock at reconfiguring devices...

So my question is, why it is doing that, and if possible, how can i remove Virtualbox now to be able to boot ? The only startup i seen is under /etc/rc2.d/S91vmware something...

Please, i want my solaris box back :)
half12
Posts: 110
Joined: 26. May 2008, 19:46
Primary OS: OpenSolaris other
VBox Version: PUEL
Guest OSses: RH 4 & 5, CentOS 4, Ubuntu 9.10, MSDOS, Win 95, 98se, 2K, XP, OpenSolaris, Solaris

Re: Cannot boot Solaris 10 u4 after installing VirtualBox 3.0.10

Post by half12 »

Hi,

In order to remove VirtualBox 3.0.10 and get you computer working do the following

1. Boot into safe mode
2. Mount your home filesystem
3. Run the pkgrm command using chroot to remove the VirtualBox application

# chroot /a pkgrm SUNWvbox

4. Now, remove the VirtualBox kernel

# chroot /a pkgrm SUNWvboxkern

5. # umount /a
6. # shutdown -i6 -g0 -y
Toaster
Posts: 16
Joined: 6. Nov 2009, 15:10
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: OpenSolaris snv_127

Re: Cannot boot Solaris 10 u4 after installing VirtualBox 3.0.10

Post by Toaster »

Hi half12,

Fist thanks for your reply, i am almost there... here's the problems :
half12 wrote: # chroot /a pkgrm SUNWvbox
i corrected the syntax, so i had to type : chroot /a /usr/bin/pkgrm SUNWvbox, but i had the error :

Code: Select all

ERROR: unable to open admin file <default>: SUNWvbox
I also tried using the pkgrm with -R without success
half12
Posts: 110
Joined: 26. May 2008, 19:46
Primary OS: OpenSolaris other
VBox Version: PUEL
Guest OSses: RH 4 & 5, CentOS 4, Ubuntu 9.10, MSDOS, Win 95, 98se, 2K, XP, OpenSolaris, Solaris

Re: Cannot boot Solaris 10 u4 after installing VirtualBox 3.0.10

Post by half12 »

Hi,

Try the following this should give you a shell

# chroot /a /bin/sh

# /usr/bin/pkgrm SUNWvboxkern
# /usr/bin/pkgrm SUNWvbox
# exit
Toaster
Posts: 16
Joined: 6. Nov 2009, 15:10
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: OpenSolaris snv_127

Re: Cannot boot Solaris 10 u4 after installing VirtualBox 3.0.10

Post by Toaster »

Okay i finally did it.

Problem
#1 : every pkg command didn't work, pkginfo complain about some file missing. My /var wasn't mounted properly, so i exist the chroot, mount the /var into /a/var, then chroot it again
#2 : now pkg command worked, but complain about my zone, that file system missing... So i had to exit the chroot, zpool import, zfs mount -a, correct the mount point by mounting it into /a/, then chroot it again, and change the mountpoint to point to / instead like before...
#3 : Last error was (with pkgrm) : ERROR: unable to open mount table /etc/mnttab, No changes were made to the system. That file was empty, the solution was : /sbin/mount -F mntfs mnttab /etc/mnttab

Then... finally... pkgrm works ! now my system booted up fine like it supposed without VirtualBox.

Even if it is all uninstalled, when i boot i can see that error;
Nov 9 16:25:33 XXX svc.startd[7]: [ID 652011 daemon.warning] svc:/application/virtualbox/zoneaccess:default: Method "/opt/VirtualBox/VBoxZoneAccess" failed with exit status 1.
Nov 9 16:25:33 XXX last message repeated 2 times
Nov 9 16:25:33 XXX svc.startd[7]: [ID 748625 daemon.error] application/virtualbox/zoneaccess:default failed: transitioned to maintenance (see 'svcs -xv' for details)

Code: Select all

[root@moe:~] svcs -xv
svc:/application/virtualbox/zoneaccess:default (VirtualBox Zone Access Service.)
 State: maintenance since Mon Nov 09 16:25:33 2009
Reason: Start method failed repeatedly, last exited with status 1.
   See: http://sun.com/msg/SMF-8000-KS
   See: /var/svc/log/application-virtualbox-zoneaccess:default.log
Impact: This service is not running.

[root@moe:~] tail -f /var/svc/log/application-virtualbox-zoneaccess:default.log
[ Nov  6 21:29:20 Rereading configuration. ]
[ Nov  9 16:25:33 Executing start method ("/opt/VirtualBox/VBoxZoneAccess") ]
/sbin/sh: /opt/VirtualBox/VBoxZoneAccess: not found
[ Nov  9 16:25:33 Method "start" exited with status 1 ]
[ Nov  9 16:25:33 Executing start method ("/opt/VirtualBox/VBoxZoneAccess") ]
/sbin/sh: /opt/VirtualBox/VBoxZoneAccess: not found
[ Nov  9 16:25:33 Method "start" exited with status 1 ]
[ Nov  9 16:25:33 Executing start method ("/opt/VirtualBox/VBoxZoneAccess") ]
/sbin/sh: /opt/VirtualBox/VBoxZoneAccess: not found
[ Nov  9 16:25:33 Method "start" exited with status 1 ]
So i just disabled svc:/application/virtualbox/zoneaccess:default...

Now the big question, why my system ins't capable of booting with virtualbox installed ???
half12
Posts: 110
Joined: 26. May 2008, 19:46
Primary OS: OpenSolaris other
VBox Version: PUEL
Guest OSses: RH 4 & 5, CentOS 4, Ubuntu 9.10, MSDOS, Win 95, 98se, 2K, XP, OpenSolaris, Solaris

Re: Cannot boot Solaris 10 u4 after installing VirtualBox 3.0.10

Post by half12 »

Hi,

From your description of the problem on your system hanging during boot and device reconfiguration.
The problem is related to Kernel modules which are loaded in /platform/i86pc/kernel/drv and /platform/i86pc/kernel/misc

You could reinstall if you are adventurous and then boot with the kernel options -kdv, I used my digital camera to capture the screen output as a movie as the screen scrolls so fast which enabled to capture errors displayed very quickly. Providing detailed errors you could post a bug.
Ramshankar
Oracle Corporation
Posts: 793
Joined: 7. Jan 2008, 16:17

Re: Cannot boot Solaris 10 u4 after installing VirtualBox 3.0.10

Post by Ramshankar »

Toaster wrote: Now the big question, why my system ins't capable of booting with virtualbox installed ???
Solaris 10 u4 is not a support platform. Most likely the kernel drivers won't load due to missing symbols or at the worst case crash so early you (on _init()) you'll have to manually remove them from single-user/safe mode. Although it would be interesting to see what exactly was the error you got with some verbose booting or panicing on NMI/into the debugger or activating the deadman timer.
Oracle Corp.
Toaster
Posts: 16
Joined: 6. Nov 2009, 15:10
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: OpenSolaris snv_127

Re: Cannot boot Solaris 10 u4 after installing VirtualBox 3.0.10

Post by Toaster »

Well i think you're right about the missing symbol. Into my /var/adm/messages i saw :

Code: Select all

Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_contig_free'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_text_alloc'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_va_to_pa'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_timer_granularity'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_lock_va'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_text_free'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_poke_cpu'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_curthread'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_lowmem_free'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_lowmem_alloc'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_cpu_id'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_execute_on_others'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_cpu_count'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_is_preempt_enabled'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_proc'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_thread_exit'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_revision_level'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_preempt_enable'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_contig_alloc'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_is_preempt_pending'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_tod'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_execute_on_all'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_execute_on_one'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_cpu_maxcount'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_max_cpu_id'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_user_map'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_preempt_disable'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_set_priority'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_thread_create'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_unmap'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_yield'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_unlock_va'
Nov  6 20:20:05 XXX genunix: [ID 472681 kern.notice] WARNING: mod_load: cannot load module 'vboxdrv'
Nov  6 20:20:05 XXX genunix: [ID 749970 kern.notice] WARNING: vboxdrv:
Nov  6 20:20:05 XXX genunix: [ID 225575 kern.notice] unable to resolve dependency, module 'misc/vbi' not found
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_contig_free'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_text_alloc'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_va_to_pa'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_timer_granularity'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_lock_va'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_text_free'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_poke_cpu'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_curthread'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_lowmem_free'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_lowmem_alloc'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_cpu_id'
Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_execute_on_others'
...

Nov  6 20:20:05 XXX genunix: [ID 819705 kern.notice] /platform/i86pc/kernel/drv/amd64/vboxdrv: undefined symbol
Nov  6 20:20:05 XXX genunix: [ID 826211 kern.notice]  'vbi_unlock_va'
Nov  6 20:20:05 XXX genunix: [ID 472681 kern.notice] WARNING: mod_load: cannot load module 'vboxdrv'
Nov  6 20:20:05 XXX genunix: [ID 749970 kern.notice] WARNING: vboxdrv:
Nov  6 20:20:05 XXX genunix: [ID 225575 kern.notice] unable to resolve dependency, module 'misc/vbi' not found
Nov  6 20:21:31 XXX pseudo: [ID 129642 kern.info] pseudo-device: vboxdrv0
Nov  6 20:21:31 XXX genunix: [ID 936769 kern.info] vboxdrv0 is /pseudo/vboxdrv@0
Nov  6 20:21:35 XXX genunix: [ID 935449 kern.info]      ATA DMA off: disabled.  Control with "atapi-cd-dma-enabled" property
Nov  6 20:21:35 XXX genunix: [ID 882269 kern.info]      PIO mode 4 selected
Nov  6 20:21:35 XXX genunix: [ID 935449 kern.info]      ATA DMA off: disabled.  Control with "atapi-cd-dma-enabled" property
Nov  6 20:21:35 XXX genunix: [ID 882269 kern.info]      PIO mode 4 selected
Nov  6 20:21:35 XXX genunix: [ID 935449 kern.info]      ATA DMA off: disabled.  Control with "atapi-cd-dma-enabled" property
Nov  6 20:21:35 XXX genunix: [ID 882269 kern.info]      PIO mode 4 selected
Nov  6 20:21:35 XXX genunix: [ID 935449 kern.info]      ATA DMA off: disabled.  Control with "atapi-cd-dma-enabled" property
Nov  6 20:21:35 XXX genunix: [ID 882269 kern.info]      PIO mode 4 selected
Nov  6 20:21:35 XXX genunix: [ID 773945 kern.info]      UltraDMA mode 6 selected
Nov  6 20:21:35 XXX genunix: [ID 182205 kern.info]      MultiwordDMA mode 2 selected
But between the 6th and the 9th, it didn't log anything into messages...

well.. i think it's time to upgrade from u4 to u9 at least :)
Post Reply