Skip to content
This repository has been archived by the owner on Feb 22, 2021. It is now read-only.

How change clone vm ip address ? #46

Open
ahmtxonly opened this issue Jun 25, 2020 · 0 comments
Open

How change clone vm ip address ? #46

ahmtxonly opened this issue Jun 25, 2020 · 0 comments
Assignees

Comments

@ahmtxonly
Copy link

Hello,

How change clone vm ip address for linux(centos7) and anything Os ?

I have a example with powershell;

"Invoke-VMscript -VM "$clone_name" -ScriptText "echo -e NAME=ens32'\n'TYPE=Ethernet'\n'BOOTPROTO=static'\n'DEFROUTE=yes'\n'PEERDNS=yes'\n'PEERROUTERS=yes'\n'IPV4_FAILURE_FATAL=no'\n'ONBOOT=yes'\n'IPADDR=$VDS_ip'\n'NETMASK=$VDS_netmask'\n'GATEWAY=$VDS_gateway > $filepath" -GuestUser $guest_username -GuestPassword $guest_password -scriptType bash | Out-Null"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants