[SOLVED] Set Specific MAC after clone

bit2gb

Well-Known Member
Jul 20, 2016
84
2
48
28
Hi,
I want to set a specific mac after i create a clone using a template because i have dhcp server and i don't have acces to it.
If i set same mac i receiv same ip so how can i edit mac from terminal without modify conf vm file.

Thanks
 
Hi,
to set VM specific configs from the CLI have a look at `qm set <vmid>` in `man qm`. There you can also set the network devices conf via the --net[n] parameter. Be careful as this will set the whole property string to the new one, not simply update the old (so all not given properties are set to default).
 
thx, i dont know why i dont remember about set option.
final form it's:

qm set 101 -net0 e1000=32:63:47:C3:67:D9,bridge=vmbr0,firewall=1

Thanks