Libro sobre Proxmox maestria
A Virtual Machine for a Virtual World
With default options added during the virtual machine creation process, the following code is what the VM configuration file looks like:
ballon: 512 bootdisk: virtio0 cores: 1 ide2: none, media=cdrom kvm: 0 memory: 1024 name: pmxUB01 net0: e1000=56:63:C0:AC:5F: 9D, bridge-vmbr0 ostype: 126 sockets: 1 virtio0: vm-nfs-01:102/vm-102-disk-1.qcow2, format=qcow2, size=32G
Now, at the bottom of the 102.conf configuration file located under /etc/pve/ nodes/<node_name>/qemu-server/, we will add the following option to enable hotplugging in the virtual machine:
hotplug: 1
Loading modules
Save the configuration file and power up the virtual machine.
To find out more details on the possible options available for Proxmox virtual machines, refer to Chapter 2, Proxmox Under the Hood, and visit Proxmox Wiki at https://pve.proxmox.com/ wiki/Manual:_vm.conf.
After the hotplug option is added and the virtual machine is powered up, it is now time to load two modules into the virtual machine, which will allow hotplugging a virtual disk anytime without rebooting the VM. Securely log in to VM or use the Proxmox GUI console to get into the command prompt of the VM. Then, run the following commands to load the acpiphp and pci_hotplug modules. Do not load these modules to the Proxmox node itself:
# sudo modprobe acpiphp
The acpiphp and pci_hotplug modules are two hot plug drivers for the Linux operating system. These drivers allow addition of a virtual disk image or virtual network interface card without shutting down the Linux-based virtual machine.