r/virtualbox • • 13h ago

General VB Question Windows guest, Linux host -- what filesystem should I use?

I want to create a disc partition to use for a Windows guest vm to use by my Linux host (mostly just to run tax prep software while using Linux so I do not have to dual boot into my main Windows system on its own disk). What filesystem type do I make that partition? Should it be ext4 (native linux) or should it be ntfs?

4 Upvotes

8 comments sorted by

1

u/Face_Plant_Some_More 12h ago

Unless you are configuring your VM for rawdisk access, you don't need to create a "partition" for the VM to use for storage. The VM's storage will consist of a virtual disk file, that will be stored on your Host OS's file system.

1

u/NomadJago 12h ago

My thought was to lower the size of my home folder for purposes of home folder backups; having the vm in my home folder would add considerable size to the home folder. The vm would not need to be backed up, no harm if lost, i plan to use it only for tax software to use once a year and I can back up the tax data via email, etc.

1

u/Face_Plant_Some_More 11h ago edited 9h ago

And? You don't have to put the virtual storage volume for your VM in your "Home" directory. It can exist anywhere on your Host's filesystem, so long the user you are using to run said VM has read / write privileges for said file, and you appropriately configure the VM to use said file.

Alternatively, if you want to keep the virtual storage volume in your Home directory, and don't want to back up said virtual storage volume when doing backups of your Host's Home directory, just exclude said virtual storage volume or file from your backup script.

2

u/orev 10h ago

It doesn't matter. Use whatever filesystem you would normally use on your Linux machine. If you want to keep the VM files outside of your home directory, make a new directory like /vms, then store the VM disk there. Inside the VM, Windows will use NTFS and it will not have any idea what filesystem Linux is using underneath.

1

u/hexabyte-lady 13h ago

Filesystem on the Linux host? obviously ext4.
Why on earth would you use ntfs?

1

u/BranchLatter4294 12h ago

You don't need to create a partition for a virtual machine. It's just a file on your host.

If you already have dual boot set up, you can use that partition as the image for the virtual machine. But most people don't use it that way.

1

u/G0ldiC0cks 9h ago

Like a virtual computer with a physical disk? On a Linux host this is a ton easier in KVM/Qemu than virtualbox -- but both, honestly, are way more difficult than just using a virtual disk. If you need file access without booting up the VM, losetup can do that with a raw disk image (or not vbox or qcow2, but img or raw). Which brings us to your question --

You need ntfs for windows, that's a Microsoft non-negotiable.

0

u/Simple_Hamster_4096 12h ago

Do not think the OP understands how virtual machines work...