<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<STYLE>
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
        FONT-SIZE: 10.5pt; COLOR: #000080; LINE-HEIGHT: 1.5; FONT-FAMILY: 宋体
}
</STYLE>

<META content="MSHTML 6.00.2900.6148" name=GENERATOR></HEAD>
<BODY style="MARGIN: 10px">
<DIV>Hi,Eric:</DIV>
<DIV>Thank you for your reply.</DIV>
<DIV>All I want to do is like this:</DIV>
<DIV>I have 2 vms ,vm-01 and vm-02 which set to be autostart both.</DIV>
<DIV>further more, I want vm-02 start 10sec later than vm-01.</DIV>
<DIV>Compared with VMware ESX which has a function that can delay several times 
after the vm run into bios,</DIV>
<DIV>Does libvirt also have some fuction like this or should I write a shell 
script to controll the start pace of the vms ?</DIV>
<DIV> </DIV>
<HR style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>

<DIV><SPAN>xuteng<SPAN 
style="FONT-SIZE: 10.5pt; COLOR: #969696; FONT-STYLE: italic; FONT-FAMILY: Microsoft Sans Serif"> 
via foxmail</SPAN></SPAN></DIV>
<DIV> </DIV>
<DIV 
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<DIV 
style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; COLOR: #000000; PADDING-TOP: 8px">
<DIV><B>Sender:</B> <A href="mailto:eblake@redhat.com">Eric Blake</A></DIV>
<DIV><B>Date:</B> 2011年10月12日 星期三 上午5:55</DIV>
<DIV><B>To:</B> <A href="mailto:xuteng@szjhkx.com">xuteng</A></DIV>
<DIV><B>CC:</B> <A 
href="mailto:libvirt-users@redhat.com">libvirt-users</A></DIV>
<DIV><B>Subject:</B> Re: [libvirt-users] BIOS Delay</DIV></DIV></DIV>
<DIV>
<DIV>On 10/10/2011 02:50 AM, xuteng wrote:</DIV>
<DIV>></DIV>
<DIV>> Hi,</DIV>
<DIV>> Does the libvirt support the bios delay ?</DIV>
<DIV>> I mean that after set a special number of seconds or minutes, when the domain starts, the bios will delay after the time I set</DIV>
<DIV> </DIV>
<DIV>Is there a qemu option that affects this?  I'm not aware of one, off the </DIV>
<DIV>top of my head, which means that libvirt does not expose one directly. </DIV>
<DIV>If there _is_ such a qemu option, then you can access it via </DIV>
<DIV><qemu:commandline> xml while waiting for libvirt to implement official </DIV>
<DIV>xml to support this feature.</DIV>
<DIV> </DIV>
<DIV>Taking a step back, I'm not even sure what you are trying to accomplish </DIV>
<DIV>with a delay.  Perhaps it is sufficient if you use virDomainStartFlags </DIV>
<DIV>with VIR_DOMAIN_START_PAUSED (or virsh start --paused) to request that a </DIV>
<DIV>guest be created without running it, then at your choice of delay, </DIV>
<DIV>resume the guest?  But that's not a BIOS delay.</DIV>
<DIV> </DIV>
<DIV>-- </DIV>
<DIV>Eric Blake   eblake@redhat.com    +1-801-349-2682</DIV>
<DIV>Libvirt virtualization library http://libvirt.org</DIV>
<DIV> </DIV>
<DIV> </DIV></DIV></BODY></HTML>