How to assign internal IPv4 to a VM?

proxnewb!e

Renowned Member
Sep 16, 2013
41
0
71
Hello,

i followed this tutorial in aim to NAT port forward IPv4 requests from host server to the KVM guest server.

I do not understand how i assign internal IPv4 (example: 192.168.0.3) to a KVM VM which i create in Proxmox VE.

I used Virtio as a network model, vmbr0 bridge, but how i define internal IP like 192.168.0.3 to a VM 100 ?

The command "qm list" or "qm config 100" shows VMs details, but not IPv4

My host server has only one IPv4 address, and one IPv6 subnet, so i can assign only an internal IPv4 and public IPv6 to the VMs. But how to assign that private IPv4 to a VM? Thank You
 
KVM VMs are emulated computers, so you have to assign the IP manually (or via DHCP) from your guest operating system. It is the same method you'd use on a real computer.
 
  • Like
Reactions: proxnewb!e
Proxmox webUI you go into console for the VM you want.
login into that VM and configure the networking as if you would if it was a real PC.
what ever OS is install on that VM has the tools.
if it is a CLI only setup, let say for Ubuntu or Debian, you would edit the /eth/networking/interfaces file
 
  • Like
Reactions: proxnewb!e