0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Ubuntu QEMU上のXP上で物理USBメモリを認識させる手順

Posted at

USBメモリの用意

USB3.2のUSBで試しており、XPから識別されずかなりはまりました。
XPで対応しているUSB2.0のものを用意します。
cgi-bin_mmwebwx-bin_webwxgetmsgimg_&MsgID=8735422469716070515&skey=@crypt_e58c0397_949466710b5c0c4eec77c69c18f1173b&mmweb_appid=wx_webfilehelper.jpeg

USBメモリ固有情報を確認

以下の命令を実行しidVendor及びidProductを確認します。
001:008のところはlsusbの結果を元に実際のBus及びDeviceの値を入れます。

lsusb

lsusb -v -s 001:008 | grep -E "idVendor|idProduct"

图片.png
图片.png

起動

vendorid及びproductidは先ほど確認した値を設定する

sudo qemu-system-i386 \
  -m 1024 \
  -hda xp.img \
  -boot c \
  -cpu host \
  -smp 2 \
  -net nic -net user \
  -vga std \
  -rtc base=localtime \
  -enable-kvm \
  -usbdevice tablet \
  -usb \
  -device usb-host,vendorid=0x048d,productid=0x1234

無事Eドライブとして認識された。
图片.png
图片.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?