1
virtualboxヘッドレス(VBoxManage)を使用して仮想マシンとしてcentosをインストールしようとしています。私はVBoxManageを使って仮想マシンを作成することができます。仮想ボックスヘッドレス(VBoxManage)を使用してキックスタートファイルを渡します。
インストールを自動化するために、VBoxManageを使用してキックスタートファイルを渡すにはどうすればよいですか。
これは私ののスクリプトファイルで、VMを作成します。
VM="test"
VBoxManage createhd --filename $VM.vdi --size 32768
VBoxManage createvm --name $VM --ostype "RedHat_64" --register
VBoxManage storagectl $VM --name "SATA Controller" --add sata --controller IntelAHCI
VBoxManage storageattach $VM --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium $VM.vdi
VBoxManage storagectl $VM --name "IDE Controller" --add ide
VBoxManage storageattach $VM --storagectl "IDE Controller" --port 0 --device 0 --type dvddrive --medium /path/to/iso
VBoxManage modifyvm $VM --ioapic on
VBoxManage modifyvm $VM --boot1 dvd --boot2 disk --boot3 none --boot4 none
VBoxManage modifyvm $VM --memory 1024 --vram 128
VBoxManage modifyvm $VM --nic1 bridged --bridgeadapter1 eth0
私は私のスクリプトの変更は、キックスタートファイル