nel*_*aro 41 bios windows virtualbox time virtual-machine
使用 virtual box 可以将您的虚拟机时间设置为与主机时间不同。说 1 年过去。
如果我想从这里运行 Microsoft 提供的 Windows XP 图像。
http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=11575
值得注意的是 XP 映像:
Expires: This image will shutdown and become completely unusable on February 14, 2013.
它是测试 IE 6 和 IE 7 的更好方法之一。其他 XP 典型测试。
Ste*_*del 51
完全没有问题。请记住在 VirtualBox Guest Additions 中禁用时间同步,然后根据需要在虚拟机中设置日期+时间。如果安装时需要,还可以选择进入虚拟 BIOS 并在那里设置日期+时间。
此命令禁用同步:http :
//www.virtualbox.org/manual/ch09.html#disabletimesync
VBoxManage setextradata "VM name" "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 1
Run Code Online (Sandbox Code Playgroud)
以下选项允许以毫秒为单位设置偏移量:http : //www.virtualbox.org/manual/ch08.html#vboxmanage-modifyvm
VBoxManage modifyvm "VM name" --biossystemtimeoffset <msec>
Run Code Online (Sandbox Code Playgroud)
小智 6
Windows PowerShell 脚本示例
启动VM.ps1
# Starts the VM always on the date 12/30/2016
$tempo = ""+([datetime]"12/30/2016" - [datetime]::Now).TotalMilliseconds
$tempo = ""+[math]::Round($tempo)
$nome = "virtualMachineName"
& ${env:ProgramFiles}\Oracle\VirtualBox\VBoxManage setextradata $nome "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 1
& ${env:ProgramFiles}\Oracle\VirtualBox\VBoxManage modifyvm $nome --biossystemtimeoffset $tempo
& ${env:ProgramFiles}\Oracle\VirtualBox\VBoxManage startvm $nome
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
60808 次 |
最近记录: |