# Location of virtual machine data

Hey!

I was wondering where the files of a particular virtual machine are stored. If I am right, then they should be stored in the image from which I booted them, right?

If they are stored in the image from which I boot the virtual machine, then I am not getting new images when I am creating a new virtual machine.

If not please, guide me as to where these files are stored. I wanted to know the size of these files via ceilometer.

UPDATE: One of the important locations I found was /var/lib/nova/instances/. Whenever I create a new VM, a new folder is created here and a file named "disk" is created inside this folder. However, whenever I write a file: small or large, there seems to be no change in the file-size of "disk", so I am not pretty sure whether the VM data too is stored in this file.

edit retag close merge delete

Sort by » oldest newest most voted

I assume you are you are using the default disk options , if it is, you can use qemu-img info disk-uuid to see the actual size of the disk . this is the data you creates in the instance.

more

The size of the file remains constant even if a create a large file inside the VM, so is it like it takes time to sync those files to this file?

( 2013-07-19 04:44:45 -0600 )edit

I have an windows guest image and in that image I am copying a large file of aprox 2GB. The dimension of the file before the copy operation is 10GB and after the copy 12GB. I am using this command to check this: qemu-img info ../instance-0000048a/disk

( 2013-07-19 06:19:33 -0600 )edit

# Get to know Ask OpenStack

Resources for moderators