qemu problem

Max Filippov jcmvbkbc at gmail.com
Sat Apr 18 23:44:22 EDT 2015


On Sun, Apr 19, 2015 at 6:38 AM, Max Filippov <jcmvbkbc at gmail.com> wrote:
> On Sun, Apr 19, 2015 at 5:14 AM, Mustafa Hussain
> <mustafa.hussain93 at gmail.com> wrote:
>> Hi,
>> i'm trying to run kernel with qemu but i get some errors while running this
>> command
>> "
>> qemu-system-x86_64  --nographic -M pc -no-reboot  -net nic,model=e1000  -net
>> nic,vlan=0 -net user,hostfwd=tcp:17777:10.0.2.15:22    -hda hd.img -append
>> "root=/dev/hda1 debug rw console=ttyS0,115200" -s -kernel
>> "
>> error says that
>> qemu-system-x86_64: -net user,hostfwd=tcp:17777:10.0.2.15:22: invalid host
>> forwarding rule 'tcp:17777:10.0.2.15:22'
>
> From 'man QEMU' hostfwd has the following format:
>
> hostfwd=[tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport
>
> but you have a colon instead of a dash.

...and you're missing an additional colon before the first port number.

-- 
Thanks.
-- Max



More information about the Kernelnewbies mailing list