<div dir="ltr">Hi Daniel <div><br></div><div>I think I was'nt posted my question correctly, here is my senario I have a virtual machine with 3 drives</div><div><br></div><div>vda, vdb, sda</div><div><br></div><div>I want to hide the <b>DELETE</b> button against the primary disk of virtual machine, that was my question how to determine which is the primary disk of the VM.</div>
<div><br></div><div>Br.</div><div><br></div><div>Umar</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 18, 2013 at 7:15 PM, Daniel P. Berrange <span dir="ltr"><<a href="mailto:berrange@redhat.com" target="_blank">berrange@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Fri, Nov 15, 2013 at 01:02:10AM +0500, Umar Draz wrote:<br>
> Hi<br>
><br>
> I am working with php-libvirt,<br>
><br>
> How I can find the primary or bootable disk device of a virtual machine?<br>
<br>
</div></div>This can be determined from the XML config. Either there will be a<br>
<boot dev='cdrom|disk|floppy'> device type listed under <os> in which<br>
case it'll use the first matching devices of that type, or there will<br>
be explicit <boot order="NNN"/> ordering listed under the specific device<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Daniel<br>
--<br>
|: <a href="http://berrange.com" target="_blank">http://berrange.com</a>      -o-    <a href="http://www.flickr.com/photos/dberrange/" target="_blank">http://www.flickr.com/photos/dberrange/</a> :|<br>
|: <a href="http://libvirt.org" target="_blank">http://libvirt.org</a>              -o-             <a href="http://virt-manager.org" target="_blank">http://virt-manager.org</a> :|<br>
|: <a href="http://autobuild.org" target="_blank">http://autobuild.org</a>       -o-         <a href="http://search.cpan.org/~danberr/" target="_blank">http://search.cpan.org/~danberr/</a> :|<br>
|: <a href="http://entangle-photo.org" target="_blank">http://entangle-photo.org</a>       -o-       <a href="http://live.gnome.org/gtk-vnc" target="_blank">http://live.gnome.org/gtk-vnc</a> :|<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Umar Draz<br>Network Architect
</div>