On Mon, Jan 3, 2011 at 11:50 AM, Leonardo Carneiro
<[email protected]> wrote:
> On Mon, Jan 3, 2011 at 3:20 PM, Rance Hall <[email protected]> wrote:
>> I have a script that sets up a VDE network with virtual cables and such.
>>
>> At the end of the script it is supposed to start two vms each attached
>> to two different vde switches.
>>
>> The first VBoxManage startvm vmname works fine, but the second one
>> does not execute.
>>
>> Question:
>>
>> Do I need a sleep function or something between the two start vm lines
>> to get them to run?
>>
>> currently the end of the script looks like this:
>>
>> <begin script>
>>
>> <vde stuff here>
>>
>> VBoxManage startvm vmname1
>> VBoxManage startvm vmname2
>>
>> <end script>
>>
>> Yes vmname1 and vmname2 are spelled correctly as I can switch the
>> order and start the other vm.
>>
>> My problem seems to be that whichever vm is second will not start.
>>
>> What gives?
>
> The second i think the second command isn't even running. Try to get a
> log for this, like:
>
> <start>
>
> stuff...
> echo "starting vm1... " >> file.log
> VBoxManage startvm vmname1
> echo "vm1 started: $?" >> file.log
> echo "starting vm2... " >> file.log
> VBoxManage startvm vmname2
> echo "vm2 started: $?" >> file.log
>
> <end>
>
> and check the log. also, you can try this:
>

I updated my script and added logging to a file.  It appears that the
whole script is executing.  I thought to add time stamps to my log
entries.

So this is my situation as I understand it.

vboxmanage is asked to start a vm by a script.  It does so, and
returns control to the script in two seconds.

It sleeps for 3 seconds, and then the second startvm command is
issued.  It returns control to the script immediately, the log entries
before and after the startvm command have identical time stamps.

By the time the script exits and I open a new terminal window and type
VBoxManage startvm vmname2 it starts just fine.

My guess here is that it takes vboxmanage a little time to return to a
listening state after starting the vm.  I just need to figure out how
long that delay is.

Yes I double, and triple checked the vmname and the syntax of the
second startvm line in the script and can not find any obvious errors.

Rance

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
VBox-users-community mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vbox-users-community

Reply via email to