[Openstack] Permission denied error while allocating memory for virtual machine from hugepages .
Mohit Malik
hr_malik at rediffmail.com
Mon Aug 31 09:59:47 UTC 2015
Hi All,I am running 3 node setup .I am allocating memory for virtual machine from huge pages .Facing an issue "permission denied" .
Please find the below command line arguments for the virtual machine .
Image type -> glance image-show VirtIoImageDemo+-------------------------+--------------------------------------+| Property | Value |+-------------------------+--------------------------------------+| Property 'hw_vif_model' | virtio || checksum | 3c0ecbfdae4be7f4170837da831ce65b || container_format | bare || created_at | 2015-08-27T10:59:31 || deleted | False || disk_format | qcow2 || id | 19845c86-7508-456c-94a8-bb20a403a152 || is_public | True || min_disk | 0 || min_ram | 0 || name | VirtIoImageDemo || owner | 9626b042b482469486fa7103c35d1203 || protected | False || size | 21474836480 || status | active || updated_at | 2015-08-27T11:10:25 |+-------------------------+--------------------------------------+
Instance Log ->2015-08-31 09:19:52.271+0000: starting upLC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-system-x86_64 -name instance-0000016f -S -machine pc-i440fx-trusty,accel=kvm,usb=off -cpu host -m 2048 -mem-prealloc -mem-path /dev/hugepages/libvirt/qemu -realtime mlock=off -smp 2,sockets=2,cores=1,threads=1 -uuid 363aa6e2-3090-4f31-a6ae-ccd368f96e91 -smbios type=1,manufacturer=OpenStack Foundation,product=OpenStack Nova,version=2014.1,serial=44454c4c-3000-104d-804a-b8c04f473332,uuid=363aa6e2-3090-4f31-a6ae-ccd368f96e91 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-0000016f.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=discard -no-hpet -no-shutdown -boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/var/lib/nova/instances/363aa6e2-3090-4f31-a6ae-ccd368f96e91/disk,if=none,id=drive-virtio-disk0,format=qcow2,cache=none -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -netdev tap,fd=24,id=hostnet0,vhost=on,vhostfd=25 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=fa:16:3e:1a:60:5b,bus=pci.0,addr=0x3 -chardev file,id=charserial0,path=/var/lib/nova/instances/363aa6e2-3090-4f31-a6ae-ccd368f96e91/console.log -device isa-serial,chardev=charserial0,id=serial0 -chardev pty,id=charserial1 -device isa-serial,chardev=charserial1,id=serial1 -device usb-tablet,id=input0 -vnc 0.0.0.0:0 -k en-us -device cirrus-vga,id=video0,bus=pci.0,addr=0x2 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5Domain id=2 is tainted: host-cpuchar device redirected to /dev/pts/8 (label charserial1)/dev/hugepages/libvirt/qemu: Permission denied2015-08-31 09:19:52.544+0000: shutting down
mount | grep hugecgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,relatime,hugetlb)hugetlbfs on /dev/hugepages type hugetlbfs (rw,uid=120,mode=1770,gid=128)
sysctl -a | grep hugeerror: "Invalid argument" reading key "fs.binfmt_misc.register"error: permission denied on key 'net.ipv4.route.flush'error: permission denied on key 'net.ipv6.route.flush'error: permission denied on key 'vm.compact_memory'vm.hugepages_treat_as_movable = 0vm.hugetlb_shm_group = 0vm.nr_hugepages = 3072vm.nr_hugepages_mempolicy = 3072vm.nr_overcommit_hugepages = 0
Please help me resolve the issue.thanksMohit Malik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150831/7a8d2d8b/attachment.html>
More information about the Openstack
mailing list