LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   A strange problem using QEMU (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/a-strange-problem-using-qemu-809000/)

tkmsr 05-20-2010 01:00 AM

A strange problem using QEMU
 
I am facing a strange problem during the installation of CentOS using QEMU.
Scenario:
I have to install it on CentOS Virtual Machine on a virtualization server.
IP of server is 192.168.1.6 (Enabled X forwarding)
Ip of my laptop from where I will do an SSH is 192.168.1.20


I am using a wifi connection on LAN to access the server.

I am not using the GUI based installer it is a text based install.

I do an SSH from my ubuntu Laptop to the server where I have to do installation.
Code:

ssh username@192.168.1.6 -X
and then type a command on terminal ( I am logged on to 192.168.1.6)
Code:

qemu-system-x86-64 -hda /root/hd.img -boot -d /dev/cdrom -m 1024
I get a QEMU GUI window open on my laptop.

Now to begin CentOS installation you have to go through a lot of screens which Anaconda installer asks you such as network information package selection etc etc.




If I press a key on Ubuntu laptop (I am accessing the server via SSH from Ubuntu Laptop X Forwarding Enabled)
after some time I see the effect in QEMU screen.
There is some delay and after this delay the effect of pressing the key is as if I
have clicked multiple times.


For example :
Code:

If  I have to enter the set the IP  address of virtual machine as
192.168.1.2 .

While typing 192.168.1.2
it types
199999999999999999 and then after some time it releases the cursor to
type any thing.This number 9 is not specific it can be any number while typing or any alphabet or alphanumeric character.

Example 2
Code:

Moving ahead in  installation :

If I have to navigate in ncurses based menu
I have to make a choice of entering time zone


I scroll down (I do not have GUI just text based install on SSH)
by pressing an arrow key once it will randomly go to many positions lower than the desired ones.


Example 3
Code:

During making menu choices in some step like reading a license agreement.
If I choose yes it clicks many times automatically yes and goes back
to previous menu and then comes again to forward menu so back and
forth switching between menus.


Which makes it very difficult to move ahead it has been two hours but
I could not proceed at all with this.


More over the response of pressing any key (like Enter) and its effect on remote machine is coming very slow.

If I am pressing any key stroke from my laptop I have to wait for a long time to get
the response and move to another menu.


Example 4
Code:

Another example a text based ncurses screen where I have to select timezone
I press down key one time and I see it scrolls down to the complete list and I can never reach the right time zone. If I use a GUI  it is very very slow and have to wait for a very long time
for the response to come.

For example clicking on License agreement you agree yes
to do so it takes a very long time which it is not taking in text mode
but the above problem of seeing the effect multiple times in an
undesired way and slow response is there.

This is not a consistent situation but occurring at irregular
intervals.This has made my work very slow.

Is there any way to get rid of this?

I am doing this on an SSH connection from a Laptop.The target machine is a Dell PowerEdge R710 server using Wifi for this SSH and the machine where I am having QEMU running is having debian lenny as Dom0.

has 8 GB or RAM on it.My laptop has 3 GB of RAM.kqemu is installed on the said Dell server.
How can I get rid of this?

alli_yas 05-20-2010 05:20 AM

Can you please format your post properly and put output/code into the appropriate tags?

Its very difficult to follow your post and what your problem is.

tkmsr 05-20-2010 06:05 AM

Done on your suggestion.

alli_yas 05-20-2010 07:44 AM

Quote:

Done on your suggestion.
Thanks :)

Quote:

Wifi for this SSH and the machine where I am having QEMU running is having debian lenny as Dom0.
The only thing I can think of is perhaps your Wifi is not consistent for your SSH to the machine? When you SSH to the Dom0 machine; typing commands at the terminal - do they also have similar latency?

tkmsr 05-20-2010 08:37 AM

Quote:

Originally Posted by alli_yas (Post 3975407)
Thanks :)



The only thing I can think of is perhaps your Wifi is not consistent for your SSH to the machine? When you SSH to the Dom0 machine; typing commands at the terminal - do they also have similar latency?

Yes some times.I have finally been able to install CentOS
on remote server using SSH.
A snapshot is uploaded here
It is loading grub on a remote server.The problem seems to be inconsistent wifi connection only.


All times are GMT -5. The time now is 05:59 PM.