xdissent / ievms

Automated installation of the Microsoft IE App Compat virtual machines
http://xdissent.github.com/ievms
9.86k stars 497 forks source link

Windows 7 VMs get stuck installing Virtualbox Guest Additions #207

Closed savingschampion closed 8 years ago

savingschampion commented 10 years ago

Running through an installation today on virtualbox 4.3.8, I noticed that IE9 was taking forever to create.

I looked via the Virtualbox GUI and saw that there was a dialog that was asking about Hardware driver signing with a "Your computer must restart to apply changes" dialog over the top. What i'm guessing happened is that the dialog appears over the top and gets in the way of the scripted install.

brendonrapp commented 10 years ago

I am experiencing the same issue. VirtualBox 4.3.8, OS X 10.9.1.

IE6 through IE8 install successfully, then the first Win7 VM (IE9) fails in the way described above.

If I attempt to skip over IE 9 with IEVMS_VERSIONS, the next Win7-based instance will fail in the same way.

KyreenaH commented 10 years ago

Same here. This is my terminal output (Github annoyingly doesn't allow PDFs :/ )

$ curl -s https://raw.github.com/xdissent/ievms/master/ievms.sh | env IEVMS_VERSIONS="7 8 9" bash Checking for VirtualBox Checking for Oracle VM VirtualBox Extension Pack Virtualbox version 4.3.8 found. Downloading Oracle VM VirtualBox Extension Pack from http://download.virtualbox.org/virtualbox/4.3.8/Oracle_VM_VirtualBox_Extension_Pack-4.3.8.vbox-extpack to Oracle_VM_VirtualBox_Extension_Pack-4.3.8.vbox-extpack % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 9.9M 100 9.9M 0 0 6110k 0 0:00:01 0:00:01 --:--:-- 10.9M Installing Oracle VM VirtualBox Extension Pack from /Users/kyreenahay/.ievms/Oracle_VM_VirtualBox_Extension_Pack-4.3.8.vbox-extpack 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Successfully installed "Oracle VM VirtualBox Extension Pack". Downloading unar from http://theunarchiver.googlecode.com/files/unar1.5.zip to unar1.5.zip % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 4201k 100 4201k 0 0 1112k 0 0:00:03 0:00:03 --:--:-- 1348k Archive: unar1.5.zip inflating: lsar
inflating: unar
Building IE7 VM Checking for existing OVA at /Users/kyreenahay/.ievms/IE6 - WinXP.ova Downloading OVA ZIP from http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/OSX/IE6_WinXP.zip to IE6_WinXP.zip % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 716M 100 716M 0 0 3792k 0 0:03:13 0:03:13 --:--:-- 3637k Extracting OVA from /Users/kyreenahay/.ievms/IE6_WinXP.zip IE6_WinXP.zip: Zip IE6 - WinXP.ova (759386624 B)... OK. Successfully extracted to "./IE6 - WinXP.ova". Checking for existing IE7 - WinXP VM Creating IE7 - WinXP VM (disk: /Users/kyreenahay/.ievms/IE7 - WinXP-disk1.vmdk) 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Interpreting /Users/kyreenahay/.ievms/IE6 - WinXP.ova... OK. Disks: vmdisk1 136260878336 -1 http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized IE6 - WinXP-disk1.vmdk -1 -1
Virtual system 0: 0: Suggested OS type: "WindowsXP" (change with "--vsys 0 --ostype "; use "list ostypes" to list all possible values) 1: VM name specified with --vmname: "IE7 - WinXP" 2: Number of CPUs: 2 (change with "--vsys 0 --cpus ") 3: Guest memory: 512 MB (change with "--vsys 0 --memory ") 4: Sound card (appliance expects "", can change on import) (disable with "--vsys 0 --unit 4 --ignore") 5: USB controller (disable with "--vsys 0 --unit 5 --ignore") 6: Network adapter: orig NAT, config 2, extra slot=0;type=NAT 7: CD-ROM (disable with "--vsys 0 --unit 7 --ignore") 8: IDE controller, type PIIX4 (disable with "--vsys 0 --unit 8 --ignore") 9: IDE controller, type PIIX4 (disable with "--vsys 0 --unit 9 --ignore") 10: Hard disk image: source image=IE6 - WinXP-disk1.vmdk, target path=/Users/kyreenahay/.ievms/IE7 - WinXP-disk1.vmdk, controller=8;channel=0 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Successfully imported the appliance. Building IE7 - WinXP VM build_ievm_ie7 Starting VM IE7 - WinXP Waiting for VM "IE7 - WinXP" to power on... VM "IE7 - WinXP" has been successfully started. Waiting for IE7 - WinXP to be available for guestcontrol... Waiting for IE7 - WinXP to be available for guestcontrol... Waiting for IE7 - WinXP to be available for guestcontrol... Waiting for IE7 - WinXP to be available for guestcontrol... Waiting for IE7 - WinXP to be available for guestcontrol... Waiting for IE7 - WinXP to be available for guestcontrol... Setting IEUser password Setting auto logon password Enabling auto admin logon Downloading IE7-WindowsXP-x86-enu.exe from http://download.microsoft.com/download/3/8/8/38889dc1-848c-4bf2-8335-86c573ad86d9/IE7-WindowsXP-x86-enu.exe to IE7-WindowsXP-x86-enu.exe % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 14.7M 100 14.7M 0 0 4376k 0 0:00:03 0:00:03 --:--:-- 5008k Copying IE7-WindowsXP-x86-enu.exe to /Documents and Settings/IEUser/Desktop/IE7-WindowsXP-x86-enu.exe Installing IE Shutting down IE7 - WinXP Waiting for IE7 - WinXP to shutdown... Waiting for IE7 - WinXP to shutdown... Tagging VM with ievms version Creating clean snapshot 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Building IE8 VM Checking for existing OVA at /Users/kyreenahay/.ievms/IE6 - WinXP.ova Checking for existing IE8 - WinXP VM Creating IE8 - WinXP VM (disk: /Users/kyreenahay/.ievms/IE8 - WinXP-disk1.vmdk) 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Interpreting /Users/kyreenahay/.ievms/IE6 - WinXP.ova... OK. Disks: vmdisk1 136260878336 -1 http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized IE6 - WinXP-disk1.vmdk -1 -1
Virtual system 0: 0: Suggested OS type: "WindowsXP" (change with "--vsys 0 --ostype "; use "list ostypes" to list all possible values) 1: VM name specified with --vmname: "IE8 - WinXP" 2: Number of CPUs: 2 (change with "--vsys 0 --cpus ") 3: Guest memory: 512 MB (change with "--vsys 0 --memory ") 4: Sound card (appliance expects "", can change on import) (disable with "--vsys 0 --unit 4 --ignore") 5: USB controller (disable with "--vsys 0 --unit 5 --ignore") 6: Network adapter: orig NAT, config 2, extra slot=0;type=NAT 7: CD-ROM (disable with "--vsys 0 --unit 7 --ignore") 8: IDE controller, type PIIX4 (disable with "--vsys 0 --unit 8 --ignore") 9: IDE controller, type PIIX4 (disable with "--vsys 0 --unit 9 --ignore") 10: Hard disk image: source image=IE6 - WinXP-disk1.vmdk, target path=/Users/kyreenahay/.ievms/IE8 - WinXP-disk1.vmdk, controller=8;channel=0 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Successfully imported the appliance. Building IE8 - WinXP VM build_ievm_ie8 Starting VM IE8 - WinXP Waiting for VM "IE8 - WinXP" to power on... VM "IE8 - WinXP" has been successfully started. Waiting for IE8 - WinXP to be available for guestcontrol... Waiting for IE8 - WinXP to be available for guestcontrol... Waiting for IE8 - WinXP to be available for guestcontrol... Waiting for IE8 - WinXP to be available for guestcontrol... Waiting for IE8 - WinXP to be available for guestcontrol... Setting IEUser password Setting auto logon password Enabling auto admin logon Downloading IE8-WindowsXP-x86-ENU.exe from http://download.microsoft.com/download/C/C/0/CC0BD555-33DD-411E-936B-73AC6F95AE11/IE8-WindowsXP-x86-ENU.exe to IE8-WindowsXP-x86-ENU.exe % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 16.1M 100 16.1M 0 0 3582k 0 0:00:04 0:00:04 --:--:-- 3872k Copying IE8-WindowsXP-x86-ENU.exe to /Documents and Settings/IEUser/Desktop/IE8-WindowsXP-x86-ENU.exe Installing IE Shutting down IE8 - WinXP Waiting for IE8 - WinXP to shutdown... Waiting for IE8 - WinXP to shutdown... Tagging VM with ievms version Creating clean snapshot 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Building IE9 VM Checking for existing OVA at /Users/kyreenahay/.ievms/IE9 - Win7.ova Downloading OVA ZIP from http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/OSX/IE9_Win7.zip to IE9_Win7.zip % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 4770M 100 4770M 0 0 4651k 0 0:17:30 0:17:30 --:--:-- 5461k Extracting OVA from /Users/kyreenahay/.ievms/IE9_Win7.zip IE9_Win7.zip: Zip IE9 - Win7.ova (5079366144 B)... OK. Successfully extracted to "./IE9 - Win7.ova". Checking for existing IE9 - Win7 VM Creating IE9 - Win7 VM (disk: /Users/kyreenahay/.ievms/IE9 - Win7-disk1.vmdk) 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Interpreting /Users/kyreenahay/.ievms/IE9 - Win7.ova... OK. Disks: vmdisk1 135291469824 -1 http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized IE9 - Win7-disk1.vmdk -1 -1
Virtual system 0: 0: Suggested OS type: "Windows7" (change with "--vsys 0 --ostype "; use "list ostypes" to list all possible values) 1: VM name specified with --vmname: "IE9 - Win7" 2: Number of CPUs: 2 (change with "--vsys 0 --cpus ") 3: Guest memory: 1024 MB (change with "--vsys 0 --memory ") 4: Sound card (appliance expects "", can change on import) (disable with "--vsys 0 --unit 4 --ignore") 5: USB controller (disable with "--vsys 0 --unit 5 --ignore") 6: Network adapter: orig NAT, config 3, extra slot=0;type=NAT 7: CD-ROM (disable with "--vsys 0 --unit 7 --ignore") 8: IDE controller, type PIIX4 (disable with "--vsys 0 --unit 8 --ignore") 9: IDE controller, type PIIX4 (disable with "--vsys 0 --unit 9 --ignore") 10: SATA controller, type AHCI (disable with "--vsys 0 --unit 10 --ignore") 11: Hard disk image: source image=IE9 - Win7-disk1.vmdk, target path=/Users/kyreenahay/.ievms/IE9 - Win7-disk1.vmdk, controller=10;channel=0 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Successfully imported the appliance. Building IE9 - Win7 VM build_ievm_ie9 Downloading ievms control ISO from https://dl.dropboxusercontent.com/u/463624/ievms-control-0.2.0.iso to /Users/kyreenahay/.ievms/ievms-control-0.2.0.iso % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 3504k 100 3504k 0 0 476k 0 0:00:07 0:00:07 --:--:-- 812k Attaching ievms control ISO Starting VM IE9 - Win7 Waiting for VM "IE9 - Win7" to power on... VM "IE9 - Win7" has been successfully started. Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Ejecting ievms control ISO Attaching Guest Additions Starting VM IE9 - Win7 Waiting for VM "IE9 - Win7" to power on... VM "IE9 - Win7" has been successfully started. Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... Waiting for IE9 - Win7 to shutdown... ^C

tobowers commented 10 years ago

me three. It's definitely some sort of dialog popping up on the box. I couldn't figure out how to get control of the box with my mouse. A work around is to poweroff the box and then rerun the script.

hyspace commented 10 years ago

me too. my another machine is ok, since it uses virtualbox 4.3.4. I will fall back to use old version of virtualbox and try again.


I retried, both 4.3.4 and 4.3.6 works.

Problem is current version of VirtualBox Extension Pack. Try older versions.

Goto http://download.virtualbox.org/virtualbox/4.3.6/ and download Oracle_VM_VirtualBox_Extension_Pack-4.3.6.vbox-extpack to ~/.ievms/ and remove your VMs in win 7 and try again.

If something lile this happens

VBoxManage: error: Appliance import failed
VBoxManage: error: Cannot register the hard disk '/Users/hyspace/.ievms/IE9 - Win7-disk1.vmdk' {694cb1e5-03c7-4940-9103-58eb65366072} because a hard disk '/Users/hyspace/.ievms/IE9 - Win7-disk1.vmdk' with UUID {2b44c3d6-2341-4110-8e50-2247d7db8e1a} already exists
VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component Appliance, interface IAppliance
VBoxManage: error: Context: "int handleImportAppliance(HandlerArg*)" at line 779 of file VBoxManageAppliance.cpp

try

VBoxManage closemedium disk 03e97469-d4ea-4582-8468-1b172c294bdf

replace uuid with your own.

hope this would help

savingschampion commented 10 years ago

I turned on remote desktop inside virtualbox then used rdesktop to connect to the machine directly to work around. By work around I say no to rebooting and then accept installing the additions inside win7 On 05/03/14 06:26, Shawn Zhou wrote:

me too. my another machine is ok, since it uses virtualbox 4.3.4. I will fall back to use old version of virtualbox and try again.

— Reply to this email directly or view it on GitHub https://github.com/xdissent/ievms/issues/207#issuecomment-36714049.

bronislav commented 10 years ago

It seems that certificate provided with guest additions image is expired. Seems we need to import right certificate manually until they release a new guest additions.

CyborgMaster commented 10 years ago

+1 I'm having the same problem right now

CyborgMaster commented 10 years ago

I used the remote desktop workaround to get past this. It enabled the remote desktop server in the VirtualBox UI, connected to the VM, and then manually accepted the "Are you sure you want to install this?" dialog. I had to do it for every Windows 7 VM that was created (IE 9, 10, and 11).

Good to know there is a temporary workaround, but it is very cumbersome and annoying to use, so hopefully this gets resolved soon.

brondsem commented 10 years ago

I'm on a Mac so remote desktop isn't an option, and downgrading VirtualBox to 4.3.6 doesn't work either (I tried downgrading the extension pack as suggested above, and then also tried downgrading VirtualBox itself). Are there any other workarounds?

CyborgMaster commented 10 years ago

You can get remote desktop on a Mac. Its in the app store, made by Microsoft. I'm on a Mac and it worked for me.

tobowers commented 10 years ago

what are the settings for microsoft remote desktop to connect after turning on 'remote display' for virtualbox?

savingschampion commented 10 years ago

Any remote desktop tool should work, RDP is a standard protocol

On 11/03/14 13:54, Dave Brondsema wrote:

I'm on a Mac so remote desktop isn't an option, and downgrading VirtualBox to 4.3.6 doesn't work either (I tried downgrading the extension pack as suggested above, and then also tried downgrading VirtualBox itself). Are there any other workarounds?

— Reply to this email directly or view it on GitHub https://github.com/xdissent/ievms/issues/207#issuecomment-37297233.

savingschampion commented 10 years ago

something like 127.0.0.1:3306

On 12/03/14 20:20, Topper Bowers wrote:

what are the settings for microsoft remote desktop to connect after turning on 'remote display' for virtualbox?

— Reply to this email directly or view it on GitHub https://github.com/xdissent/ievms/issues/207#issuecomment-37459181.

bronislav commented 10 years ago

By default, vm use NAT and you should setup port forwarding first to be able to access remote desktop

bronislav commented 10 years ago

@brondsem On the mac a lot of apps that you may use. CorD one of them that I prefer.

savingschampion commented 10 years ago

Nope, if you're enabling remote desktop via Virtualbox, then it's exposed on the host automatically. On 13/03/14 09:18, Anton Ilin wrote:

By default, vm using NAT and you should setup port forwarding first to be able to access remote desktop

— Reply to this email directly or view it on GitHub https://github.com/xdissent/ievms/issues/207#issuecomment-37512737.

sheldon commented 10 years ago

+1

lucas4ce commented 10 years ago

I had a similar issue after recently upgrading to VirtualBox 4.3.8.

After deleting everything and restarting the whole process a few times without success I rolled back to virtualbox 4.2.24 here and ran the ievms installation of IE6 through IE11: https://www.virtualbox.org/wiki/Download_Old_Builds_4_2

All worked without the constantly hanging 'waiting for shutdown' terminal lines.

Mavericks 10.9.2 VirtualBox 4.2.24

szhu commented 10 years ago

Ran into this issue today. Just to be sure, this is the screen I'm getting (captured using VBoxManage): stuck The issue is not the restart dialog but the security warning in the background that should have been clicked but isn't.

For those who wish to solve this problem quickly and without using additional tools like remote desktop, here are the steps I followed for each VM:

  1. VBoxManage controlvm "IE9 - Win7" poweroff (or just kill the VBoxHeadless process)
  2. Open VirtualBox and startup the VM. The ievms script will run automatically.
  3. Wait until it gets stuck at the security dialog. Click the correct button.
  4. Wait and it will finish setup and shutdown the VM.
  5. Create a snapshot of the VM.

This particular issue can be fixed, but something like this might occur in future upgrades of VirtualBox. To give users more control of situations like this, perhaps ievms should have an option to start VMs in GUI mode instead of hardcoding in "headless" here:

start_vm() {
    log "Starting VM ${1}"
    VBoxManage startvm "${1}" --type headless
}

VirtualBox & extension pack versions 4.3.8r92456, OS X 10.9.2

rmarscher commented 10 years ago

Thanks @interestinglythere - that workaround was helpful. I downloaded the ievms.sh and removed --type headless so I can resolve any issues that popup. +1 for making that an env option.

bronislav commented 10 years ago

It seems that this issue solved with new VirtualBox version (4.3.10)

sheldon commented 10 years ago

very nice, thanks for letting us know

On 2 April 2014 14:57, Anton Ilin notifications@github.com wrote:

It seems that this issue solved with new VirtualBox version (4.3.10)

— Reply to this email directly or view it on GitHubhttps://github.com/xdissent/ievms/issues/207#issuecomment-39332737 .

xdissent commented 8 years ago

Latest version requires VirtualBox 5.0, which should certainly fix this.