Location of virtual machine data

asked 2013-07-18 00:53:25 -0500

Jobin gravatar image

updated 2013-07-18 07:48:50 -0500

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 flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-07-19 03:59:22 -0500

Yaguang gravatar image

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.

edit flag offensive delete link more

Comments

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?

Jobin gravatar imageJobin ( 2013-07-19 04:44:45 -0500 )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

gabriel_staicu gravatar imagegabriel_staicu ( 2013-07-19 06:19:33 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2013-07-18 00:53:25 -0500

Seen: 1,013 times

Last updated: Jul 19 '13