I would like to use the spacewalk api system.provisionVirtualGuest,
however I need the ability to pass extra args to the virt-install line
that spacewalk would create. Is there any way to do this? Am I missing
something obvious?
Reasons:
Do not use DHCP, PXE, etc. static IP only. So need to pass the
IP, gateway, netmask
I pass parameters on the line which in turn causes actions to be
taken in the %post section of the kickstart. (cat /proc/cmdline during the
building of the server)
Here is an example of the virt-install command that is ran currently.
virt-install --name=testing123 --ram=8192 --vcpus=4
--mac=aa:bb:cc:dd:ee:ff --location=http://myspacewalk/ks/dist/org/z/distro
--disk path=/dev/myvolumegroup/testing123_lv --bridge=bridge##
--extra-args="ks=http://myspacewalk/ks/cfg/org/z/label/mykickstart noipv6
noselinux serial console=tty0 console=ttyS0,115200 ip=xx.yy.zz.aa
gateway=xx.yy.zz.aa netmask=xx.yy.zz.aa dns=dns1 hostname=testing123
hyper=myhyper flag1=yes flag2=yes " --os-type=linux --os-variant=rhel6
--arch=x86_64 --accelerate --noautoconsole --nographics
- Thanks in advance
**
This email and any attachments may contain information that is confidential
and/or privileged for the sole use of the intended recipient. Any use, review,
disclosure, copying, distribution or reliance by others, and any forwarding of
this email or its contents, without the express permission of the sender is
strictly prohibited by law. If you are not the intended recipient, please
contact the sender immediately, delete the e-mail and destroy all copies.
**
_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list