I'm reading the TurnKey Linux 14 documentation and it states that in order to preseed values for an appliance, you have to write them to the file system before the machine boots for the first time.The most obvious way to do this that I can think of, is to boot the VM to a Live CD and mount the file system in question in order to write the file.  Does VirtualBox contain another way of doing this? For instance using a bash utility of some sort to write an external file to the existing file system?  I believe there was a way to accomplish this on VMWare using vSphere, which is why I am asking.
How can you write to a file system before booting using VirtualBox?
filesystems;mount;virtualbox;virtual machine;turnkey
You can use libguestfs tools to access filesystems in a virtual machine image.mkdir ~/mntguestmount -a /path/to/vm-image.vdi -m /dev/sda1 ~/mntedit files fusermount -u ~/mntLibguestfs uses QEMU, which may use KVM. KVM and VirtualBox cannot be used at the same time. If you have VirtualBox running, either close it and make sure that the kvm kernel module is loaded, or arrange to run QEMU without KVM. You can make QEMU avoid KVM (slower, but not in a way that matters to just mount the filesystem and edit a few files) by setting LIBGUESTFS_BACKEND_SETTINGS=force_tcg in the environment.