懒码农。。。。。。

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

转自: http://www.cnblogs.com/upzone/archive/2007/05/23/757346.html

 

工作需要,用虚拟机比较多,我用的是MS Virtual Server,本来虚拟机装个声卡就没什么意思,但是经常在虚拟机里Application出错或者警告时候发出讨厌的Beep声,今天找到如何去掉beep声,记一下

禁用客户端发出噪音的设备,该设备在“设备管理器”->“非即插即用设备”里可以找到,不过还需要选择“显示隐藏设备”)。

command下执行命令

net stop beep  

//停掉beep服务


sc config beep start= disabled

//把beep服务设置为禁用状态

 

注:beep不是services.msc所列的一个服务,而是驱动类服务。
运行devmgmt.msc,查看/显示隐藏的设备,然后就可以找到非即插即用设备中有个beep,双击,即可调整属性,停止,并设置为禁用

这下整个世界清净多了...

 

ps:发现Virtual Server中一个有用的功能 vhdMount,我记得VMWare中也有这个咚咚的

就是有时候需要从虚机硬盘里考点东西,一般的做法就是开机,然后联网考贝,

这个工具可以挂载虚机磁盘

 

1.加载

C:\Program Files\Microsoft Virtual Server\Vhdmount>vhdmount /p "E:\VPC\Windows 2000 Pro\Windows2000 Hard Disk.vhd"

2.卸载

C:\Program Files\Microsoft Virtual Server\Vhdmount>vhdmount /d /u "E:\VPC\Windows 2000 Pro\Windows2000 Hard Disk.vhd"

-----------------------------------------------------

The VHD Mount command-line tool mounts a virtual hard disk file (.vhd file) as a virtual disk device. By default, Vhdmount.exe is installed at \Program Files\Microsoft Virtual Server\VHDMount.

Note

VHD Mount is case-sensitive and must be entered all lowercase.

Syntax
vhdmount {/p <VHDFileName> | /m <VHDFileName> [<DriveLetter>] | /f /u {<VHDFileName> [/c | /d] | All} | /q {<VHDFileName> | All}}
Parameters

Parameter 
Description

/p

Plugs in the specified .vhd file as a virtual disk device without mounting the volume.

/m

Plugs in the specified .vhd file as a virtual disk device and mounts the volume. DriveLetter is optional. If drive letter is specified, the volumes are mounted starting at the specified drive letter. If drive letter is not specified, it is automatically assigned.

Note   The /m option uses Windows Virtual Disk Service (VDS) APIs to mount volumes on the disk. VDS APIs are only available in Windows Server 2003, Windows Server "Longhorn", and Windows Vista. This means that /m does not mount the volumes when the host operating system is Windows XP. However, you can mount volumes manually in Windows XP by using Disk Manager.

/u

Unplugs the virtual disk device for the specified VHDFileName or on all mounted virtual disk devices. VHDFileName is the fully qualified path of the .vhd file.

/q

Returns the disk identifier of the mounted virtual disk device for the specified VHDFileName, or on all mounted virtual disk devices. VHDFileName is the fully qualified path of the .vhd file.

/f

Mounts the virtual hard disk without an undo disk. All changes are made to the original virtual hard disk. By default, VHDMount mounts the virtual hard disk by creating a temporary undo disk, and changes are made to the undo disk.

/c

Updates the original .vhd file with all changes that were stored in the undo disk file and deletes the undo disk file before unplugging the disk.

/d

Discards all changes to the mounted disk and deletes the undo disk file before unplugging the disk.

 

Note

Options /c and /d are only applicable if the .vhd file was mounted without using /f. 

posted on 2011-05-01 03:38  阿彬  阅读(633)  评论(0编辑  收藏  举报