LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-14-2015, 05:39 AM   #1
jesus92gz
LQ Newbie
 
Registered: Mar 2015
Distribution: Debian 7.8, Debian 8
Posts: 5

Rep: Reputation: Disabled
Question QEMU - Use partition as virtual disk


Hello.

I have got Debian 7.8 Wheezy installed on my computer. I have got a partition with Windows 8.1 installed.

I would like to know if there is some way I can use this partition as a "virtual disk" but that it will not be "virtual" anymore, but that it will access the partition, reading and writting it, executing it in a virtual machine.

After searching in Google I could not find the way to accomplish this.

I'm using QEMU-KVM and virt-manager as GUI to perform administration tasks.

Last edited by jesus92gz; 03-14-2015 at 05:45 AM.
 
Old 03-14-2015, 07:48 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Using plain qemu you can pass the partition as an option like '-hda /dev/sdx'.

But if Windows is installed before it may not function. Although you can do clean install within qemu.
 
Old 03-14-2015, 08:38 AM   #3
jesus92gz
LQ Newbie
 
Registered: Mar 2015
Distribution: Debian 7.8, Debian 8
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks for your reply.

I have tried:

Code:
qemu -hda /dev/sdaX
Where X the number of the C partition.

But after trying this command it is stuck in start screen: Booting from hard disk...

Windows was installed prior Debian

I have installed a Windows Server clean install, but it would be great if I could mount the Windows 8.1 partition as well.

If I run qemu -hda /dev/sda it is displaying just a message: GRUB but not showing the GRUB screen nor rEFInd boot manager that's installed.
 
Old 03-17-2015, 04:29 AM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
I said a new install in qemu. It is not showing grub or refind because by default qemu uses a BIOS and not a UEFI. It is better if you install Windows in BIOS Compatibility mode. And even qemu has a tianocore UEFI image named OVMF. By default it uses seabios. Debian docs may help or web search for tianocore/ovmf.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto recreating a partition table in a virtual disk? theosys Linux - Virtualization and Cloud 1 03-15-2015 12:06 PM
[SOLVED] qemu-kvm permission for partition disk lupe Linux - Virtualization and Cloud 1 01-20-2015 05:22 AM
creating virtual disk and installing grub and use with qemu ssanthshtech Linux - Virtualization and Cloud 4 01-15-2013 07:20 AM
creating virtual disk and installing grub and use with qemu ssanthshtech Linux - Newbie 4 01-14-2013 11:13 PM
Mount the QEmu virtual disk/Access CD Rom Iresh Ubuntu 2 07-18-2007 06:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:11 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