change ip via qemu guest and netsh windows

bit2gb

Well-Known Member
Jul 20, 2016
84
2
48
29
Hi Guys,

i use qemu guest to set aotomaticlay an ip on my win vm but i have an issu. after i run the command, network will go into "limited" state and if i set same ip manualy will work fine.
I try to restart it but stay into tha same state after reboot (limited), even disable/enable doisent work.
I use this command:
qm guest exec <id> netsh interface ipv4 set address name="YOUR INTERFACE NAME" static IP_ADDRESS SUBNET_MASK GATEWAy
 
Hi Guys,

i use qemu guest to set aotomaticlay an ip on my win vm but i have an issu. after i run the command, network will go into "limited" state and if i set same ip manualy will work fine.
I try to restart it but stay into tha same state after reboot (limited), even disable/enable doisent work.
I use this command:
qm guest exec <id> netsh interface ipv4 set address name="YOUR INTERFACE NAME" static IP_ADDRESS SUBNET_MASK GATEWAy

Hello!

Try something like this - http://ittraveler.org/kastomizaciya-gostevyx-os-windows-v-kvm-na-primere-proxmox/
 
Thanks mercury but i want somethin for network and based on what i see on that link (i translate it) there it's used dhcp.
In my case i need to take and ip from my list and set into vm