Jak szybko/sprawnie zmienic nazwe VM na datastore


Bedac zalogowanym na esx/i wydac komendy po uprzedniej zmianie katalogu :

pierwszy=stara_nazwa

drugi=nowa_nazwa

for i in `ls $pierwszy*`; do mv $i `echo $i|sed "s/${pierwszy}/$drugi/g" `; done

sed -i "s/$pierwszy/$drugi/g" ${drugi}.vmdk ${drugi}.vmx ${drugi}_1.vmdk ${drugi}.vmxf

Advertisements

2 thoughts on “Jak szybko/sprawnie zmienic nazwe VM na datastore

  1. Normally I do not read article on blogs, but I wish to say that this write-up
    very forced me too try and do so! Your writing
    taste has been amazed me. Thanks, quite nice article.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s