当前位置:网站首页>Error 0xc0000013, 0xc000007b, etc. due to the conflict between the CD-ROM drive letter and the drive letter in the business program path

Error 0xc0000013, 0xc000007b, etc. due to the conflict between the CD-ROM drive letter and the drive letter in the business program path

2022-06-24 05:17:00 shawyang

problem : Use the custom image to change the drive letter to F 了 , But creating cvm The CD-ROM drive letter will appear F Turn into D The situation of , And report an error exception processing message 0xc0000013

Report errors exception processing message oxc0000013 The cause of has been found out , Do not occupy the CD-ROM drive D and E, If you occupy it, you will report the above mistakes , Because my system disk has a program pointing to D Plate and E Disk some paths , Even if the drive letter is D or E, But the path pointed to by the program does not exist in the CD-ROM drive , If the path cannot be found, an error will be reported

How to explain the CD-ROM drive letter from F become D?

The original machine for creating custom images is the model A, The model is used when creating a new machine with a custom image B, After model change , The hardware identification will be like the public image , The CD-ROM drive will start from D Drive letter reassignment loading , This is a cloudbase-init An implicit logic of

To ensure the uniformity of the CD-ROM drive letter , It is recommended to explicitly specify the CD-ROM drive letter through the code in the user-defined data part when creating the machine , For example, in the following code Z:

<powershell>

get-date -format HH:mm:ss:fffffff >> C:\aaa.txt;

Set-ExecutionPolicy Unrestricted -force

Get-WmiObject -Class Win32_volume -Filter 'DriveType=5' |Set-WmiInstance -Arguments @{DriveLetter='Z:'} 2>&1 >> C:\aaa.txt;

get-date -format HH:mm:ss:fffffff >> C:\aaa.txt;

exit

</powershell>

How to make the CD-ROM drive of the machine bought by the user-defined image not occupy the drive letter ( That is, the CD-ROM drive cannot be seen by the resource manager 、 But the disk manager can see an optical drive device without a drive letter )?

Open disk manager , Delete the CD-ROM drive letter as shown in the figure below

notes : Deleting the CD-ROM drive letter affects the console's ability to reset the password

About cloudbase-init Other instructions for :

1、 Make sure cloudbase-init The operating mode of is local system account

If the arrow points to .\cloudbase-init May trigger some bug

2、 If you do not need an optical drive letter , Do not disable the optical drive from the device manager , Delete the drive letter from the disk manager , After deleting the drive letter, the CD-ROM drive will not be visible in the resource manager , But deleting the CD-ROM drive letter will affect the console's ability to reset the password , If deleted , Remember your password , The reset password can only be set inside the system

3、 It is not recommended to uninstall cloudbase-init, Because network initialization 、hostname initialization 、UserData Custom data, etc. need it

4、cloudbase-init By default the hostname Change to Intranet IP Underline form , If not hostname By cloudbase-init change , Want to keep hostname, The following configurations shall be made in advance

C:\Program Files\Cloudbase Solutions\Cloudbase-Init\conf\cloudbase-init.conf

Delete section of this document 11 In the line cloudbaseinit.plugins.common.sethostname.SetHostNamePlugin

Or unload cloudbase-init, But there is no cloudbase-init Words , Console reset password function 、 When creating the machine UserData The function will not work

原网站

版权声明
本文为[shawyang]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/08/20210819183801071r.html