sysprep not work

Discussions about using Windows guests in VirtualBox.
Post Reply
Hammer Pan
Posts: 2
Joined: 11. Jul 2018, 11:14

sysprep not work

Post by Hammer Pan »

Hi

In the following environment:
Host(win7) + virtualbox 5.2.12 + Guest(Windows Server 2016)

execute the following command
VBoxManage.exe --nologo guestcontrol "MyVM" run --exe sysprep --username sysprep --password sysprep -q -- /quiet /generalize /oobe /reboot /unattend:c:\work\sysprep\unattend.xml
return the following result:
VBoxManage.exe: error: The specified user was not able to logon on guest
VBoxManage.exe: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component GuestSessionWrap, interface IGuestSession, callee IUnknown
VBoxManage.exe: error: Context: "WaitForArray(ComSafeArrayAsInParam(aSessionWaitFlags), 30 * 1000, &enmWaitResult)" at line 938 of file VBoxManageGuestCtrl.cpp

but in help [9.3.1. Automated Windows system preparation] support it.
someone can help me?

best regard!
alice_123
Posts: 2
Joined: 10. Jul 2018, 09:08

Re: sysprep not work

Post by alice_123 »

To deploy a windows picture to distinct computers, you need to first generalize the photo to remove PC specific drivers including computer security identifier. You can both use Sysprep through itself or Sysprep with an unattended answer file to generalize your image and make it prepared for deployment.

there is more information available on Microsoft, which may be useful for you. Sharing you https://docs.microsoft.com/en-us/window ... stallation

I hope this may be helpful to resolve your sysprep related issue.
Hammer Pan
Posts: 2
Joined: 11. Jul 2018, 11:14

Re: sysprep not work

Post by Hammer Pan »

Thanks for you reply.

I run sysprep at command prompt, it work perfect.
because i clone the machine many times and want to reinitialize virtual machine automationly.
so i create unattend.xml and do it.

Execute SysPrep with correct path and administrator auth, but fatal error occurred.
In the VirtualBox Help, I found can run SysPrep with program, user, password using sysprep, and i checkout the source found when program name is sysprep, set the correct sysprep path according to os type.

Is my usage not correct or ?

Hammer Pan
Best Regard!
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: sysprep not work

Post by mpack »

Be warned that user "alice_123" is currently regarded with a good deal of suspicion, so don't get too distracted by what "she" has to say. Her posts have often been copied verbatim from elsewhere (e.g. https://docs.microsoft.com/en-us/window ... stallation), are often completely off topic (e.g. the above post does not mention VirtualBox). She has the post pattern of a spammer who intends to come back at some future date to edit her posts, replacing them with offsite spam links. When that happens she'll be disappointed since any posts that haven't been deleted we've made read only.
Post Reply