[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-discuss] Virtual Machine Starts Without Internet Connection
From: |
Jaap Crezee |
Subject: |
Re: [Qemu-discuss] Virtual Machine Starts Without Internet Connection |
Date: |
Sat, 22 Dec 2018 08:23:49 +0000 |
User-agent: |
K-9 Mail for Android |
Hi,
This works for me:
"-netdev user,id=mynet,hostfwd=tcp::2222-:22,hostfwd=tcp::8888-:80"
That will also"route" port 2222 to the VM port 22 and 8888 to 80.
Regards
Jaap
On December 22, 2018 12:09:29 AM GMT+00:00, l <address@hidden> wrote:
>I tried both of these to start my virtual machine and it start
>correctly without any internet connection.
>
>qemu-system-x86_64 -m 256 -hda debian_testing_64.qcow -net
>nic,model=ne2k_pci -net user,hostfwd=tcp::9022-:22 -enable-kvm
>
>qemu-system-x86_64 -m 1024 -boot d -enable-kvm -net nic -net user -hda
>debian_testing_64.qcow
>
>Thanks