This works:

rumprun kvm -M 160 -I 'qnet0,vioif,-net user' -g '-redir tcp:3000::3000' -W
qnet0,inet,dhcp -i build/out/Release/node.bin

... and the Express Hello World! example appears in my browser on
localhost:3000.

I'll try the ISO method next.

On 7 October 2015 at 22:55, Antti Kantee <[email protected]> wrote:

> On 07/10/15 21:45, David Halls wrote:
>
>> I have the Express hello world example running under KVM. It listens on
>> port 3000. But I'm having trouble figuring out how to get port forwarding
>> from my host working. What's the magic incantation?
>>
>
> Do you mean qemu's "-net user"?  You'd need something like the following
> arguments to rumprun:
>
>         -I nic,vioif,'-net user,hostfwd=<whatever>' -W nic,inet,dhcp
>
> Untested & not guaranteed to work ... but it might.  I usually just
> configure a tap interface on my host and then configure an IP address
> manually on both sides, using the following as the rumprun incantation:
>
> pooka@watou:~$ echo "${RRNET[@]}"
> -I tag,vioif,-net tap,ifname=tap0,script=no -W tag,inet,static,10.0.0.2/24
> -W tag,inet6,static,fd00::2/64
>
> The tool is really quite silly in how it attempts to abstract and fails.
> We're probably getting rid if it at some point and just letting you run
> qemu or whatever directly without obfuscation and confusion (or at least
> I'd like to see that happen).
>
>

Reply via email to