Score:0

how can I boot from usb device in libvirt qemu machine?

de flag

I pass-through a usb device like this:

<hostdev mode="subsystem" type="usb" managed="yes">
  <source>
    <vendor id="0x067b"/>
    <product id="0x2731"/>
    <address bus="2" device="11"/>
  </source>
  <alias name="hostdev0"/>
  <address type="usb" bus="0" port="4"/>
</hostdev>

If I boot from virtual cdrom, the lsusb can show my usb drive without any problem.

However, I cannot see the device in qemu boot manager or in edk2 shell. the map -r show nothing. What did I do wrong here?

Score:0
de flag

ah, my bad. The USB controller was by default USB2, I just change it to USB3. Then it works.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.