Feature #1612
support openvz domain management
| Status: | New | Start: | 05/09/2012 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - | |||
| Difficulity: | medium | |||
| Votes: | 1 (View) |
Description
I'm trying to use foreman+libvirt unig openvz as libvirt driver.
virsh works well with my xml "create" files but if I use this file as template for vm creation, the foreman complains because it tries to make some checks like memory availability that openvz libvirt driver doesn't understand.
Is it possible to totally disable this checks and directly try to create the VM using the template? I even don't need to allocate storage for this VM.
This is a sample xml file from a openvz domain:
virsh # dumpxml 102
<domain type='openvz' id='102'>
<name>102</name>
<uuid>91da1f8d-8199-5948-45f3-5433f100f002</uuid>
<memory>0</memory>
<currentMemory>0</currentMemory>
<vcpu>24</vcpu>
<os>
<type>exe</type>
<init>/sbin/init</init>
</os>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>destroy</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<filesystem type='template' accessmode='passthrough'>
<source name='centos-6-x86_64'/>
<target dir='/'/>
</filesystem>
<interface type='bridge'>
<mac address='52:54:00:42:af:a2'/>
<source bridge='br10'/>
<target dev='veth102.10'/>
</interface>
</devices>
</domain>
Thanks,
Agustà Rivero
History
Updated by Ohad Levy 12 months ago
- Tracker changed from Support to Feature
- Subject changed from disable checks in vm creation to support openvz domain management
- Difficulity set to medium
I'm guessing the right way to handle it is to add another openvz implementation (just like the libvirt one).
maybe the libvirt one should be renamed to KVM instead, than it might make a bit more sense.
Updated by Julien Cornuwel 8 months ago
What about using puppet itself? There's a module that can create containers, start them and force a puppet run.
https://github.com/carlasouza/puppet-virt
An integration to foreman's interface would be nice though...
