port forwarding -and more- how to connect to my virtual machine
Linux - Virtualization and CloudThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!
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)
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...
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.