LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 06-03-2010, 08:35 PM   #1
michaelux
LQ Newbie
 
Registered: Mar 2007
Posts: 17

Rep: Reputation: 0
Network issue KVM host centos


Hi all.

After a lot of reading and google search about virtualization, xen, kvm And having some problem creating my first guest I finally installed asterisknow as guest in Centos, it start fine(guest asterisknow), but I have problems and doubts about the network config.

I am using my laptop with 1 ethernet connection and 1 wireless connection(compiling broadcom driver)


In the host is virbr0, eth0 (LAN) and eth1(wireless with compiled driver)..

I have read but I am a little confused about how to set up network.

I select the default option: default virtual network.


What else should I do? . How can I do if only have 1 network connection and 3 o 2 guest + host to provide connection to internet and between them? or for start of, have connection only for 1 guest ?
 
Old 06-04-2010, 09:42 AM   #2
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
What you need to do is bridge your physical network interface - which you seem to have partially done.

Please post the output of
Code:
 ifconfig -a
Also, a quick tutorial; on my Fedora machine which acquires its IP via DHCP, the process to bridge the interface was:

1. Edit /etc/sysconfig/network-scripts/ifcfg-eth0 so that it looks like the below:

Code:
# more /etc/sysconfig/network-scripts/ifcfg-eth0 
# Intel Corporation 82567LM-3 Gigabit Network Connection
DEVICE=eth0
TYPE=Ethernet
HWADDR=00:25:B3:15:2E:00
ONBOOT=yes
BRIDGE=br0
NM_CONTROLLED=no
Note the "NM_CONTROLLED" setting is something you can probably leave out - I've only had to use it on Fedora 13 - so on CentOS you probably don't need it.

2. Create a new file /etc/sysconfig/network-scripts/ifcfg-br0 that looks similar to the below:

Code:
# more /etc/sysconfig/network-scripts/ifcfg-br0 
DEVICE=br0
TYPE=Bridge
BOOTPROTO=dhcp
HWADDR=00:25:B3:15:2E:00
ONBOOT=yes
NM_CONTROLLED=no
Note the same explanation about NM_CONTROLLED as the previous point.

3. Restart the network interface (be careful if this box is not locally accessible):

Code:
#service network restart
And that should be that. Thereafter in virt-manager, you assign br0 as the network interface for your VM - and once the VM boots up, it should dynamically receive an IP via DHCP which is different to your host IP.

If you're using a static IP/s, its just as simple; with the difference being that you manually specify the IP, NETMASK and GATEWAY in the abovementioned configuration files.
 
Old 06-05-2010, 09:14 PM   #3
michaelux
LQ Newbie
 
Registered: Mar 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks buddy.

I removed centos 5.3 and installed fedora 13, I tested live cd and it recognize multimedia button, wireless (after some changes with b43fcutter..) and runs smooth..and can install centos as guest only to test what I need before apply changes to production servers..

I am running as guest and Backtrack 4, but it runs slow, the host use high cpu, I have amd turion x2 64...
 
Old 06-05-2010, 11:51 PM   #4
michaelux
LQ Newbie
 
Registered: Mar 2007
Posts: 17

Original Poster
Rep: Reputation: 0
my next step well be to do bridge connection... I have a asterisk guest and this need to be accessed from the LAN..

But, can I do bridge connection using wlan?_ . I have kvm in my laptop with asterisk guest but just to learn and test some things. I am not sure if I can do a bridge connection with wlan..

thanks
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KVM on Centos 5.4 - bridge issue on virtual interfaces asmar Linux - Networking 1 03-01-2010 11:11 PM
CentOS 5.4: System migration issue with network card mrholepunch Linux - Newbie 9 02-23-2010 10:08 PM
KVM: How to set up a private network between guests and the host kenneho Linux - Virtualization and Cloud 1 01-17-2010 11:19 AM
Network connectivity from Centos VM under XP host tulsi Linux - Newbie 7 08-22-2009 04:43 PM
Home network problem - Centos - no route to host dralexpe Linux - Networking 2 06-30-2007 05:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 02:50 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
Open Source Consulting | Domain Registration