Libro sobre Proxmox maestria
Proxmox Under the Hood
The vmid.conf file stores configuration information for each virtual machine and is located under /etc/pve/nodes/<name>/qemu-server/<vmid.conf >. The folder structure divides all VM configuration files into categories based on nodes. For example, the configuration file for our VM with ID# 101 is stored in the following location:
When we migrate a VM from one node to another, Proxmox just moves the configuration file to the destination node. If the VM is powered on during the migration, then the entire memory content of the VM is also migrated to the destination node. For our VM 101, if we migrate it to the second node in the cluster, which is pmxvm02, then the location of the 101.conf file would be as follows:
If a node with virtual machines in it becomes inaccessible, simply moving the <vm_id>.conf files to a different node will allow accessing all the VMs from a different node. Any files of the folder inside /etc/pve can be seen from any node in the cluster.
We will now look at a <vm_id>.conf file itself to see what makes up a virtual machine behind the scenes. This configuration file follows a simple OPTION: value format. The following is the configuration file for our VM 101:
ballon: 512 bootdisk: virtio0 cores: 1 ide2: none, media=cdrom kvm: 0 memory: 1024 name: pmxms01 net0: e1000=42:5C:EB:2A:5F:05, bridge-vmbr0 ostype: 126 sockets: 1 virtio0: vm-nfs-01:101/vm-101-disk-1.qcow2, format=qcow2, size=15G