I know it sounds very stupid but i am a beginner at working with CLI. I have .iso of os and now i want to install it in VM, I want to know what should I do after the instruction below
Code: Select all
#!/bin/bash
#Create vm
VBoxManage createvm --name "Ubuntu12" --ostype Ubuntu --register
#Allocate all appropriate parameters
VBoxManage modifyvm Ubuntu_64 --memory 128 --boot1 dvd --boot2 disk --clipboard bidirectional
VBoxManage modifyvm Ubuntu_64 --vram 64
VBoxManage modifyvm Ubuntu_64 --acpi on
VBoxManage modifyvm Ubuntu_64 --cpus 3 --ioapic on
VBoxManage modifyvm Ubuntu_64 --vram 32
VBoxManage modifyvm Ubuntu_64 --vrde on
VBoxManage modifyvm Ubuntu_64 --vrdeport 3390
VBoxManage modifyvm Ubuntu_64 --vrdeaddress 192.168.0.137
VBoxManage modifyvm Ubuntu_64 --usb off
VBoxManage modifyvm Ubuntu_64 --audio none
VBoxManage modifyvm Ubuntu_64 --nic1 bridged
VBoxManage modifyvm Ubuntu_64 --bridgeadapter1 eth0
VBoxManage modifyvm Ubuntu_64 --nictype1 Am79C973
VBoxManage modifyvm Ubuntu_64 --cableconnected1 on
VBoxManage storagectl Ubuntu_64 --name "IDE Controller" --add ide
VBoxManage createhd --filename ~/.VirtualBox/Ubuntu_64_hdd.vdi --size 4096
VBoxManage storageattach Ubuntu_64 --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium ~/.VirtualBox/Ubuntu_64_hdd.vdi
what I am trying to do is I am writting a shell script because of which a VM with OS is created.... that's why I need this...
thank you in advance...