LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-31-2013, 11:42 PM   #1
sanaz
Member
 
Registered: Aug 2012
Posts: 76

Rep: Reputation: Disabled
Access to VM outside of the ehypervisor


Hi all,

I have a virtual machine and from the hypervisor I can ssh to it by its vip, which is 192.168.122.193. Now I am wondering in any machine how can I ssh to it, or make a connection with socket? should I make a bridge? how?

Thanks in advance.
 
Old 04-01-2013, 01:11 AM   #2
a.abdulna
Member
 
Registered: Feb 2013
Location: Bangalore
Distribution: Rhel
Posts: 86

Rep: Reputation: Disabled
I think bridge is required ..
 
Old 04-01-2013, 01:22 PM   #3
sanaz
Member
 
Registered: Aug 2012
Posts: 76

Original Poster
Rep: Reputation: Disabled
I am not sure how can I create the bridge, can someone help me, whenever I wanted to make the bridge, the network become completely disabled.
 
Old 04-01-2013, 01:54 PM   #4
sanaz
Member
 
Registered: Aug 2012
Posts: 76

Original Poster
Rep: Reputation: Disabled
Also does NAT also works? How it is different from bridging, which one is easier to setup?
 
Old 04-02-2013, 01:03 AM   #5
a.abdulna
Member
 
Registered: Feb 2013
Location: Bangalore
Distribution: Rhel
Posts: 86

Rep: Reputation: Disabled
which hypervisor your having ? and you need to connect guest to lan right ?
 
Old 04-02-2013, 08:47 AM   #6
sanaz
Member
 
Registered: Aug 2012
Posts: 76

Original Poster
Rep: Reputation: Disabled
I have KVM. Yes
 
Old 04-04-2013, 02:44 PM   #7
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 515

Rep: Reputation: 102Reputation: 102
I use qemu/kvm with bridge and works fine.

How i did it:

1. created a br0 interface that has eth0 as member
2. transferred the eth0 network config to br0, leaving eth0 with no IP address
3. added br0 as shared device to the VMs via virt-manager (add/modify network adapter, select "Specify shared device name", type the name of your bridge device).
So every VM on startup will automatically create a vnetX interface that will be a member of br0. They behave as separate network devices and can communicate just as separate computers both between them and the host and the rest of the network (note that firewalls in effect on br0 can block ports on its members so configure accordingly). Also ifconfig will not show their network address on the host machine.

Note that i use virt-manager where this kind of setup is trivial to do. This kind of setup gives the most network reachability, as other options such as using macvtap will prevent the host from reaching the VMs via their IPs, although the VMs can be reached from other computers.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to see shares on samba server - no authentication access desired (open access) neoelf Linux - Networking 1 06-14-2009 03:18 PM
Debian Woody: Can't access internet through router, but can access network computers marales314 Linux - Networking 3 06-09-2006 12:33 PM
How to access database created with MS Access on Windows using PHP on Linux Server anjani.78 Linux - Software 1 12-21-2005 06:07 PM
WIFI WLAN / Cannot access internet but can access the router configuration page?SUSE thomas939 Linux - Wireless Networking 12 12-13-2005 10:28 AM
Samba access by Windows users locking out directory access with Konqueror harry_fine Suse/Novell 1 12-18-2004 05:33 AM


All times are GMT -5. The time now is 03:23 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration