Assume that you know the name-label of the VM.
Create a network for the new interface to be attached to, and returns the network-uuid
Find out vm-uuid of the VM
Create eth1 interface for the VM, and gets the uuid of the new interface
Hot-plug the created interface to the VM
Now eth1 is visible from inside the VM.
You still need to configure eth1 from within VM to make it active.
Subscribe to Xmodulo
Do you want to receive Linux FAQs, detailed tutorials and tips published at Xmodulo? Enter your email address below, and we will deliver our Linux posts straight to your email box, for free. Delivery powered by Google Feedburner.