Change boot order in virtualbox scripts
Master node will boot from disk/cdrom/net Slave nodes will boot from net/disk It is done in order to meet our requirements: http://docs.mirantis.com/fuel/fuel-4.1/install-guide.html#fuel-installation-procedures Partial-Bug: #1316583 Change-Id: I2bdd929e48cf5c4cc687b7ef77ea749cc8c1750e
This commit is contained in:
parent
d265b30f2b
commit
5ce3d34820
|
@ -57,7 +57,7 @@ create_vm() {
|
|||
cpu_cores=$3
|
||||
memory_mb=$4
|
||||
disk_mb=$5
|
||||
os=${6:-'RedHat_64'}
|
||||
os='RedHat_64'
|
||||
|
||||
# There is a chance that some files are left from previous VM instance
|
||||
vm_base_path=$(get_vm_base_path)
|
||||
|
@ -74,6 +74,7 @@ create_vm() {
|
|||
|
||||
# Configure main network interface for management/PXE network
|
||||
add_hostonly_adapter_to_vm $name 1 "$nic"
|
||||
VBoxManage modifyvm $name --boot1 disk --boot2 dvd --boot3 net --boot4 none
|
||||
|
||||
# Configure storage controllers
|
||||
VBoxManage storagectl $name --name 'IDE' --add ide --hostiocache on
|
||||
|
@ -174,6 +175,6 @@ enable_network_boot_for_vm() {
|
|||
name=$1
|
||||
|
||||
# Set the right boot priority
|
||||
VBoxManage modifyvm $name --boot1 disk --boot2 net --boot3 none --boot4 none --nicbootprio1 1
|
||||
VBoxManage modifyvm $name --boot1 net --boot2 disk --boot3 none --boot4 none --nicbootprio1 1
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue