-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvirtualbox_auto.txt
More file actions
25 lines (18 loc) · 1016 Bytes
/
virtualbox_auto.txt
File metadata and controls
25 lines (18 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
set VM=TEST
VBoxManage createvm --name %VM% --ostype "RedHat_64" --register
VBoxManage createhd --filename %VM%.vdi --size 32768
VBoxManage storagectl %VM% --name "SATA Controller" --add sata --controller IntelAHCI
VBoxManage.exe storagectl %VM% --name IDE --add ide
VBoxManage storageattach %VM% --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium %VM%.vdi
VBoxManage modifyvm %VM% --memory 512 --boot1 dvd --boot2 disk
VBoxManage modifyvm %VM% --hostonlyadapter1 nic4
VBoxManage modifyvm %VM% --nic2 nat
VBoxManage modifyvm %VM% --nic3 intnet
VBoxManage storageattach %VM% --storagectl IDE --port 0 --device 0 --type dvddrive --medium "C:\Users\root\Dropbox\LAPTOP BUILDS\VMs\VM ISOs\Centos7.0\CentOS-7.0-1406-x86_64-Everything.iso"
VBoxManage sharedfolder add %VM% --name VirtualShare --hostpath "C:\VirtualShare" --automount
#detatch dvd
#VBoxManage.exe storageattach "<uuid|vmname>" --storagectl IDE --port 0 --device 0 --medium "none"
vboxmanage startvm %VM%
TAB
"TEXT"
[RETURN]