---------- Forwarded message ---------
De: Marcos Jean Sampaio <mjs...@gmail.com>
Date: sáb., 18 de mai. de 2024 às 18:02
Subject: spapr-vlan hotplug
To: <c...@kaod.org>, <danielhb...@gmail.com>



Hello guys,

First, I would like to thank you for making this software possible! Many
thanks!

I just installed and ran AIX and PowerHA on QEMU successfully using virsh
and virt-manager. I shared my experience on Youtube videos and also on my
github.
It worked pretty well after some adjustments but something that I still
can't do is hotplug a network interface. I've tried using virtio and
spapr-vlan but in both cases the new device is not hotplugged. In the case
of virtio it allows me to add it but isn't recognized after cfgmgr. In the
case of spapr-vlan it just will be recognized and active in the next boot.

virsh attach-device --live aix_7200-04-02-2027_node01 netdev.xml
error: Failed to attach device from netdev.xml
error: internal error: unable to execute QEMU command 'device_add': Device
'spapr-vlan' can't go on PCI bus

netdev.xml content
<interface type="network">
  <source network="default" bridge="virbr0"/>
  <target dev="vnet5"/>
  <model type="spapr-vlan"/>
  <alias name="net5"/>
  <address type="spapr-vio" reg="0x00005000"/>
</interface>


I also tried add it using qemu-monitor and have the following message:

virsh qemu-monitor-command aix_7200-04-02-2027_node01 --hmp "device_add
spapr-vlan,netdev=hostnet5,id=net5,mac=56:44:45:30:31:55,reg=0x00005000"
Error: Bus 'spapr-vio' does not support hotplugging

Is there any other way to do this or it isn't working for network
interfaces? For disks it is working very well. Below you have my
environment details.


My videos
https://www.youtube.com/playlist?list=PLWNnbCzUTMSY6c6rjKtGuSAzHCPONExv2

https://github.com/mjsamp/AIX-on-qemu-ppc64

Environment
Lenovo ThinkPad E480 Intel® Core™ i3-8130U CPU @ 2.20GHz × 4 8G Mem
XrayDisk 240GB SSD
Ubuntu 20.04.6 LTS (Focal Fossa) 64-bit
Kernel Linux 5.4.0-181-generic x86_64
QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.28)
libvirt QEMU Driver 6.0.0-0ubuntu8.20
AIX aix_7200-04-02-2027_1of2_072020.iso

Regardings,

Marcos Jean Sampaio

Reply via email to