AFter use the qemu-system-x86_64 with strace, the error as below:
2015-11-06 15:55:12.681 ERROR nova.compute.manager [req-b2e4d8e4-70d2-40b7-814c-409ae1720729 None None] Error updating resources for node panghua-CS24-TY: internal error: Child process (LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin /usr/bin/qemu-system-x86_64 -help) unexpected exit status 1: execve("/usr/bin/qemu-system-x86_64", ["/usr/bin/qemu-system-x86_64", "-help"], [/* 3 vars */]) = 0
brk(0) = 0x7f6b6d250000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6b6bf56000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=95906, ...}) = 0
mmap(NULL, 95906, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7f6b6bf3e000
close(4) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 4
read(4, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\v\2\0\0\0\0\0"..., 832) = 832
fstat(4, {st_mode=
And I spawn a vm by setting security_driver=None in qemu, below stance-00000027.log is the successful one, comparing with instance-0000001e.log, basically only uuid or names different, same configuration of smbios.
@Serge
AFter use the qemu-system-x86_64 with strace, the error as below: manager [req-b2e4d8e4- 70d2-40b7- 814c-409ae17207 29 None None] Error updating resources for node panghua-CS24-TY: internal error: Child process (LC_ALL=C PATH=/usr/ local/sbin: /usr/local/ bin:/sbin: /bin:/usr/ sbin:/usr/ bin /usr/bin/ qemu-system- x86_64 -help) unexpected exit status 1: execve( "/usr/bin/ qemu-system- x86_64" , ["/usr/ bin/qemu- system- x86_64" , "-help"], [/* 3 vars */]) = 0 "/etc/ld. so.nohwcap" , F_OK) = -1 ENOENT (No such file or directory) PROT_WRITE, MAP_PRIVATE| MAP_ANONYMOUS, -1, 0) = 0x7f6b6bf56000 "/etc/ld. so.preload" , R_OK) = -1 ENOENT (No such file or directory) etc/ld. so.cache" , O_RDONLY|O_CLOEXEC) = 4 S_IFREG| 0644, st_size=95906, ...}) = 0 "/etc/ld. so.nohwcap" , F_OK) = -1 ENOENT (No such file or directory) lib/x86_ 64-linux- gnu/libc. so.6", O_RDONLY|O_CLOEXEC) = 4 2\1\1\3\ 0\0\0\0\ 0\0\0\0\ 3\0>\0\ 1\0\0\0` \v\2\0\ 0\0\0\0" ..., 832) = 832
2015-11-06 15:55:12.681 ERROR nova.compute.
brk(0) = 0x7f6b6d250000
access(
mmap(NULL, 8192, PROT_READ|
access(
open("/
fstat(4, {st_mode=
mmap(NULL, 95906, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7f6b6bf3e000
close(4) = 0
access(
open("/
read(4, "\177ELF\
fstat(4, {st_mode=
And I spawn a vm by setting security_ driver= None in qemu, below stance-00000027.log is the successful one, comparing with instance- 0000001e. log, basically only uuid or names different, same configuration of smbios.
2015-11-06 09:29:41.882+0000: starting up local/sbin: /usr/local/ bin:/sbin: /bin:/usr/ sbin:/usr/ bin QEMU_AUDIO_DRV=none /usr/bin/ qemu-system- x86_64 -name instance-00000027 -S -machine pc-i440fx- utopic, accel=kvm, usb=off -m 2048 -realtime mlock=off -smp 1,sockets= 1,cores= 1,threads= 1 -object memory- backend- file,prealloc= yes,mem- path=/dev/ hugepages/ libvirt/ qemu,share= on,size= 2048M,id= ram-node0, host-nodes= 0,policy= bind -numa node,nodeid= 0,cpus= 0,memdev= ram-node0 -uuid 6c80c9ec- 4445-4101- 99c9-6339cb2f56 a9 -smbios type=1, manufacturer= OpenStack Foundation, product= OpenStack Nova,version= 12.0.0, serial= e87d7510- 5766-e35e- 8016-ebeb55d7de ff,uuid= 6c80c9ec- 4445-4101- 99c9-6339cb2f56 a9,family= Virtual Machine -no-user-config -nodefaults -chardev socket, id=charmonitor, path=/var/ lib/libvirt/ qemu/instance- 00000027. 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=/opt/ stack/data/ nova/instances/ 6c80c9ec- 4445-4101- 99c9-6339cb2f56 a9/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 -drive file=/opt/ stack/data/ nova/instances/ 6c80c9ec- 4445-4101- 99c9-6339cb2f56 a9/disk. config, if=none, id=drive- ide0-1- 1,readonly= on,format= raw,cache= none -device ide-cd, bus=ide. 1,unit= 1,drive= drive-ide0- 1-1,id= ide0-1- 1 -chardev socket, id=charnet0, path=/var/ run/openvswitch /vhu5392206b- dc -netdev type=vhost- user,id= hostnet0, chardev= charnet0 -device virtio- net-pci, netdev= hostnet0, id=net0, mac=fa: 16:3e:e5: 41:f1,bus= pci.0,addr= 0x3 -chardev file,id= charserial0, path=/opt/ stack/data/ nova/instances/ 6c80c9ec- 4445-4101- 99c9-6339cb2f56 a9/console. log -device isa-serial, chardev= charserial0, id=serial0 -chardev pty,id=charserial1 -device isa-serial, chardev= charserial1, id=serial1 -vnc 127.0.0.1:0 -k en-us -device cirrus- vga,id= video0, bus=pci. 0,addr= 0x2 -device virtio- balloon- pci,id= balloon0, bus=pci. 0,addr= 0x5 -msg timestamp=on 06T09:29: 42.486509Z qemu-system-x86_64: -netdev type=vhost- user,id= hostnet0, chardev= charnet0: chardev "charnet0" went up
LC_ALL=C PATH=/usr/
char device redirected to /dev/pts/41 (label charserial1)
2015-11-
Is their anyway to test the apparmor with libvirt? Thanks.