LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 07-06-2017, 07:52 AM   #1
alexbrui
Member
 
Registered: Nov 2009
Location: Ukraine
Distribution: Slackware 13.37
Posts: 38

Rep: Reputation: 0
QEMU can't read ACPI SLIC table from file


Some time ago I created VM with Windows 7 using virt-manager under Debian 8. To make it work correctly I edited VM description and added strings to load SLIC table from corresponding file, containing dump of the SLIC table.
Code:
  <qemu:commandline>
    <qemu:arg value='-acpitable'/>
    <qemu:arg value='file=/path/to/slic.bin'/>
  </qemu:commandline>
It worked like a charm and Windows was activated.

Later I reinstalled my system and moved to Ubuntu. Now trying to restore VM. I have XML with VM definition as well as disk image, so I imported XML, changing path to disk image and SLIC dump, but can not start VM in virt-mananer, error is:
Code:
qemu-system-x86_64: -acpitable file=/tmp/slic.bin: Wrong acpi table provided: can't open file /tmp/slic.bin: Permission denied
File exists and my user has all permissions. I tried to change owner of this file to libvirt-qemu user and give him all permissions, but this does not helps. Also I tried to recreare SLIC dump and use new file instead of an old file. Also without success.

If I remove "-acpitable" from XML, then VM works, but Windows activation is lost.

Any ideas what can be wrong?

Ubuntu 16.04.2
virt-manager 1.3.2
qemu 2.5.0
 
Old 08-03-2017, 11:51 AM   #2
za267
LQ Newbie
 
Registered: Aug 2017
Posts: 3

Rep: Reputation: Disabled
Mandatory Access Control?

I don't have an answer for you, but here are a few suggestions:

If you were on a RH based system like Fedora/CentOS or RedHat, I'd recommend checking SeLinux file contexts. (restorecon -RFv ./<file>)

As you are on Ubuntu, I'm not sure - I know that Ubuntu uses AppArmor, perhaps you could look into that. It's similar to SeLinux in the sense that it is a Mandatory Access Control security layer, but I have no idea how it works. Check the following site which has some information about AppArmor audit and log messages: http://wiki.apparmor.net/index.php/A..._the_Log_files

Also, your user might need to be part of a specific group which gives access to the file?

Cheers,

Last edited by za267; 08-03-2017 at 11:52 AM.
 
  


Reply

Tags
acpi, qemu, virt-manager



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
There is no symbol table can be read, please use the file orders . aicaicai Programming 4 12-20-2011 02:05 AM
how to read data from text file and output into a table? j123 Linux - Newbie 26 04-15-2010 12:58 AM
How to read the start address of the ACPI table ? are there any kernel API? jitendrapradhan Linux - Kernel 0 10-08-2008 03:24 AM
create, read and write a table in xml file using C alix123 Programming 1 12-02-2004 12:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 07:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration