LinuxQuestions.org
Visit Jeremy's Blog.
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 03-06-2010, 11:49 PM   #1
Sum1
Member
 
Registered: Jul 2007
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332

Rep: Reputation: 30
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?

Thanks for your help.
 
Old 03-06-2010, 11:54 PM   #2
Sum1
Member
 
Registered: Jul 2007
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332

Original Poster
Rep: Reputation: 30
I apologize. I uploaded two screenshots but I don't see them attached to the post, so you can't view what I was referring to.

I'll have to add the information tomorrow.
Too tired now.
 
Old 03-07-2010, 12:25 AM   #3
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
Did you use cp?
 
Old 03-07-2010, 09:21 AM   #4
Sum1
Member
 
Registered: Jul 2007
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332

Original Poster
Rep: Reputation: 30
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?

Thanks for your help.
 
Old 03-07-2010, 12:25 PM   #5
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
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
 
Old 03-07-2010, 02:34 PM   #6
Sum1
Member
 
Registered: Jul 2007
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by frieza View Post
(albeit probably not open source)
this makes a difference to me.
 
Old 03-08-2010, 12:11 PM   #7
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
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
Code:
<root>#modprobe <kvm or kqemu>
and then exit from root and boot into the image.
 
Old 03-08-2010, 01:32 PM   #8
Sum1
Member
 
Registered: Jul 2007
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332

Original Poster
Rep: Reputation: 30
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.
 
Old 03-08-2010, 02:53 PM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I doubt you "created" the Win_7_Ultimate_x64_OEM_DVD.iso yourself. That kind of name typically is given to warezed OEM ISOs.
 
Old 03-08-2010, 04:08 PM   #10
Sum1
Member
 
Registered: Jul 2007
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by unSpawn View Post
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?

Thanks for listening.
 
Old 03-08-2010, 04:29 PM   #11
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
NP, please proceed. I know you know what's over the edge and what's not...
 
Old 03-08-2010, 04:41 PM   #12
Sum1
Member
 
Registered: Jul 2007
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by unSpawn View Post
NP, please proceed. I know you know what's over the edge and what's not...
Excellent, thanks. :-)
 
Old 03-08-2010, 09:50 PM   #13
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
For 64 bit OS'es you have to use qemu-system-x86_64 not qemu
 
Old 03-09-2010, 06:49 AM   #14
Sum1
Member
 
Registered: Jul 2007
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by smeezekitty View Post
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.

I found this helpful thread after not finding anything about "qemu-system-x86_64" in the qemu documentation -
http://www.linuxquestions.org/questi...vista.-616158/

Thanks for your guidance.

Last edited by Sum1; 03-09-2010 at 09:42 AM.
 
Old 03-09-2010, 10:43 PM   #15
Sum1
Member
 
Registered: Jul 2007
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332

Original Poster
Rep: Reputation: 30
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.
 
  


Reply



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
windows qemu running linux .iso with bit torrent already installed nwtlnxqstns Linux - Newbie 1 11-23-2009 06:28 AM
Can I convert a xen .iso for use with qemu (kvm .iso)? aimGuy Linux - Virtualization and Cloud 2 10-16-2009 05:15 AM
Using Qemu with iso files SpectrumZ Linux - Software 1 09-23-2009 06:53 PM
how to access files on HDD while running an ISO on QEMU? ciden Linux - Software 2 08-10-2008 02:21 AM
trying to install sarge 180 mb iso that i downloaded. i have win 98se and would like analogg59 Linux - Software 9 07-22-2005 12:05 AM

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

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