Where are storage files on VM?

Adrian.michel

New Member
Jan 10, 2017
9
0
1
33
Hey guys,
I´have Installed Debian V.8 on my Proxmox VM. Thw question is, where are the storage files of this installed Debian?
I was looking for them on "/var/lib/vz/images/...", but could not find anything.
As a matter of fact i am going to copy a file in Debian files and then install it, but as i said above, when i copy it with WinSCP, I could not find it on Debian files.

Did i describe it clearly?

Thanks
Adrian
 
  • Like
Reactions: Adrian.michel
As dominik said, the hard disk of a VM is not always a file on the file system. It can be something like a logical volume, which is like using a partition on your hard drive.

For a given VM you find the backing file or logical or device by using the following commands:

Display the boot disk configuration of my VM 403
qm config 403 | egrep '(sata|ide|scsi)0'

bootdisk: scsi0
scsi0: pvevgi:vm-403-disk-1,size=9G

find which partition or file is that
pvesm path pvevgi:vm-403-disk-1

/dev/vgi/vm-403-disk-1

check the content
file --special-files --dereference /dev/vgi/vm-403-disk-1

/dev/vgi/vm-403-disk-1: DOS/MBR boot sector

now going back to your initial question, if you need to copy something inside the VM, you would probably need to to configure the network and SSH *inside* the VM, and copy the files with winscp *to the VM*, not to the Proxmox host.
 
  • Like
Reactions: Adrian.michel

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!