What is the best way to port forward to a QEMU Guest so that one may access it remotely via specific port? I was looking to set this permentently and i cannot find a reasonable source on google that applies to all KVM variants for setting a qemu:arg with hostfwd in the XML file. This doesn't write it for each boot https://wiki.qemu.org/Documentation/Networking
-
what do you mean by applies to all KVM variants? in what way are there variants of KVM?– Jaromanda XCommented May 29 at 1:23
-
The way I do this with Hyper-V and with VMware and would do it with Virtual Box is to set the Guest to Bridged Networking so that it has an IP the same way as the host machine (normally the host machine router). That is the best way and so far as I know the only practical way to address a guest machine from a remote device.– anonCommented May 29 at 1:41
-
Are you actually using libvirt instead of qemu directly? Since you mentioned XML.– Tom YanCommented May 29 at 3:38
-
@JaromandaX i guess i should say what ever the difference between vmware, proxmox and qemu is. I believe they are all using kvm or based on kvm?– nicholascox2Commented May 29 at 15:02
-
@John Ok but once i do that how do i allow the remote user to reach the virtual guest? Last time i tried that iirc i still couldn't reach the guest even after verifying config with firewall-cmd and iptables. I'm happy to try again though.– nicholascox2Commented May 29 at 15:04
|
Show 5 more comments