Skip to content

Commit 2dd95c9

Browse files
Update generalize.md
I am working as an Azure Cloud Engineer in Microsoft. Recently I received a customer support request where the customer was wondering why only for some of his VMs, he can see DVD E : drive and not for all his VMs. I did some research from my end and got to know that the CD/DVD-ROM drive may be present in some Azure VMs as Azure platform mounts ISO file to a DVD-ROM when a Windows VM is created from generalized image. For this reason, DVD-ROM must be enabled in guest OS VM. If it is disabled, guest VM is stuck at OOBE even a user believes he did everything correctly. Users should not attempt to disable DVD-ROM as this will prevent a VM to be provisioned successfully. DVD rom disappears once a VM is deallocated and started again, so this can rarely be an issue. However, disabling DVD-ROM will yield bad results for image creation job and troubleshooting for this scenario will be very difficult once this issue happens. When I checked this existing Microsoft document for generalizing a VM before image creation , I found that the above is not mentioned anywhere in it and it can cause serious issues for the customers as well as the troubleshooting engineer. Hence I have updated the Important notes as well as added a step to enable the DVD-ROM in the guest OS VM. Please verify from your end and provide your feedback.
1 parent 1078007 commit 2dd95c9

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

articles/virtual-machines/generalize.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,10 @@ Make sure the server roles running on the machine are supported by Sysprep. For
8181
>
8282
> If you plan to run Sysprep before uploading your virtual hard disk (VHD) to Azure for the first time, make sure you have [prepared your VM](./windows/prepare-for-upload-vhd-image.md).
8383
>
84-
> We do not support custom answer file in the sysprep step, hence you should not use the "/unattend:_answerfile_" switch with your sysprep command.
85-
>
84+
> We do not support custom answer file in the sysprep step, hence you should not use the "/unattend:_answerfile_" switch with your sysprep command.
85+
>
86+
> Azure platform mounts an ISO file to the DVD-ROM when a Windows VM is created from a generalized image. For this reason, the **DVD-ROM must be enabled in the OS in the generalized image**. If it is disabled, the Windows VM will be stuck at out-of-box experience (OOBE).
87+
8688

8789
To generalize your Windows VM, follow these steps:
8890

@@ -91,6 +93,13 @@ To generalize your Windows VM, follow these steps:
9193
2. Open a Command Prompt window as an administrator.
9294

9395
3. Delete the panther directory (C:\Windows\Panther).
96+
4. Verify if CD/DVD-ROM is enabled.If it is disabled, the Windows VM will be stuck at out-of-box experience (OOBE).
97+
```
98+
Registry key Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\cdrom\start (Value 4 = disabled, expected value 1 = automatic) Make sure it is set to 1.
99+
```
100+
> [!NOTE]
101+
> Verify if any policies applied restricting removable storage access (example: Computer configuration\Administrative Templates\System\Removalble Storage Access\All Removalble Storage classes: Deny all access)
102+
94103

95104
5. Then change the directory to %windir%\system32\sysprep, and then run:
96105
```

0 commit comments

Comments
 (0)