Add the serial COM1 port to the slave nodes.

Change-Id: I9a9604a884e339476ffcf810ca6525137d44a527
Closes-Bug: #1590378
Signed-off-by: Maksim Malchuk <mmalchuk@mirantis.com>
This commit is contained in:
Maksim Malchuk 2016-06-01 22:36:19 +03:00
parent 30af233b8a
commit 72178d84c2
1 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,9 @@ for idx in $(eval echo {1..$cluster_size}); do
add_disk_to_vm $name 1 $vm_slave_second_disk_mb add_disk_to_vm $name 1 $vm_slave_second_disk_mb
add_disk_to_vm $name 2 $vm_slave_third_disk_mb add_disk_to_vm $name 2 $vm_slave_third_disk_mb
#add COM1 port for serial console
execute VBoxManage modifyvm $name --uart1 0x03f8 4 --uartmode1 disconnected
#add NIC1 MAC to description #add NIC1 MAC to description
mac=$(execute VBoxManage showvminfo $name --machinereadable |awk -F '=' '{ if ($1 == "macaddress1") print $2}') mac=$(execute VBoxManage showvminfo $name --machinereadable |awk -F '=' '{ if ($1 == "macaddress1") print $2}')
execute VBoxManage modifyvm $name --description $mac execute VBoxManage modifyvm $name --description $mac