Linux - Virtualization and CloudThis 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
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: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332
Rep:
QEMU - Trying to install Win 7 from .iso
In snapshot2.png you can see the command I'm using to install Windows 7 from an .iso file I made and placed on a usb device. I hit "Enter" in qemu box to choose Windows Setup.
But, I get the following message in snapshot3.png.
I can't figure out what the problem is.
I completed a test installation using this .iso file on virtualbox and it completed with no problems.
Has anyone run into this?
Any suggestions what to try next with qemu?
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332
Original Poster
Rep:
I issued the following command to access the .iso file and install it in the 20 gig. win7.img file I previously created:
bash-3.1# qemu -cdrom /mnt/usb/Win_7_Ultimate_x64_OEM_DVD.iso -boot d -hda /home/mike/win7.img
Upon issuing the command, a message appears in the terminal:
open /dev/kvm: No such file or directory
Could not initialize KVM, will disable KVM support
However, the command does open up a separate terminal window and there's a "dos-box-like" message from the Windows Boot Manager:
Choose an operating system to start, or press TAB to select a tool -
There's one choice below called "Windows Setup" and I highlight it and hit "Enter".
Then next message from the Windows Boot Manager screen states:
Windows failed to start. A recent hardware or software change might be the cause. To fix the problem:
1. Insert your Windows installation disc and restart your computer.
2. Choose your language settings, and then click "Next."
3. Click "Repair your computer."
If you do not have the this disc, contact your system administrator.
Then you can hit "Enter" to continue or "Esc" to exit.
Anyone seen a similar/same thing when using qemu to install Win7?
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
just our of curiosity but qemu to me seems like a lightweight emulator that might simply not be the best choice for windows 7, especially when there are other free (albeit probably not open source) alternatives like sun virtualbox or vmware, just a thought
Use qemu without any acceleration. The command should be:
Code:
#rmmod kvm
and install with normal user and not root
Code:
qemu -cdrom /path/to/windows7.iso -hda /path/to/disk.img -m <needs to be 512 or greater> -soundhw sb16<or all> -boot d
.
You forgot to specify the memory and sound hardware.
There is also the option of kqemu as a loadable module.
You can load the kvm or kqemu module with
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332
Original Poster
Rep:
Thanks for your response, Mr. Biscuit!
I'm itching to get home and give it a try.
I'm wondering why it's necessary to remove the kvm mod -- I thought it's necessary to have it installed and loaded. I thought qemu relied on it?
If you have any links or info. on this, I'd like to understand it better.
I'm definitely still struggling to understand the differences between qemu / kqemu / kvm-qemu.
Thanks again for your help.
I'll report back on my results.
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332
Original Poster
Rep:
Quote:
Originally Posted by unSpawn
I doubt you "created" the Win_7_Ultimate_x64_OEM_DVD.iso yourself. That kind of name typically is given to warezed OEM ISOs.
I know it sounds lame, but I have a friend who works for a larger company.
He gave me a disc that has not yet been installed and told me I could test with it until he needed it for an end-user install. He trusts me to handle with care and is probably hoping I'll show him how to do a kvm-qemu install once I figure it out.
So I've copied the contents of the disc and made an .iso file with the name I've used in the thread.
I only want to use it to learn how to install and configure Win7 in my linux environment at home. If I can perfect it and make it work well, then I'll be ready to buy my own copy upon returning my friend's disc. If I can't make it run properly, then I'll sit with my purchased version of Win XP Pro for a while longer.
UnSpawn, you've been very helpful to me and I respect your opinion.
If you feel the actions, processes, or subject-matter of this thread are unethical, I will not pursue further help or discussion about such an installation.
Please let me know what you think.
I have a copy of the Windows 7 Release Candidate.
I can turn the clock back on my linux machine and use this instead to experiment with Windows 7 installation under kvm-qemu - is this a more tenable solution?
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332
Original Poster
Rep:
Quote:
Originally Posted by smeezekitty
For 64 bit OS'es you have to use qemu-system-x86_64 not qemu
Thanks, Smeezekitty.
I was testing last night and was able to get windows to "boot up" and begin loading setup files but after trying several options I got the same failure every time - error message stating the cpu is not 64-bit.
It was confusing because Virtualbox reports that the necessary AMD-VT environment is active/enabled.
I was about to flash my bios, but now that I see your post I think I will try your suggestion.
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332
Original Poster
Rep:
I'm retiring this thread.
Qemu works and begins installing Windows 7.
However, Win 7 install fails as a result of some IRQ or driver/hardware conflict that causes a blue screen and "STOP" code.
An entirely different issue at this point.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.