Helpful ReplyHot!Simulate USB device in FortiOS VM64 QEMU

Author
YannV
New Member
  • Total Posts : 2
  • Scores: 0
  • Reward points: 0
  • Status: offline
2020/08/31 04:50:02 (permalink)
0

Simulate USB device in FortiOS VM64 QEMU

Hi,
 
We are builting a virtual lab with the wonderful "Eve-ng", and for being able to restore quickly a configuration, we would like to use the "USB Device" via "execute restore config usb <file>".
 
But we have to simulate the USB device through QEMU option.
 
Could someone help us on this topic ?
 
Thx.
#1
YannV
New Member
  • Total Posts : 2
  • Scores: 0
  • Reward points: 0
  • Status: offline
Re: Simulate USB device in FortiOS VM64 QEMU 2020/09/10 05:58:22 (permalink) ☄ Helpfulby Yurisk 2020/09/10 07:43:19
0
Good news, it's working with these QEMU options : 
 
Prepare image :
dd if=/dev/null of=fortigate_config_usb.img bs=1M seek=100
 
Format : 
mkfs.ext2 -F fortigate_config_usb.img
 
QEMU Options : 
-drive if=none,id=usbstick,file=/root/fortigate_config_usb.img -usb -device usb-ehci,id=ehci -device usb-tablet,bus=usb-bus.0 -device usb-storage,bus=ehci.0,drive=usbstick


#2
Jump to:
© 2020 APG vNext Commercial Version 5.5