VHDを使用してWindows7の仮想ディスク

オペレーティングシステム:windows7_x64

VHDを作成します。

ディスクの管理] - > [アクション] - > [VHDを作成します。

マウントVHD

スクリプト:

REM挂载VHDが
オフ@echo エコー 選択仮想ディスクのファイル = " D:\ワークスペース\のsrcRead.vhd " 
 エコーアタッチ仮想ディスクを)> " %のTMP%の\のvhd.shを" 
DISKPART / sの" %TMP%\ vhd.sh " 
ポーズ

Pythonのバージョン:

https://github.com/mike-zhang/pyExamples/blob/master/tools/vhdFileOpt/load_vhd.py

アンインストールVHD

スクリプト:

REM卸载VHD エコー 選択仮想ディスクのファイルを = " D:\ワークスペース\のsrcRead.vhd " 
 エコー切り離す仮想ディスク)> " %のTMP%\ vhd.sh " 
DISKPART / sの" %のTMP%の\のvhd.sh " 
ポーズ

Pythonのバージョン:

https://github.com/mike-zhang/pyExamples/blob/master/tools/vhdFileOpt/unload_vhd.py

この記事のgithubの住所:

https://github.com/mike-zhang/mikeBlogEssays/blob/master/2019/20190815_windows7 VHD仮想ディスクを使用して.rst

追加へようこそ

おすすめ

転載: www.cnblogs.com/MikeZhang/p/win7loadvhd20190815.html