Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

boot Virtual machine using LXC and libvirt , mount error

I need to boot Vm using LXC with Openstack Juno.I'm configuring Openstack LXC by specifying libvirt_type=lxc in /etc/nova/nova-compute.conf on compute node.When I'm booting VM,i'm getting following error -

2015-07-13 18:36:11.152 24941 AUDIT nova.compute.claims [-] [instance: 8fda877c-196c-4551-a5fd-a34eaef73a81] Attempting claim: memory 512 MB, disk 1 GB 2015-07-13 18:36:11.153 24941 AUDIT nova.compute.claims [-] [instance: 8fda877c-196c-4551-a5fd-a34eaef73a81] Total memory: 3780 MB, used: 1024.00 MB 2015-07-13 18:36:11.153 24941 AUDIT nova.compute.claims [-] [instance: 8fda877c-196c-4551-a5fd-a34eaef73a81] memory limit not specified, defaulting to unlimited 2015-07-13 18:36:11.154 24941 AUDIT nova.compute.claims [-] [instance: 8fda877c-196c-4551-a5fd-a34eaef73a81] Total disk: 187 GB, used: 1.00 GB 2015-07-13 18:36:11.154 24941 AUDIT nova.compute.claims [-] [instance: 8fda877c-196c-4551-a5fd-a34eaef73a81] disk limit not specified, defaulting to unlimited 2015-07-13 18:36:11.162 24941 AUDIT nova.compute.claims [-] [instance: 8fda877c-196c-4551-a5fd-a34eaef73a81] Claim successful 2015-07-13 18:36:11.259 24941 INFO nova.scheduler.client.report [-] Compute_service record updated for ('COMPUTE-2', 'COMPUTE-2') 2015-07-13 18:36:11.387 24941 INFO nova.scheduler.client.report [-] Compute_service record updated for ('COMPUTE-2', 'COMPUTE-2') 2015-07-13 18:36:11.688 24941 INFO nova.virt.libvirt.driver [-] [instance: 8fda877c-196c-4551-a5fd-a34eaef73a81] Creating image 2015-07-13 18:36:11.878 24941 INFO nova.virt.disk.vfs.api [-] Unable to import guestfsfalling back to VFSLocalFS 2015-07-13 18:36:12.094 24941 INFO nova.scheduler.client.report [-] Compute_service record updated for ('COMPUTE-2', 'COMPUTE-2')

2015-07-13 18:36:13.121 24941 ERROR nova.virt.disk.api [-] Failed to mount container filesystem '<nova.virt.disk.api._diskimage object="" at="" 0x7f2d8403ffd0="">' on '/var/lib/nova/instances/8fda877c-196c-4551-a5fd-a34eaef73a81/rootfs':

Failed to mount filesystem: Unexpected error while running command. Command: sudo nova-rootwrap /etc/nova/rootwrap.conf mount /dev/nbd11 /var/lib/nova/instances/8fda877c-196c-4551-a5fd-a34eaef73a81/rootfs Exit code: 32 Stdout: u'' Stderr: u'mount: you must specify the filesystem type\n'

also i do get folowing warnings -

2015-07-13 18:20:14.357 22959 WARNING nova.virt.libvirt.driver [-] URI lxc:/// does not support full set of host capabilities: this function is not supported by the connection driver: virConnectBaselineCPU 2015-07-13 18:20:14.357 22959 WARNING nova.virt.libvirt.driver [-] The libvirt driver is not tested on lxc/x86_64 by the OpenStack project and thus its quality can not be ensured. For more information, see: https://wiki.openstack.org/wiki/HypervisorSupportMatrix 2015-07-13 18:20:14.357 22959 WARNING nova.virt.libvirt.driver [-] Running libvirt-lxc without user namespaces is dangerous. Containers spawned by Nova will be run as the host's root user. It is highly suggested that user namespaces be used in a public or multi-tenant environment.

Kindly help me with issue. Also do i need to create any specific image to work with LXC ? I am using default cirros image in openstacl setup.

click to hide/show revision 2
No.2 Revision

boot Virtual machine using LXC and libvirt , mount error

I need to boot Vm using LXC with Openstack Juno.I'm configuring Openstack LXC by specifying libvirt_type=lxc in /etc/nova/nova-compute.conf on compute node.When I'm booting VM,i'm getting following error -

2015-07-13 18:36:11.152 24941 AUDIT nova.compute.claims [-] [instance: 8fda877c-196c-4551-a5fd-a34eaef73a81] Attempting claim: memory 512 MB, disk 1 GB
2015-07-13 18:36:11.153 24941 AUDIT nova.compute.claims [-] [instance: 8fda877c-196c-4551-a5fd-a34eaef73a81] Total memory: 3780 MB, used: 1024.00 MB
2015-07-13 18:36:11.153 24941 AUDIT nova.compute.claims [-] [instance: 8fda877c-196c-4551-a5fd-a34eaef73a81] memory limit not specified, defaulting to unlimited
2015-07-13 18:36:11.154 24941 AUDIT nova.compute.claims [-] [instance: 8fda877c-196c-4551-a5fd-a34eaef73a81] Total disk: 187 GB, used: 1.00 GB
2015-07-13 18:36:11.154 24941 AUDIT nova.compute.claims [-] [instance: 8fda877c-196c-4551-a5fd-a34eaef73a81] disk limit not specified, defaulting to unlimited
2015-07-13 18:36:11.162 24941 AUDIT nova.compute.claims [-] [instance: 8fda877c-196c-4551-a5fd-a34eaef73a81] Claim successful
2015-07-13 18:36:11.259 24941 INFO nova.scheduler.client.report [-] Compute_service record updated for ('COMPUTE-2', 'COMPUTE-2')
2015-07-13 18:36:11.387 24941 INFO nova.scheduler.client.report [-] Compute_service record updated for ('COMPUTE-2', 'COMPUTE-2')
2015-07-13 18:36:11.688 24941 INFO nova.virt.libvirt.driver [-] [instance: 8fda877c-196c-4551-a5fd-a34eaef73a81] Creating image
2015-07-13 18:36:11.878 24941 INFO nova.virt.disk.vfs.api [-] Unable to import guestfsfalling back to VFSLocalFS
2015-07-13 18:36:12.094 24941 INFO nova.scheduler.client.report [-] Compute_service record updated for ('COMPUTE-2', 'COMPUTE-2')

'COMPUTE-2') 2015-07-13 18:36:13.121 24941 ERROR **ERROR nova.virt.disk.api [-] Failed to mount container filesystem '<nova.virt.disk.api._diskimage object="" at="" 0x7f2d8403ffd0="">' filesystem** '<nova.virt.disk.api._DiskImage object at 0x7f2d8403ffd0>' on '/var/lib/nova/instances/8fda877c-196c-4551-a5fd-a34eaef73a81/rootfs':

'/var/lib/nova/instances/8fda877c-196c-4551-a5fd-a34eaef73a81/rootfs': -- Failed to mount filesystem: Unexpected error while running command. Command: sudo nova-rootwrap /etc/nova/rootwrap.conf mount /dev/nbd11 /var/lib/nova/instances/8fda877c-196c-4551-a5fd-a34eaef73a81/rootfs Exit code: 32 Stdout: u'' Stderr: u'mount: you must specify the filesystem type\n'

type\n'

also i do get folowing warnings -

2015-07-13 18:20:14.357 22959 WARNING **WARNING** nova.virt.libvirt.driver [-] URI lxc:/// does not support full set of host capabilities: this function is not supported by the connection driver: virConnectBaselineCPU
2015-07-13 18:20:14.357 22959 WARNING **WARNING** nova.virt.libvirt.driver [-] The libvirt driver is not tested on lxc/x86_64 by the OpenStack project and thus its quality can not be ensured. For more information, see: https://wiki.openstack.org/wiki/HypervisorSupportMatrix
2015-07-13 18:20:14.357 22959 WARNING **WARNING** nova.virt.libvirt.driver [-] Running libvirt-lxc without user namespaces is dangerous. Containers spawned by Nova will be run as the host's root user. It is highly suggested that user namespaces be used in a public or multi-tenant environment.

environment.

Kindly help me with issue. Also do i need to create any specific image to work with LXC ? I am using default cirros image in openstacl setup.