如何在VirtualBox中安装和克隆windows VM

上回讲了如何安装和克隆Debian VM,本回说说Windows
VM。

1. 创建windows VM

# VBoxManage createvm --name "win2k3-template" --register
# VBoxManage modifyvm "win2k3-template" --memory 512 --acpi on --boot1 dvd --nic1 bridged --nictype1 virtio --bridgeadapter1 eth0
# VBoxManage createhd --filename /vbox.images/win2k3-template/win2k3-template.vdi --size 20000
# VBoxManage storagectl "win2k3-template" --name "IDE Controller" --add IDE --controller IntelAhci
# VBoxManage storageattach "win2k3-template" --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium /vbox.images/win2k3-template/win2k3-template.vdi
# VBoxManage storageattach "win2k3-template" --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium /home/software/Windows.Server.2003.SP2.ent.iso