I struggle with the qemu example (wiki.ipfire.org - QEMU).
I installed my IPfire on HW and installed 2 network cards. One NIV for red, one NIC for green. There is currently no orange or blue. VLANS are planned, but not yet implemented.
Now I would like to use the free capacities of the Ipfire HW for further services.
The first goal is to run a virtual Linux (Ubuntu) on IPfire that provides services for the green zone.
So I have installed qemu and created a virtual disk:
qemu-img create -f vmdk /var/lib/libvirt/filesystems/ubuntu.vmdk 1200000
I was able to start the VM:
qemu -vnc :1 -hda /var/lib/libvirt/filesystems/ubuntu.vmdk -cdrom /tmp/ubuntu-22.04.3-live-server-amd64.iso -m 2048 -net nic -net user -boot d -usbdevice tablet &
Then install the OS via vnc and reboot without CD:
qemu -vnc :1 -hda /var/lib/libvirt/filesystems/ubuntu_pihole.vmdk -m 1152 -net nic -net user -boot d -usbdevice tablet &
Until here everything is fine. The VM also has internet access; although I don’t know how, it doesn’t seem to have received an address from DHCP:
$ hostname -i
But I don’t know how to proceed now. According to the instructions, the way differs depending on whether you have HW-NIC or not. But what is meant by this? A separate NIC for the VM, or in the host?
If that were done, the question would be how I can start the VM automatically. Do I necessarily need the virt-manager for this? If so, don’t I have to install it on my desktop PC to use the UI?
The next step would then be a separate VM that provides services for the internet (i.e. the red interface).
But first things first. First, straighten out the network connection for the first VM.
Can anyone help me what to do now?