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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am trying to get a public ip address to VM(I am using kvm). In the host I have everyhting I nedd(I think)
br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 126.96.36.199 netmask 255.255.255.0 broadcast 188.8.131.52
inet6 fe80::230:48ff:fefe:ceb0 prefixlen 64 scopeid 0x20<link>
ether 00:30:48:fe:ce:b0 txqueuelen 0 (Ethernet)
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
p13p1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
tap0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
virbr0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
vnet0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
vnet1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
vnet2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
Guest VM has an ip adress(192.168.100.144) which is only accessible from host. Now I am wondering what shoul dI do to get a public ip to guest VM which is accessible from everywhere.
This is what I have inside guest VM
eth 0 Link encap:Ethernet HWaddr 52:54:00:F5::5D:D1
inet6 addr: fe80::5054:ff:fef5:5dd1/65 scope:Link
eth1 Link encap:Ethernet HWaddr 52:54:00:F5::5D:D2
inet addr: 192.168.100.144 Bcast...
Sould I assign static ip to guest vm or configure bridge in host to translate IPx to 192.168.100.144?
Hmm I'm no network expert but if you have enabled X11 on your guest VM and use a web browser to access the internet to a site like whatismyip.com I am pretty sure the external ipaddress recorded will be the same as the host machines.
Unfortunately I do not know enough about kvm configurations to make a suggestion on how to set it up to access the vm externally
You can bridge your host and guest networks. If you have a router, your router will assign your guest an IP, usually 192.168.x.x. If you are directly connected to the Internet and have a static IP, you can assign your guest an IP and it will be directly connected to the Internet, just like any other computer.
You can do it both in the command line and in the virt-manager gui.
For the virt-manager gui, it's really easy. Go to the settings page of specified guest VM. Go to the information page by clicking on the blue button at the top of the gui.
Go down to NIC Virtual Network Interface.
For Source Device, select "Host device ethX: macvtap".
For Source Mode, select "Bridge".
Use Virtio as it provides better I/O throughput. It is much better than the default emulated Realtek device, but make sure you have Virtio drivers installed.
Of course, you can also just forward connections from your host, which in this case is acting as a sort of router for your VM, to your guest, but I don't know how to do that. The gui method is easier in my opinion anyway.