-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting VM parameters? #24
Comments
@rdobson I would like to assist in extending each builder so that additional VM params and disk params can be set. I have already played a bit with a prototype that can set the VM params My immediate use case is that I would like to be able to enable PV for an Ubuntu ISO installation and convert it to a template solely by using Packer and the provisioning scripts declared in the Packer template. Also the first disk should be marked as bootable. Before doing too much work I would like to discuss my ideas with you in order to ensure that the additions will be useful and in line with your thoughts about how the builders should evolve. In the current Packer XenServer plugins the following VM properties can be already set in the configuration file:
I would like to add support for the following VM properties:
The HVM and PV settings will be defined in objects, e.g.: "pv": {
"bootloader": "pygrub",
"args": "console=hvc0 xencons=hvc"
} Adding a When adding a Likewise when adding a The In addition to the above I would like to add support for the following VDI/VBD properties for the first disk (userdevice=0):
Any remarks to this proposal? |
Thanks very much for taking the time to write this proposal @kongslund. I think that adding As for the VDI/VBD properties, could you help me understand a bit better what you're trying to do here? Setting the root disk to be bootable is probably something we want to do in all cases I would imagine (I'm surprised that's not the case). As for the If that's the case, perhaps it would be better to just add a new format type of What do you think? |
Thank you for your feedback @rdobson I've tried setting As part of the provisioning I do the following
After Packer has finished the VM has the following parameters set:
According to the Citrix XenServer Management API Guide HVM-boot-policy takes priority over PV-bootloader so the VM boots up as HVM. If I unset
If I then set If I eject the CD and start the VM it gives the following error:
If I then mark the first disk as bootable then it works and XenCenter shows me a nice hvc0 terminal. I am probably doing something wrong here so please correct me if I am. My understanding of the bootloader concepts is still somewhat fuzzy and the XenServer 6.2 documentation does not contain anything about either eliloader or pygrub. Btw: XenServer's own Ubuntu-12.04 template example does not use Regarding converting to a template: if a format type called This actually brings me to another topic that I've wanted to bring up for discussion: |
I am currently experimenting with the 6.x-support branch. I've been able to create an Ubuntu 12.04 image (based on https://github.com/xenserver/packer-templates/blob/master/ubuntu-12.04-amd64.json) and now I am trying to add PV support.
Installing the guest utilities and linux-virtual is done in a provision script but I am unsure about setting VM parameters such as PV-bootloader and PV-args, and marking the first disk as bootable. Is that really supposed to happen in a provision script executed on the VM itself or are there any xenserver-iso configuration parameters I have missed?
The text was updated successfully, but these errors were encountered: