Re: 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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



于 2011年08月26日 20:27, bin liu 写道:
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.
It reports the error that can't get device from device.xml

Hi,

What's the exact error?

here is my xml file for device(device.xml):
<disk type='block'>
        <driver name='phy'/>
                <source dev="/home/lb/iscsitest/vdisk.img"/>
        <target dev='sdb' bus='usb'/>
</disk>
and the xml file for the vm:
 
<domain type='vbox'>
  <name>winxp_3D</name>
  <uuid>d2542bf2-3d56-41fa-a048-4f9a7ed3cf4a</uuid>
  <memory>787456</memory>
  <currentMemory>787456</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='x86_64'>hvm</type>
    <boot dev='fd'/>
    <boot dev='cdrom'/>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
  </features>
  <clock offset='localtime'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>destroy</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <disk type='file' device='disk'>
      <source file='/root/VirtualBox VMs/winxp_3D/winxp_3D.vdi'/>
      <target dev='hda' bus='ide'/>
    </disk>
    <interface type='bridge'>
      <mac address='08:00:27:6f:c6:4f'/>
      <source bridge='tap0'/>
      <model type='Am79C973'/>
    </interface>
    <input type='mouse' bus='ps2'/>
    <graphics type='desktop' display=':0.0'/>
    <sound model='ac97'/>
    <video>
      <model type='vbox' vram='32768' heads='1'>
        <acceleration accel3d='yes' accel2d='yes'/>
      </model>
    </video>
  </devices>
</domain>

_______________________________________________ libvirt-users mailing list libvirt-users@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvirt-users


[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux