What OS do you have in mind?
And what do you understand under kickstart?Blog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
What you may want to look at is https://packer.io/docs/builders/vmware-iso.html where you supply an iso to the vm and then there are mutliple ways at passing the kickstart information Its not powershell exactly, but you can call if from powershell.
Sorry for not giving all the information. The VM will have the ISO mounted, RHEL8, and my Linux guys have provided me with a string where I put the ip address for the VM and start a kickstart script that installs the OS and then calls Puppet. Right now I create the VM, mount the ISO, and then manually enter the string at boot. So what I would like to do is to automate this step with PowerCLI if possible.
You have to enter a string for the bootloader if I understand it correctly?
Do you have a link to that procedure?
If I remember correctly, the default option is to install the OS when the fresh VM is booted from the ISO.
Is that what you are doing?Blog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
That looks a versatile and powerful tool. I will check it out, thanks for the tip!
Yes that is correct. I will check with my colleagues tomorrow if they have a link, and in any case post the string.
Thanks so far
If you just let the VM boot from the ISO, it will install the OS I assume?Blog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
What I do is start the VM booting from the ISO, highlight the line with “Install RHEL 8.0”, press 'e' to enter the string, which goes at the end of the line starting with linuxefi.
The format of the string is: ip=ip::gw:nm::ens192:none nameserver=dns ks=https://webaddresstokickstartscript.ks rd.noverifyssl
And then press ctrl+x to start the installation
I realize this may not be easy to do with PowerCLI, and maybe the tip from sjessewith VMware builder may work better. I will download it and give it a try.
Here are a couple of links the Linux guys have used for making the procedure:
You are correct, intervening in the boot loader is not possible from PowerCLI.
But I'm wondering if setting up a Vagrant framework is that simple.
More so, since Red Hat has the possibility to boot & install from an ISO and a floppy disk.
Creating a floppy with content and attaching it to the VM is rather simple from within a PowerCLI script.Blog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
Using a floppy is a very good solution, thank you.