How to assign internal IPv4 to a VM?

postcd

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: postcd
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: postcd

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!