Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
YannV
New Contributor

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 Solution
YannV
New Contributor

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


View solution in original post

1 REPLY 1
YannV
New Contributor

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


Labels
Top Kudoed Authors