Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855
Rep:
'qemu' is a virtual machine emulator. It means that you can install an OS in qemu (primarly to check a few things or to do some things that you do not want to do on a production machine). In short you cannot boot a windows partition using qemu.
What boots mulitple machines (OSs) is the bootloader. Linux comes with lilo and grub. My guess is you are using grub if you have installed Ubuntu.
'qemu' is a virtual machine emulator. It means that you can install an OS in qemu (primarly to check a few things or to do some things that you do not want to do on a production machine). In short you cannot boot a windows partition using qemu.
What boots mulitple machines (OSs) is the bootloader. Linux comes with lilo and grub. My guess is you are using grub if you have installed Ubuntu.
Thanks honeybadger, I am new to Linux but I think I am already using grub.
Second, I am not with you in you opinion and if so, how to use QEMU to boot an installed version via it??
What I mean is that, they use QEMU first to install os and then, use it to boot the installed version.
The only difference in my case that, I do have a physical partition that contains an installed version.
It is possible to use a physical drive or partition within some virtual machines. Qemu can do it. The problem is not with qemu but the windows. It will require you to correct the hal and to most likely re-activate it. It may not be possible to run some OEM windows under qemu as you won't be able to activate it.
Another issue is that it seems like you are trying to mount or use both OS's hard drive. It is almost impossible to mount the hosts drive and use it under qemu.
Why do you want to do this anyway? Please don't use terms like urgent.
It is possible to use a physical drive or partition within some virtual machines. Qemu can do it. The problem is not with qemu but the windows. It will require you to correct the hal and to most likely re-activate it. It may not be possible to run some OEM windows under qemu as you won't be able to activate it.
Another issue is that it seems like you are trying to mount or use both OS's hard drive. It is almost impossible to mount the hosts drive and use it under qemu.
Why do you want to do this anyway? Please don't use terms like urgent.
Thanks for your reply.
I need to do this because I want to use QEMU as a VM and run another OS.
What I really want is to run a guest os which is Windows under a host os which is Linux.
But I don't want to install a new image or to make a virtual one as I have a physical one already.
About the Urgent term, I am sorry but I need to have a solution very urgently.
I think you'd be better off either using a P2V application to change it from a physical installation to a virtual format or use some tool like clonezilla or dd to raw file and use it in qemu. Good P2V apps fix the hal but not sure if there are any for qemu. Might be. Any sort of other use would require some hal being changed or fixed. Again you would have to contact microsoft to activate it as the amount of hardware would be changed too much.
I think you'd be better off either using a P2V application to change it from a physical installation to a virtual format or use some tool like clonezilla or dd to raw file and use it in qemu. Good P2V apps fix the hal but not sure if there are any for qemu. Might be. Any sort of other use would require some hal being changed or fixed. Again you would have to contact microsoft to activate it as the amount of hardware would be changed too much.
Thanks for your care, I tried to think in something like that.
I will try to do it.
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855
Rep:
Hey Jefro, thanks for clearin this out. I did not know that qemu could boot an installed partition. I have suddenly found a new respect for the qemu guys. BTW does qemu has this abilities or could we use something like Virtual Box doing this too.
First is any VM that can use a partition. Some of them can but almost all state some warning. There are a few web pages on making your own .vmx file and making a phony vmdk I think to run vmware. Sure virtualbox has a hack to that too.
Qemu tends not to be one of the choices when you use a P2V application. Microsoft offers a free tool that can change an install to at least their virtual machine. That might be imported but we are back to the very basic nature of qemu.
VMware has a tool and there are plenty of other tools out there that can convert a physical machine to some form of virtual machine. I know of none but maybe someone else knows of some app to do that for qemu.
If it were me and we assumed a few things. I might be tempted to try a few ways. One is to use windows backup for sure to make a copy saved off to some remote media. A second copy of that might be used to convert or use as qemu. I have also used tools like ghost and dd and clonezilla and such to copy off drive to later load on a virtual machine.
If you insist then it might be possible to boot to a partition but it is more trouble than it would be worth in this case.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.