TX2 - Jetpack 3.2 flash failed

I am trying to flash Jetpack 3.2 on to TX2. I have ubuntu16.04 host, Tx2 gets recognized and shows up in lsusb.

Flash works until [ 14.0528 ] Writing partition APP with system.img

it errors out as below

[ 14.1009 ] [… ] 025%
[ 14.1009 ] [… ] 025%
[ 14.1009 ] [… ] 025%
[ 14.1009 ] [… ] 025%
[ 14.1009 ] [… ] 025%
[ 14.1009 ] [… ] 025%
[ 14.1009 ] [… ] 025%
[ 14.1009 ] [… ] 025%
[ 14.1009 ] [… ] 025%
[ 1234.6186 ]
Error: Return value 3
Command tegradevflash_v2 --pt flash.xml.bin --create
Failed flashing t186ref.

I can send the complete log file. There are no space constraint in the box.

Filesystem Size Used Avail Use% Mounted on
udev 2.0G 0 2.0G 0% /dev
tmpfs 395M 6.1M 389M 2% /run
/dev/sda1 193G 25G 159G 14% /
tmpfs 2.0G 188K 2.0G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
tmpfs 395M 48K 395M 1% /run/user/1000

cs@csvm:~$ lsusb
Bus 001 Device 004: ID 0955:7c18 NVidia Corp.
Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
flash_os_tx2.log (246 KB)

I have attached the flash logs for reference.

This error is reproducible from other my another mac as well.

You’re trying to flash from VirtualBox. This is not supported, and know to cause trouble.

Try booting from a USB “live” drive, and flash from running Ubuntu native, instead.

Keep in mind that not all “live” drives have a kernel with loopback support. In some cases this will fail at generating the rootfs image. Also, if using a live drive, keep in mind that the file system type from which the system image is generated must be a native Linux type…FUSE and some others do not support preserving Linux permissions.

You can check if loopback is supported with “sudo losetup --find”, and then see if the reported first unused loop device shows up as “/dev/loop0” (or whichever number).

You can check file system type if you cd to where the software is being installed on the host and running “df -H -T .” (the “.” is important).

thanks for the inputs. I got it flashed using VMWare Fusion