I want to return to OpenWrt after a while with ipFire, but I have one NodeJS comms app (our corporate video conferencing app) which won't install in OpenWrt because there is no package that provides libdl.so (at least I haven't been able to find it). I'm running on a large x86 PC.
So my solution is to install Arch Linux as a VM under QEMU, as I know our app works (I had to do this on ipFire too).
But how do I do this with only qemu-system-x86_64? I've used this in the past without issue on several VPSs running Ubuntu and Arch, but on OpenWrt I cannot view the screen - I just see "VNC server running on ::1:5900" as the network doesn't load - it pops up in DHCP for about 3 seconds and then dies.
I've got a VM of Debian and Ubuntu running using the Wiki page but I cannot get Arch to run the installer. I tried extracting the kernel from Arch's netboot ISO which starts to load and then kernel panics. I have to get Arch to load as it is the only approved flavour of Linux for our company due to the way we harden it.
I've tried adding -cdrom and various varieties of -drive but drawn a blank.
This is the code I'm using (adapted from my working version of the script on the Wiki)
qemu-system-x86_64 -enable-kvm -cpu host -smp 2 -m 4G \
-cdrom arch.iso \
-drive file=arch.qcow2,if=virtio \
-device virtio-net-pci,mac=E2:F2:6A:01:9D:C9,netdev=br0 \
-netdev bridge,br=br-lan,id=br0 \
-nographic
I'm not familiar with qemu-system-x86_64 - I've always used libvirt - so I'm keen to learn. I'm obviously being dumb but I'm stumped so all help gratefully received.