LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-01-2011, 11:41 PM   #1
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 36
how to see network speed of virtual linux machine?


After installing PV (Para virtual drivers) drivers I m not able to check the network speed of my Ethernet port.


Please check the output of mii-tool and ethtool.
Code:
# mii-tool eth0
SIOCGMIIPHY on 'eth0' failed: Operation not supported

Code:
# ethtool eth0
Settings for eth0:
        Link detected: yes
Distribution Details.
Code:
# lsb_release -a
LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: RedHatEnterpriseServer
Description:    Red Hat Enterprise Linux Server release 5.5 (Tikanga)
Release:        5.5
Codename:       Tikanga
Is there any other way of getting it?

Last edited by pinga123; 05-02-2011 at 12:37 AM.
 
Old 05-02-2011, 01:50 AM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Greetings!

Use "ethtool" as root, or with "sudo";

Code:
luser@server$ cat /etc/*release
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
luser@server$ sudo ethtool eth0 | grep -i speed
        Speed: 1000Mb/s
luser@server$

Last edited by xeleema; 05-02-2011 at 01:51 AM.
 
Old 05-02-2011, 02:14 AM   #3
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by xeleema View Post
Greetings!

Use "ethtool" as root, or with "sudo";

Code:
luser@server$ cat /etc/*release
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
luser@server$ sudo ethtool eth0 | grep -i speed
        Speed: 1000Mb/s
luser@server$
I m using root login only.
 
Old 05-06-2011, 04:21 AM   #4
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
This may be a symptom of running "ethtool" in this Virtual Machine.
By chance can you setup another Linux distribution in another Virtual Machine and test it?
Since you're using "ethtool" in the first place, I'm assuming you're using a Red Hat based distribution, so CentOS and Fedora may be good distributions to double-check with.
 
Old 05-06-2011, 07:33 PM   #5
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,299

Rep: Reputation: 102Reputation: 102
Hi All,

I am also looking for the network speed for my CentOS 5.6 x86 virtual machine.

I have checked in both CentOS/RHEL 5.6, they do not show network speed. Seems like there would be some other way to find in a Virutual Machine.

Also, dmesg | grep -i mbps OR dmesg | grep eth0

reveals nothing
 
Old 05-07-2011, 01:54 AM   #6
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
@pinga123 and @vikas027

You know what would be really cool guys? If you could mention what you're using to create / host these Linux Virtual Machines.

In no particular order, these are the one's I've had varying levels of experience with.
User-Mode Linux (UML)?
VMware Server?
VMware Workstation?
OpenVZ?
XEN Server?
lguest?
KVM (kernel-based Virtual Machine)
Linux-Vserver? (The closest thing to Solaris 10's "zones" I've seen yet.)
 
Old 05-07-2011, 02:16 AM   #7
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by xeleema View Post
@pinga123 and @vikas027

You know what would be really cool guys? If you could mention what you're using to create / host these Linux Virtual Machines.

In no particular order, these are the one's I've had varying levels of experience with.
User-Mode Linux (UML)?
VMware Server?
VMware Workstation?
OpenVZ?
XEN Server?
lguest?
KVM (kernel-based Virtual Machine)
Linux-Vserver? (The closest thing to Solaris 10's "zones" I've seen yet.)
Its a Oracle VM server using xen technology.

Last edited by pinga123; 05-07-2011 at 02:18 AM.
 
Old 05-07-2011, 02:24 AM   #8
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by vikas027 View Post
Hi All,

I am also looking for the network speed for my CentOS 5.6 x86 virtual machine.

I have checked in both CentOS/RHEL 5.6, they do not show network speed. Seems like there would be some other way to find in a Virutual Machine.

Also, dmesg | grep -i mbps OR dmesg | grep eth0

reveals nothing
Hi vikas if you are interested in speeding up your network speed or need to check the network speed with ethtool ,You may need to change the network driver as explained here.
By doing so i have successfully change network speed from 100mbps to 1000 mbps.
Just follow the steps mentioned in below article.
http://d-h-n.de/blog/?p=596
 
Old 05-07-2011, 03:22 PM   #9
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,299

Rep: Reputation: 102Reputation: 102
Thumbs up

Quote:
Originally Posted by pinga123 View Post
Hi vikas if you are interested in speeding up your network speed or need to check the network speed with ethtool ,You may need to change the network driver as explained here.
By doing so i have successfully change network speed from 100mbps to 1000 mbps.
Just follow the steps mentioned in below article.
http://d-h-n.de/blog/?p=596
Thanks Pinga,
Let me try this, I will post my results here.
 
Old 05-09-2011, 06:08 PM   #10
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,299

Rep: Reputation: 102Reputation: 102
Thumbs up Great !!

Quote:
Originally Posted by vikas027 View Post
Thanks Pinga,
Let me try this, I will post my results here.
Many thanks Pinga,

The steps mentioned in the link worked flawlessly.

Only thing to keep in mind is to have VMware Tools installed before following the steps mentioned in the link.

@xeleema: I am using VMware Workstation v7.1.4 build-385536

Last edited by vikas027; 05-09-2011 at 06:11 PM.
 
Old 05-10-2011, 01:41 AM   #11
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by vikas027 View Post
Many thanks Pinga,

The steps mentioned in the link worked flawlessly.

Only thing to keep in mind is to have VMware Tools installed before following the steps mentioned in the link.

@xeleema: I am using VMware Workstation v7.1.4 build-385536
Nice to hear that but VMware workstation is only associated with vmware .I did it on Oracle VM and it worked without any additional tool installed(In your case it is VMware tool.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] linux virtual machine does not get network d4v3 Linux - Networking 2 06-07-2011 03:47 PM
[SOLVED] Improving network speed to/from a virtual machine taylorkh Linux - Virtualization and Cloud 4 05-21-2010 03:36 PM
Network Installation of Red Hat on Virtual Machine? linuxsingh Red Hat 1 02-01-2010 06:24 PM
Running virtual pc files in a virtual machine in linux ... preferably virtual box biharibong Linux - Software 4 01-21-2009 01:04 PM
i can't browse my linux machine from windows machine's network neighbourhood window yagneshmistry Linux - Networking 2 08-10-2004 02:52 AM


All times are GMT -5. The time now is 06:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration