Alex Balgavy

Just some stuff about me.

Here's my dotfiles repository.

Check out my blog.

My keys: PGP, SSH

My crypto wallets (BTC, XMR)


What links here:

Make a file accessible/mountable in VM (Virtualbox)

  1. Create loopback device: losetup -fP /path/to/file
  2. Create raw disk: VBoxManage internalcommands createrawvmdk -filename file.vmdk -rawdisk /dev/loopX
  3. Check permissions, set all readable - dev and vmdk (remember to reset if not deleting)
  4. Add vmdk as disk to VM
  5. Use it as a block device in VM
  6. losetup -d /dev/loopX