proxmox 1.7 disk & nics hotplug patch v5

spirit

Distinguished Member
Apr 2, 2010
6,813
1,001
273
www.groupe-cyllene.com
Hi,
i'm starting a new topic to follow this old post:

http://forum.proxmox.com/threads/5020-PATCH-HACK-hotplug-support-for-disk-and-nic?highlight=hotplug


so this is the v5 of my hotplug patch,

i had tested it with win2003,win2008r2 and debian squeeze (2.6.32 kernel).

you can hotplug/hot-unplug:

- virtio disk
- virtio nics


for linux vm, you need to load 2 modules in your guest:

acpiphp
pci_hotplug

so add it in your /etc/modules.



for your existing vms, you need to modify your vm config file ( /etc/qemu-server/vmid.conf),and add an nic id to your nic config.


so by exemple:

vlan2: virtio=0E:AA:1C:92:89:47,virtio=0E:AA:1C:92:89:49
vlan13: virtio=0E:AA:1C:92:89:50

become

vlan2: virtio=0E:AA:1C:92:89:47=nic1,virtio=0E:AA:1C:92:89:49=nic2
vlan13: virtio=0E:AA:1C:92:89:50=nic3

for new vms, the gui do it for you ;)



you also need to replace your /etc/pve/qemu-server.cfg with the one of my package.
it fixes the pci address slots of each devices.
keyboard config is in french in the config file, so change it if you need ;)


one note:

in windows vms, network config is associated with network card pci slot address.
so maybe, with my patch, you'll lose your network config in windows vm.
you can change pci slot address in /etc/pve/qemu-server.cfg



I have made 2 packages,

- 1 with diff files
- 1 with full replace files


So, now,test it, and tell me if it's works for you !


SPiRiT
----------
 

Attachments

  • proxmox-hotplug-1.7-v5.zip
    33.3 KB · Views: 6
  • proxmox-hotplug-1.7-v5-patchfiles.zip
    7.5 KB · Views: 6

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!