LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 10-18-2013, 03:18 PM   #1
Jerico91
LQ Newbie
 
Registered: Sep 2013
Posts: 21

Rep: Reputation: Disabled
Not able to establish network between host and guest in KVM


Hi Guys
i've installed KVM and configured bridge network on my host machine its successfully configured on my host machine i am able to get ip from DHCP on bridge network below is the output of ifconfig on host machine

I've selected the bridge as NIC in vm settings
but the issue is that when i open virtual machine i just can see only ifcfg-lo its not showing up any device to which i can assign ip if i create a file like ifcfg-eth0 and enter the details and when i start it it will say that the device doesn't exists

how do i make network communication between guest and host machine?

output of ifconfig on host machine

bridge0 Link encap:Ethernet HWaddr 8C:89:A5:E3:84:A2
inet addr:10.26.189.106 Bcast:10.26.191.255 Mask:255.255.224.0
inet6 addr: fe80::8e89:a5ff:fee3:84a2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:41472 errors:0 dropped:0 overruns:0 frame:0
TX packets:14919 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:17733649 (16.9 MiB) TX bytes:2706768 (2.5 MiB)

brigde0 Link encap:Ethernet HWaddr FE:54:00:05:39:04
inet6 addr: fe80::fc54:ff:fe05:3904/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:6542 (6.3 KiB)

eth0 Link encap:Ethernet HWaddr 8C:89:A5:E3:84:A2
inet6 addr: fe80::8e89:a5ff:fee3:84a2/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:110510 errors:0 dropped:0 overruns:0 frame:0
TX packets:40279 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:63072861 (60.1 MiB) TX bytes:6228923 (5.9 MiB)
Interrupt:29 Base address:0xe000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2121 errors:0 dropped:0 overruns:0 frame:0
TX packets:2121 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:643293 (628.2 KiB) TX bytes:643293 (628.2 KiB)

virbr1 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:1941 (1.8 KiB)

vnet0 Link encap:Ethernet HWaddr FE:54:00:05:39:04
inet6 addr: fe80::fc54:ff:fe05:3904/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 b) TX bytes:6382 (6.2 KiB)

Last edited by Jerico91; 10-18-2013 at 03:20 PM.
 
Old 10-18-2013, 05:01 PM   #2
pburwell
LQ Newbie
 
Registered: Jun 2010
Location: PA, USA | NJ, USA
Distribution: CentOS 6
Posts: 21

Rep: Reputation: 0
Wink Route

Quote:
Originally Posted by Jerico91 View Post
Hi Guys
i've installed KVM and configured bridge network on my host machine its successfully configured on my host machine i am able to get ip from DHCP on bridge network below is the output of ifconfig on host machine

I've selected the bridge as NIC in vm settings
but the issue is that when i open virtual machine i just can see only ifcfg-lo its not showing up any device to which i can assign ip if i create a file like ifcfg-eth0 and enter the details and when i start it it will say that the device doesn't exists

how do i make network communication between guest and host machine?

output of ifconfig on host machine

bridge0 Link encap:Ethernet HWaddr 8C:89:A5:E3:84:A2
inet addr:10.26.189.106 Bcast:10.26.191.255 Mask:255.255.224.0
inet6 addr: fe80::8e89:a5ff:fee3:84a2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:41472 errors:0 dropped:0 overruns:0 frame:0
TX packets:14919 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:17733649 (16.9 MiB) TX bytes:2706768 (2.5 MiB)

brigde0 Link encap:Ethernet HWaddr FE:54:00:05:39:04
inet6 addr: fe80::fc54:ff:fe05:3904/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:6542 (6.3 KiB)

eth0 Link encap:Ethernet HWaddr 8C:89:A5:E3:84:A2
inet6 addr: fe80::8e89:a5ff:fee3:84a2/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:110510 errors:0 dropped:0 overruns:0 frame:0
TX packets:40279 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:63072861 (60.1 MiB) TX bytes:6228923 (5.9 MiB)
Interrupt:29 Base address:0xe000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2121 errors:0 dropped:0 overruns:0 frame:0
TX packets:2121 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:643293 (628.2 KiB) TX bytes:643293 (628.2 KiB)

virbr1 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:1941 (1.8 KiB)

vnet0 Link encap:Ethernet HWaddr FE:54:00:05:39:04
inet6 addr: fe80::fc54:ff:fe05:3904/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 b) TX bytes:6382 (6.2 KiB)
Look at your route? Are you sure you set the GW?
 
Old 10-18-2013, 05:06 PM   #3
Jerico91
LQ Newbie
 
Registered: Sep 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
@pburwell

GW? means?

can you tell how do i setup network between host and guest?
 
  


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
Redirect logs from KVM guest to KVM host essential1 Linux - Virtualization and Cloud 2 10-08-2013 04:29 PM
accessing a KVM guest from outside the host rootaccess Linux - General 2 04-28-2013 12:29 AM
KVM Guest network unable to connect to Host in CentOS-6.3 mglaris Linux - Virtualization and Cloud 5 10-05-2012 06:01 AM
RHEL6 KVM Host / guest network doesn't chrism01 Linux - Virtualization and Cloud 2 08-19-2012 10:33 PM
KVM guest cannot access host thehemi Linux - Virtualization and Cloud 8 03-28-2012 05:36 AM


All times are GMT -5. The time now is 02:35 AM.

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