Hello,
I am currently developing a Bash script which aims to provide users several virtual machines. These machines must be reachable through the network.
After preparing and installing a first virtual machine, I create several backing files in order to start several identical virtual machines.
The problem: I want my virtual machines to be reachable on the network. But when they have completed their boot, no network interface is configured with the exception of the loopback.
I tried to start my virtual machines using the user network, but I succeed in configuring only one virtual machine based on backing file. Others have only the loopback interface configured.
Hence my questions:
Is it possible to assign IP address to virtual machine based on backing file ? (Having conducted tests through vnc I would say yes)
Is it possible to mount a backing file image to create a file enabling to configure the network via dhcp when virtual machine is booting (eg: ifcfg-eth0) ?
Are there any other way from a Bash script to configure the network of a virtual machine run from a backing file.
I hope I was clear on the problem I have, do not hesitate to ask me for details.
Thank you.
--
Regards.
Simon POULLEAU.