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' qemu-system-x86_64: -net user,hostfwd=tcp:17777:10.0.2.15:22: Device 'user' could not be initialized any help ?
On 2015-04-18 10:14 PM, Mustafa Hussain 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'
qemu-system-x86_64: -net user,hostfwd=tcp:17777:10.0.2.15:22: Device 'user' could not be initialized
any help ? This looks like a tcp forward rule being wrong for qemu in its configuration files. If you can send the config files for your configured qemu I may be able to help. Nick
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
On Sun, Apr 19, 2015 at 5:14 AM, Mustafa Hussain <mustafa.hussain93@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. -- Thanks. -- Max
On Sun, Apr 19, 2015 at 6:38 AM, Max Filippov <jcmvbkbc@gmail.com> wrote:
On Sun, Apr 19, 2015 at 5:14 AM, Mustafa Hussain <mustafa.hussain93@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
@nick i didn't found the configuration file, is it a .config file ? @max i didn't understand, what i should type exactly to run qemu? thanks in advance. On Sun, Apr 19, 2015 at 5:44 AM, Max Filippov <jcmvbkbc@gmail.com> wrote:
On Sun, Apr 19, 2015 at 6:38 AM, Max Filippov <jcmvbkbc@gmail.com> wrote:
On Sun, Apr 19, 2015 at 5:14 AM, Mustafa Hussain <mustafa.hussain93@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
thank you everything works fine. On Sun, Apr 19, 2015 at 8:40 PM, Max Filippov <jcmvbkbc@gmail.com> wrote:
On Sun, Apr 19, 2015 at 5:36 PM, Mustafa Hussain <mustafa.hussain93@gmail.com> wrote:
@max i didn't understand, what i should type exactly to run qemu?
-net user,hostfwd=tcp::17777-10.0.2.15:22
-- Thanks. -- Max
participants (3)
-
Max Filippov -
Mustafa Hussain -
nick