Force vmware vm version

Hi all!

Does anybody know how to force Foreman to create specified version of vm
(9 in my case) in vSpehere?
By default vSphere 5.5 creates vm version 10, on which I have issues with
CentOS, even after I configured compatability with 5.1 in vcenter server
for specified hosts/clusters.
I've tried to set different version of guest OS for vm, but vSphere all
time creates version 10.

Cheers,
Sergii

No, there isn't a way to set the VM version from Foreman at this time, but
there is an open issue on this:

http://projects.theforeman.org/issues/5760

Thanks,

Josh

··· On Thu, May 22, 2014 at 7:24 PM, Sergii Alieksanov < sergii.alieksanov@googlemail.com> wrote:

Hi all!

Does anybody know how to force Foreman to create specified version of vm
(9 in my case) in vSpehere?
By default vSphere 5.5 creates vm version 10, on which I have issues with
CentOS, even after I configured compatability with 5.1 in vcenter server
for specified hosts/clusters.
I’ve tried to set different version of guest OS for vm, but vSphere all
time creates version 10.

Cheers,
Sergii


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Hi,

> Does anybody know how to force Foreman to create specified version of vm
> (9 in my case) in vSpehere?

I quickly hacked something together, what kind of seems to work.

You need to patch fog and foreman:

https://github.com/mmoll/fog/commit/56f04b8479520dce44af3127972adb7838e0a43c
https://github.com/mmoll/foreman/commit/7cfe2fd35a4194418073d451411768253f006900

This is real rough and I'll be on the road for the next weeks, so I would
appreciate if somebody else could finish this.

Regards

··· On Thu, May 22, 2014 at 04:24:23PM -0700, Sergii Alieksanov wrote: -- Michael Moll

Hi,

··· On Thu, May 22, 2014 at 04:24:23PM -0700, Sergii Alieksanov wrote: > Does anybody know how to force Foreman to create specified version of vm > (9 in my case) in vSpehere?

https://github.com/fog/fog/commit/2041c0fd5d8c0f38a4e25a3aafa8bf46565105c5
is in fog master, so the next fog release will have it included.

For the Foreman changes, please see
https://github.com/theforeman/foreman/pull/1531

Testing/Feedback would be nice…

Regards

Michael Moll

Thanks Josh!

Cheers,
Sergii

··· On Thursday, May 22, 2014 4:28:32 PM UTC-7, Josh wrote: > > No, there isn't a way to set the VM version from Foreman at this time, but > there is an open issue on this: > > http://projects.theforeman.org/issues/5760 > > Thanks, > > Josh > > > On Thu, May 22, 2014 at 7:24 PM, Sergii Alieksanov < > sergii.a...@googlemail.com > wrote: > >> Hi all! >> >> Does anybody know how to force Foreman to create specified version of vm >> (9 in my case) in vSpehere? >> By default vSphere 5.5 creates vm version 10, on which I have issues with >> CentOS, even after I configured compatability with 5.1 in vcenter server >> for specified hosts/clusters. >> I've tried to set different version of guest OS for vm, but vSphere all >> time creates version 10. >> >> Cheers, >> Sergii >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Foreman users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to foreman-user...@googlegroups.com . >> To post to this group, send email to forema...@googlegroups.com >> . >> Visit this group at http://groups.google.com/group/foreman-users. >> For more options, visit https://groups.google.com/d/optout. >> > >