LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-10-2010, 04:55 AM   #1
jbcolmena
Member
 
Registered: Feb 2004
Location: Italy
Distribution: Ubuntu
Posts: 40

Rep: Reputation: 15
port forwarding -and more- how to connect to my virtual machine


Hi all,

Well, after reading a lot I finally managed to install a virtual machine on a server. I'm using ubuntu, kvm, and the guest is ubuntu-jeos. I was able to connect to the virtual machine using virt-viewer, but have no idea how to do it in any other way. For example, if I try 'ssh myvirt' I get nothing. Nothing meaning that I get a prompt, the machine just stays there waiting.

The virtual machine is in a server, and I want to be able to connect to it from my home. Now, I was told to use port-forwarding because the server has a static IP address and don't have access to any more addresses.

Can anyone point me in the right direction? all the tutorials I find assume that you know your way around system administration, and that's not my case!

Best regards.
 
Old 08-10-2010, 05:08 AM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
I think an important question is what type of networking do you have going on with your Virtual Machines (IE Bridged). Also does your VM have IP information configured already that it is going to use on the public Internet or are you doing the networking in another way (IE NAT)
 
Old 08-10-2010, 05:21 AM   #3
jbcolmena
Member
 
Registered: Feb 2004
Location: Italy
Distribution: Ubuntu
Posts: 40

Original Poster
Rep: Reputation: 15
I modified the network interface to use a bridge.

About the public internet, the server where the VM is on has an IP address. That's all I got. And that's what I don't know also, I mean, how to configure whatever I have to configure to access the VM...
 
Old 08-10-2010, 05:34 AM   #4
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
It might help if I better understood what you were after and how the physical machine is hosted (IE in a datacenter? at home?) and why you do not have additional IP addresses? Last time I checked Virtual Machines were valid justification for additional IPs under ARIN (North America) and RIPE (Europe)... So is this by ISP that you only have a single IP. If you literally are limited to a single IP then you will have to probably use either the main domain for routing (including port forwarding with NAT) what would mean bridged networking will not work, preferably you should be able to get an additional IP.
 
Old 08-10-2010, 07:55 AM   #5
jbcolmena
Member
 
Registered: Feb 2004
Location: Italy
Distribution: Ubuntu
Posts: 40

Original Poster
Rep: Reputation: 15
I rented a server. I'm new to all this network stuff. Thanks to your comment contacted the server company, and indeed I can buy more IPs. When I get one, what should I do? just assign that IP to the VM?
 
Old 08-10-2010, 08:11 AM   #6
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Your best bet would be to ask the server company, as I have experience with some server companies I know that they can use different configurations what may mean that you yourself may have to base your configuration on their networking depending on the type of networking they are doing. If they are not using any special networking then a straight bridged KVM network with configuring the IP information directly in Ubuntu should work fine (I have no experience with KVM myself).

Last edited by r3sistance; 08-10-2010 at 08:17 AM.
 
  


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
How to configure the serial port of my virtual machine with host machine. akram Linux - Newbie 4 07-31-2009 10:39 PM
Virtual hosts and port forwarding fr_laz Linux - Networking 0 02-03-2005 02:46 PM
Port forwarding to RH 9.0 machine not working Jeeves79 Linux - Networking 3 05-29-2004 03:11 PM
port forwarding to win 2k machine. Morphey Linux - Security 2 04-13-2002 01:07 AM
port forwarding to win 2k machine. Morphey Linux - Networking 0 03-30-2002 03:13 PM

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

All times are GMT -5. The time now is 05:01 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