操作系統 : windows7_x64 創建vhd 磁碟管理 --> 操作 --> 創建vhd 掛載vhd 腳本: Python版本: https://github.com/mike-zhang/pyExamples/blob/master/tools/vhdFileOpt/load_vhd.py ...
操作系統 : windows7_x64
創建vhd
磁碟管理 --> 操作 --> 創建vhd
掛載vhd
腳本:
rem 掛載VHD @echo off (echo select vdisk file="D:\workspace\srcRead.vhd" echo attach vdisk)>"%tmp%\vhd.sh" diskpart /s "%tmp%\vhd.sh" pause
Python版本:
https://github.com/mike-zhang/pyExamples/blob/master/tools/vhdFileOpt/load_vhd.py
卸載vhd
腳本:
rem 卸載VHD (echo select vdisk file="D:\workspace\srcRead.vhd" echo detach vdisk)>"%tmp%\vhd.sh" diskpart /s "%tmp%\vhd.sh" pause
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
歡迎補充