<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    于 2011年10月21日 17:32, vmnode guy 写道:
    <blockquote
cite="mid:CABM7-r-x9DACPygGa2PrdJ8TOKmhqM1NFt73C1Sae+CUZPzPcw@mail.gmail.com"
      type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <pre style="font-family: 'Times New Roman'; font-size: medium; ">Hi All,</pre>
      <pre><font class="Apple-style-span" face="'Times New Roman'" size="3">I am new to libvirt, i wander how we can achieve below objective, i read through a lot from <a moz-do-not-send="true" href="http://libvirt.org">libvirt.org</a> but couldn't </font><font class="Apple-style-span" face="'Times New Roman'" size="3">found any thing solid something </font><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; ">equivalent to this:-</span></pre>
      <pre><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; ">
</span></pre>
      <pre><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; ">  virsh dumpxml dom > /tmp/dom.xml</span></pre>
      <pre style="font-family: 'Times New Roman'; font-size: medium; ">  $EDITOR /tmp/dom.xml && virsh define /tmp/dom.xml

</pre>
      <pre style="font-family: 'Times New Roman'; font-size: medium; ">What i try to achieve is to have one management server that install with libvirt in place then we can use libvirt to connect to other libvirt box to provision the vm-create, vm-delete & capable to vm-modified the CPU,MEM,HDD,boot sequence, vnc password attached & detech network card..on the targeted VM.</pre>
    </blockquote>
    <br>
    there are commands to do the modifications? e.g.<br>
    <br>
    for vnc password changes, HDD:<br>
        # virsh update-device <br>
    <br>
    for mem:<br>
        # virsh setmem<br>
        # virsh setmaxmem<br>
    <br>
    for detach/attach NIC:<br>
        # virsh attach-device<br>
        # virsh detach-device<br>
    <br>
    Not sure how you want to modify the "CPU", you could<br>
    see if following commands satisfy you requirement:<br>
    <br>
        # virsh setvcpus (if you are using qemu-kvm, the cpus in guest
    won't<br>
                                    be hotpluged/unhotpluged actually,
    as it lacks support)<br>
        # virsh vcpupin<br>
    <br>
    All these commands support change persistent config, But if you are
    trying <br>
    to modify a bunch of domains, scripts is better, though it's not
    supported<br>
    offically by libvirt to modify the domain configs externally.<br>
    <br>
    Regards<br>
    Osier<br>
  </body>
</html>