Lucas Arbiza
2010-Sep-10 14:16 UTC
[libvirt-users] KVM guest creation - no manual interference
Hi I've looking for a way to create KVM virtual machines completely automated without the need to interact with guest operating system during installation. With ubuntu-vm-builder is possible create the guest, list packages to be installed and scripts to be run. Is there a way to do something like it with libvirt? Thanks! __ Lucas Arbiza email: lucas.arbiza at gmail.com celular: +55 (55) 9152 7561 <http://br.linkedin.com/in/lucasarbiza> <http://www.google.com/profiles/lucas.arbiza> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20100910/f4d678e6/attachment.htm>
Matt Wallace
2010-Sep-10 14:27 UTC
[libvirt-users] KVM guest creation - no manual interference
On Friday 10 Sep 2010 15:16:14 Lucas Arbiza wrote:> Hi > > I've looking for a way to create KVM virtual machines completely automated > without the need to interact with guest operating system during > installation. > > With ubuntu-vm-builder is possible create the guest, list packages to be > installed and scripts to be run. Is there a way to do something like it > with libvirt? > > Thanks!I wrote Cucumber-VHost for exactly this purpose. We use Cucumber-VHost and puppet as well as cobbler and Hudson to completely automate the build and testing of our configuration files. Cucumber-VHost creates a virtual machine based on it's definition in cobbler and a plain english script invoked by Rake. More details are on my blog at http://www.threedrunkensysadsonthe.net/ and in GitHub: http://github.com/proffalken/cucumber-vhost HTH, M.
Jon Dowland
2010-Sep-10 15:51 UTC
[libvirt-users] KVM guest creation - no manual interference
On Fri, Sep 10, 2010 at 11:16:14AM -0300, Lucas Arbiza wrote:> I've looking for a way to create KVM virtual machines completely automated > without the need to interact with guest operating system during > installation. > > With ubuntu-vm-builder is possible create the guest, list packages to be > installed and scripts to be run. Is there a way to do something like it with > libvirt?I've (just today) achieved this using virt-manager, built on top of libvirt, for centos guests at least, defining a mirror URI for the kernel and initrd images, and a kickstart URL, having written a kickstart script for anaconda and stored it on a webserver ahead of time. <http://virt-manager.et.redhat.com/> virt-manager is packaged in Debian/Ubuntu too. I haven't built any Debian/Ubuntu VMs yet, but I would basically do the same thing but using debconf preseeding for automated Debian installations. -- Jon Dowland