<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    于 2011年08月26日 20:27, bin liu 写道:
    <blockquote
cite="mid:CAH8ki-n2ZkrqD=+qS=U7ntkBMxVfKiCYLzYxCor-WQ3SFKFe6A@mail.gmail.com"
      type="cite">
      <div>hello,I 've deployed libvirt, and it is OK to use kvm.But
        when I use virtualbox,I can not attach a device to a domain.</div>
      <div>It reports the error that can't get device from device.xml<br>
      </div>
    </blockquote>
    <br>
    Hi,<br>
    <br>
    What's the exact error?<br>
    <br>
    <blockquote
cite="mid:CAH8ki-n2ZkrqD=+qS=U7ntkBMxVfKiCYLzYxCor-WQ3SFKFe6A@mail.gmail.com"
      type="cite">
      <div>here is my xml file for device(device.xml):<br>
        <disk type='block'><br>
                <driver name='phy'/><br>
                        <source
        dev="/home/lb/iscsitest/vdisk.img"/><br>
                <target dev='sdb' bus='usb'/><br>
        </disk></div>
      <div>and the xml file for the vm:</div>
      <div> </div>
      <div><domain type='vbox'><br>
          <name>winxp_3D</name><br>
          <uuid>d2542bf2-3d56-41fa-a048-4f9a7ed3cf4a</uuid><br>
          <memory>787456</memory><br>
          <currentMemory>787456</currentMemory><br>
          <vcpu>1</vcpu><br>
          <os><br>
            <type arch='x86_64'>hvm</type><br>
            <boot dev='fd'/><br>
            <boot dev='cdrom'/><br>
            <boot dev='hd'/><br>
          </os><br>
          <features><br>
            <acpi/><br>
          </features><br>
          <clock offset='localtime'/><br>
          <on_poweroff>destroy</on_poweroff><br>
          <on_reboot>destroy</on_reboot><br>
          <on_crash>destroy</on_crash><br>
          <devices><br>
            <disk type='file' device='disk'><br>
              <source file='/root/VirtualBox
        VMs/winxp_3D/winxp_3D.vdi'/><br>
              <target dev='hda' bus='ide'/><br>
            </disk><br>
            <interface type='bridge'><br>
              <mac address='08:00:27:6f:c6:4f'/><br>
              <source bridge='tap0'/><br>
              <model type='Am79C973'/><br>
            </interface><br>
            <input type='mouse' bus='ps2'/><br>
            <graphics type='desktop' display=':0.0'/><br>
            <sound model='ac97'/><br>
            <video><br>
              <model type='vbox' vram='32768' heads='1'><br>
                <acceleration accel3d='yes' accel2d='yes'/><br>
              </model><br>
            </video><br>
          </devices><br>
        </domain><br>
        <br>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
libvirt-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/libvirt-users">https://www.redhat.com/mailman/listinfo/libvirt-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>