FS#38007 - [libvirt] unexcepted domain type lxc

Attached to Project: Community Packages
Opened by Florian Klink (flokli) - Wednesday, 04 December 2013, 10:54 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 12 December 2013, 09:39 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Using latest libvirt (1.2.0), lxc domains don't work anymore.

vm.xml:

<domain type="lxc">
<name>test</name>
<memory unit="GiB">2</memory>
<os>
<type>exe</type>
<init>/sbin/init</init>
</os>
<devices>
<filesystem type="mount">
<source dir="/var/lib/libvirt/filesysystems/test"/>
<target dir="/"/>
</filesystem>
<interface type="network">
<source network="default"/>
</interface>
<console type="pty"/>
</devices>
</domain>



# virsh create vm.xml
error: Failed to create domain from vm.xml
error: internal error: unexcepted domain type lxc, excepted one of these: qemu, kqemu, kvm, xen


Seems like lxc support is not correctly compiled in?
This task depends upon

Closed by  Sergej Pupykin (sergej)
Thursday, 12 December 2013, 09:39 GMT
Reason for closing:  Not a bug
Comment by Florian Klink (flokli) - Wednesday, 04 December 2013, 10:55 GMT
# lxc-checkconfig
--- Namespaces ---
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: missing
Network namespace: enabled
Multiple /dev/pts instances: enabled

--- Control groups ---
Cgroup: enabled
Cgroup clone_children flag: enabled
Cgroup device: enabled
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: enabled
Cgroup cpuset: enabled

--- Misc ---
Veth pair device: enabled
Macvlan: enabled
Vlan: enabled
File capabilities: enabled
Comment by Sergej Pupykin (sergej) - Wednesday, 04 December 2013, 17:11 GMT
it is strange, build reports

configure: Drivers
configure:
configure: Xen: no
configure: QEMU: yes
configure: UML: yes
configure: OpenVZ: yes
configure: VMware: yes
configure: VBox: yes
configure: XenAPI: no
configure: xenlight: no
configure: LXC: yes
configure: PHYP: yes
configure: ESX: yes
configure: Hyper-V: no
configure: Parallels: no
configure: Test: yes
configure: Remote: yes
configure: Network: yes
configure: Libvirtd: yes
configure: Interface: yes
configure: macvtap: yes
configure: virtport: yes
configure:
configure: Storage Drivers
configure:
configure: Dir: yes
configure: FS: yes
configure: NetFS: yes
configure: LVM: yes
configure: iSCSI: no
configure: SCSI: yes
configure: mpath: yes
configure: Disk: yes
configure: RBD: no
configure: Sheepdog: no
configure: Gluster: no
Comment by Florian Klink (flokli) - Thursday, 05 December 2013, 13:51 GMT
But you are able to reproduce?
Comment by Sergej Pupykin (sergej) - Thursday, 05 December 2013, 14:22 GMT
Yes, if does not work for me too.
Comment by Florian Klink (flokli) - Thursday, 12 December 2013, 02:23 GMT
I asked on the libvirt-user ml:

If no connection uri is given, virsh automatically tries to connect to the qemu hypervisor (if support for it is compiled in).

# virsh create vm.xml

then fails, as qemu hypervisor doesn't support lxc machines.

But using

# virsh -c lxc:// create vm.xml

works, so no bug here :-)

Loading...