LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-18-2014, 11:50 AM   #1
blackRonin
Member
 
Registered: Jun 2014
Distribution: Debian 9.6
Posts: 68

Rep: Reputation: Disabled
KVM connecting VMs (same network)


Hello

I have laptop with Centos 6.5, i'm using wireless to get internet connection.
I need build lab with XenServer (inside xen few linux vms) and with few separate windows vms.

I want have XenServer and other windows vms in same network (192.168.1.x), as my host (Centos 6.5) or Internal network eg 10.x.x.x (with intenet connection).

In VirtualBox i had no such problems (bridging wlan0), but i need create my lab based on KVM.
And in KVM i have problem with that.
I read that there are problems with bridging wireless interfaces.

Can you please help me, how to solve this ?.
 
Old 12-18-2014, 07:09 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,984

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Maybe an issue.

There is no real reason that you can't use nat as long as you understand that the vm has a virtual router.
 
Old 12-18-2014, 09:23 PM   #3
blackRonin
Member
 
Registered: Jun 2014
Distribution: Debian 9.6
Posts: 68

Original Poster
Rep: Reputation: Disabled
Yes, i realize that vms have virtual router.
But from what i know, in NAT setup vms getting same ip, there are isolated from each other, but have internet connection.
Am i wrong ?

So i read about bridge host interface with virtualization software interface, to get connection between vms.
But after no succeed with bridging wireless interface, i lookup in search engine, and i found that there is problem with that under linux.
Is there some special things to do, to get wlan brigde working ?

Please, i stared playing kvm just a wile ago. I need some extra explanations.

Eg. I tried in NIC setting set
source Device as host device wlan0: macvtab
device model - default
source mode: brigde

But after loging to windows xp, and realising new ip, i couldn't get ip from 192.168.1.x as my host network is in.
I'm getting 169.254.254.55/8
 
Old 12-19-2014, 04:46 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,984

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
One can set up vm's for internal only but that locks out host.

If you want to use any lan/wan then you'd need to go with nat or bridged. You pointed out a new way for KVM to connect bridged that I've never used yet. The MacVtap is almost a virtual device with it's own config. I think your example is not fully describing the macvtap as macvtap0 maybe?
 
  


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
thumbrule for KVM virtualization - How Many VMs? austinium Linux - Server 4 10-26-2013 04:01 PM
How would you rate KVM, compared to other VMs? walterbyrd Linux - Virtualization and Cloud 5 07-03-2013 06:01 PM
kvm based VMs inside centos 6.4 not getting IP address jagdip Linux - Networking 8 05-05-2013 05:42 PM
Physical host of KVM VMs with bonded interface - bridging necessary? slimjim Linux - Virtualization and Cloud 1 06-13-2012 03:08 PM
Any way to access old VMs after reinstalling KVM? shadowbox12 Linux - Virtualization and Cloud 3 03-19-2010 10:09 PM

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

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