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
----------
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
----------