IP Address for fully virtualized (KVM)

  • Thread starter Thread starter cobster87
  • Start date Start date
C

cobster87

Guest
This is most likely a dumb question, but how to you give a fully visualized (kvm) its own IP Address. I have two nic card in my box and I just need one to be able to be access my KVM through a web interface.
 
It's a virtual IP. You can't really assign the physical NIC to your VM. Well, you may be able to, but that's not the idea. Just assign any IP in your local subnet inside your VM.
 
Hi,

Just configure an IP address as you would do with a real physical machine. The Proxmox ve host is configured as a bridge (br0, using eth0), that is like a switch, so your KVM VM machine will be seen on your LAN as would be any other machine... There is no NAT, as it is the case by default with, for example with VirtualBox.

Test pinging or tracerouting your VM IP....

Alain
 
what i have done.. is make a brigde conenction. but not giving proxmox server a own ip on it.. so only client is using it .

"auto vmbr1
iface vmbr1 inet manual
bridge_ports eth1
bridge_stp off
bridge_fd 0
"
 
So you are using the second interface, eth1, for the bridge, and not the first, eth0 ? Did you associate your VM interface with this bridge, and not vmbr0 ? It should appear in the web interface, I suppose (never did it).

Alain
 
eth0 we use for our internal networks.. the other interfaces for external.
 
That's OK. I suppose you restarted the host network after configuring the bridge ? Do you see messages in your logs concerning this bridge or other network errors ?
 
vmbr1 Link encap:Ethernet HWaddr 84:2b:2b:60:bd:33
inet6 addr: fe80::862b:2bff:fe60:bd33/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1108742 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:52440564 (50.0 MiB) TX bytes:468 (468.0 B)



------------
vmbr1 8000.842b2b60bd33 no eth1
tap110i1d0
 
Last edited by a moderator:
yes it do .


I dont have any problems. mine is working realy good, and yes i did it also in web gui. but i dont like to reboot my server just for that .
 
Yes, I think you are right, a simple ifup vmbr1 should suffice...

Is your second interface, eth1, in the same VLAN as the first ? I would try to give vmbr1 an IP address, just for test, and try to ping it, just to be sure it is reachable on your network...
 
ok, lets redirect , as i dont need help, i am trying to help them others.