problem hotplug NIC "400 Parameter verification failed"

Nov 20, 2012
29
3
23
Hello!

I can not hotplug add NIC to vm

Code:
400 Parameter verification failed
VM 227 qmp command failed - VM 227 qmp command 'netdev_add' failed - Device 'tap' could not be initialized

After I turn off vm nic added without problem.

# qm config 227
Code:
qm config 227
bootdisk: virtio0
cores: 2
ide2: none,media=cdrom
memory: 4096
name: pg-test
net0: e1000=AE:40:EE:B3:AD:53,bridge=vmbr300
numa: 0
ostype: l26
smbios1: uuid=df231fb6-060c-4ffb-a8eb-6b734ffb1466
sockets: 1
virtio0: vm_shared2-1:vm-227-disk-1,cache=writethrough,size=32G
virtio1: vm_shared2-1:vm-227-disk-2,cache=writethrough,size=32G

# brctl show
Code:
bridge name     bridge id               STP enabled     interfaces
vmbr3           8000.a0d3c1f7fd79       no              eth1.3
                                                        tap144i1
vmbr300         8000.a0d3c1f7fd79       no              eth1.300
                                                        tap122i0
                                                        tap127i0
                                                        tap128i0
                                                        tap131i0
                                                        tap200i0
                                                        tap201i0
                                                        tap212i0
                                                        tap214i0
                                                        tap227i0
vmbr301         8000.a0d3c1f7fd79       no              eth1.301
                                                        tap133i0
vmbr312         8000.a0d3c1f7fd79       no              eth1.312
                                                        tap219i0

#qm set 227 -net1 e1000,bridge=vmbr3
Code:
update VM 227: -net1 e1000,bridge=vmbr3
400 Parameter verification failed.
net1: hotplug problem - VM 227 qmp command 'netdev_add' failed - Device 'tap' could not be initialized

# pveversion -v
Code:
proxmox-ve-2.6.32: 3.4-156 (running kernel: 2.6.32-39-pve)
pve-manager: 3.4-6 (running version: 3.4-6/102d4547)
pve-kernel-2.6.32-39-pve: 2.6.32-156
pve-kernel-2.6.32-37-pve: 2.6.32-150
pve-kernel-2.6.32-26-pve: 2.6.32-114
lvm2: 2.02.98-pve4
clvm: 2.02.98-pve4
corosync-pve: 1.4.7-1
openais-pve: 1.1.4-3
libqb0: 0.11.1-2
redhat-cluster-pve: 3.2.0-2
resource-agents-pve: 3.9.2-4
fence-agents-pve: 4.0.10-2
pve-cluster: 3.0-17
qemu-server: 3.4-6
pve-firmware: 1.1-4
libpve-common-perl: 3.0-24
libpve-access-control: 3.0-16
libpve-storage-perl: 3.0-33
pve-libspice-server1: 0.12.4-3
vncterm: 1.1-8
vzctl: 4.0-1pve6
vzprocps: 2.0.11-2
vzquota: 3.1-2
pve-qemu-kvm: 2.2-10
ksm-control-daemon: 1.1-1
glusterfs-client: 3.5.2-1
 
Hello!

I can not hotplug add NIC to vm

Code:
400 Parameter verification failed
VM 227 qmp command failed - VM 227 qmp command 'netdev_add' failed - Device 'tap' could not be initialized

...

Looks like the VM has no NIC, therefore no additional NIC can be hot-plugged.

Try hot-plugging a second NIC.
 
Strange.
I turn off vm and turn on again and I hotplug added nic without error.
But now I can not hotplug remove NIC, I receive error "400 Parameter verification failed"
 
SLES 11 SP3 & Windows 2008 R2

I am performing tests with SLES I load module and NIC plug & unplug without error

Thanks

I check with Windows and it`s work.

Early I could not plug nic to my windows vm and I had turn off/on vm for add nic
And I begin test with SLES vm :(
 
You need to add the MAC address and it will update the existing network card vs adding a new one with new mac.
 
Hello!

I can not hotplug add NIC to vm

Code:
400 Parameter verification failed
VM 227 qmp command failed - VM 227 qmp command 'netdev_add' failed - Device 'tap' could not be initialized

After I turn off vm nic added without problem.

I had this problem when I used an inactive bridge for the new nic. You can add such nic when the VM is off, but it probably won't boot :)
 

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!