LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 10-24-2012, 11:15 AM   #1
Nick_C
Member
 
Registered: Jan 2012
Location: London, England, UK
Distribution: CentOS, Mageia, Debian, Fedora, openSUSE, Ubuntu
Posts: 257

Rep: Reputation: Disabled
Installing VM from source on NTFS partition fails


Just tried to install a Win 8 VM from a source .img on an NTFS partition. This fails with a permission denied error despite the permissions on this file being full rwxrwxrwx.

Actual error is:
Unable to complete install: 'internal error Process exited while reading console log output: char device redirected to /dev/pts/2
qemu-kvm: -drive file=/mnt/Source/OS/Windows/Win8.img,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw: could not open disk image /mnt/Source/OS/Windows/Win8.img: Permission denied

Any suggestions apart from copying that file into /home first and installing from there.

Thanks,
Nick
 
Old 10-25-2012, 08:28 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
I think you should be using '-cdrom /mnt/Source/OS/Windows/Win8.img' if it's an image of the install media.
 
1 members found this post helpful.
Old 10-26-2012, 08:06 AM   #3
Nick_C
Member
 
Registered: Jan 2012
Location: London, England, UK
Distribution: CentOS, Mageia, Debian, Fedora, openSUSE, Ubuntu
Posts: 257

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by kbp View Post
I think you should be using '-cdrom /mnt/Source/OS/Windows/Win8.img' if it's an image of the install media.
Not sure how I can do that as I am using virt-manager to create the new VM. I select 'Use ISO image' and browse to the .iso.
 
Old 10-26-2012, 09:49 AM   #4
Nick_C
Member
 
Registered: Jan 2012
Location: London, England, UK
Distribution: CentOS, Mageia, Debian, Fedora, openSUSE, Ubuntu
Posts: 257

Original Poster
Rep: Reputation: Disabled
I think the problem is because virt-manager runs as the 'qemu' user & 'qemu' group. This user does not have access to the /mnt/Source directory which is user: root, group: users. I have tried adding 'qemu' to the 'users' group but still that doesn't seem to work.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
running chmod on a mounted ntfs partition fails emekadavid Linux - General 8 08-06-2012 04:01 PM
ran mkfs.vfat over top ntfs partition... any way to restore ntfs partition info? oryan_dunn Linux - Hardware 8 10-14-2010 06:08 PM
What does a WinXP crash do to the HDD that means mounting the ntfs partition fails? MoschopsUK Linux - Hardware 2 09-16-2008 07:59 AM
Fails to mount NTFS partition preeth45 Linux - Software 3 06-20-2008 05:30 PM
Installing Linus on NTFS partition virus2 Linux - Newbie 10 04-29-2008 05:12 AM


All times are GMT -5. The time now is 08:03 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration