Libro sobre Proxmox maestria
Chapter 2
Arguments in a virtual machine configuration file is a way to extend the capability of the VM beyond just the default. For example, by default, sound is not enabled for a VM. In order to give a VM the ability to play audio/video, an argument has to be passed through the VM configuration file. The following are some examples of arguments that can be used in a Proxmox VM configuration file. Arguments can be added in the following format:
args: -<device_arguments_1> <device_arguments_2> ballon:
bootdisk: virtio0 cores: 1 ide2: none,media=cdrom
Enable serial device in VM by using the following code:
args: serial /dev/ttyS0
Enable sound in Windows XP VM by using the following line:
args: -device AC97, addr=0x18
Enable sound in Windows 7 VM by using the following code:
args -device intel-hda, id-sound5,bus=pci.0,addr=0x18 -device had- micro,id=sound5-codec0, bus-sound5.0, cad=0 -device hadduplex, id-sound5-codecl, bus-sound 5.0, cad=1
Enable UUID in VM using the following line:
args -uuid f1234a93-20d32-2398-129032ds-2322
Enables support for alo-native in VM as follows:
args: -drive file=/dev/VGGRP/VOL, if=virtio, index=1, cache=none,aio=native
The following is the OpenVZ configuration file of the container #121 that we created in Chapter 1, Dive into the Virtual World with Proxmox.