qemu-discuss
[Top][All Lists]
Advanced

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

Re: boot from usb-host device


From: Thomas Huth
Subject: Re: boot from usb-host device
Date: Mon, 14 Aug 2023 13:03:54 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

On 10/08/2023 09.30, José Ramón Muñoz Pekkarinen wrote:
     Hi,

     I'm testing to boot a virtual machine from an
usb device on the host using usb-host device.
The bios seems not to find the usb device and
try alternatives methods to boot until all fail. Setting
-boot menu=on, the available options doesn't list
any usb drive. Is this somehow possible or am I
doing something terribly wrong? The virtual machine
command line follows:

/usr/bin/qemu-system-x86_64 -enable-kvm -M q35 \
        -vga none -display gtk,gl=on -cpu host -smp 8,cores=8,threads=1 \
        -m 4G -mem-path /dev/hugepages -L /usr/share/qemu -full-screen \
        -global ICH9-LPC.disable_s3=1 -global ICH9-LPC.disable_s4=1 \
        -device virtio-vga-gl \
        -device qemu-xhci,id=xhci -device usb-tablet \
        -device usb-host,vendorid=0x20a0,productid=0x4109 \
        -device usb-host,vendorid=0x1050,productid=0x0407 \
        -netdev user,id=user.0 -device virtio-net-pci,netdev=user.0 \
        -device virtio-serial \
        -chardev
socket,path=/tmp/tails-virtio-serial,server=on,wait=off,id=tails-virtio-serial
\
        -device 
virtserialport,chardev=tails-virtio-serial,name=org.qemu.guest_agent.0

     The device to boot is the usb-host 20a0:4109.

     Thanks!

I've never tried, but you should maybe add a bootindex to the device that you want to boot from:

 -device usb-host,vendorid=0x20a0,productid=0x4109,bootindex=1

 HTH,
  Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]