LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices

Reply
 
Search this Thread
Old 02-01-2011, 05:46 PM   #1
dwains
LQ Newbie
 
Registered: Dec 2002
Location: Raleigh NC USA
Distribution: Red Hat
Posts: 18

Rep: Reputation: 0
Running Windows 7 in a Virtual Machine on my new Laptop


Just before Christmas I purchased a new Toshiba (Satellite A665) laptop that is destined to become my main personal machine. It came pre-installed with Windows 7 (no surprise), but I want to use Ubuntu 10.10 on this system. However, there are 3-4 programs I really need to run under Windows (TaxCut, Quicken, etc). So what I would like to do is turn that preloaded Windows 7 installation into a virtual machine, and then have that available to run under Ubuntu when I need it. This does not sound like rocket science to me, but so far I have not made much progress.

1. I think I have settled on running VirtualBox 4 as my hypervisor of choice. It seems to be the most polished of the things I have tried so far. But I would take about any of the available solutions (Xen, KVM) that would work.

2. I tried to make a VM out of Windows 7 backup CDs, but I would get errors after the initial boot in several hypervisors. This may be due to Microsoft brain damaging the installation to prevent the OEM version of Windows 7 from being installed.

3. I also tried the disk2vhd utility, but I could never get it to produce both a vhd with both the system partition and the c: drive. I could get the c: drive to work by itself, but this vhd would not boot under any of the hypervisors. I get a disk error.

I am kinda running out of ideas. I understand I could buy a non-OEM copy of Windows 7 - but I really do not want to do that - I have already purchased Windows as far as I am concerned. I am not robbing MS of thing. And I want to run this copy of Windows on the same system it came with.

Any ideas for me to try?
 
Old 02-01-2011, 06:10 PM   #2
rayfward
Member
 
Registered: May 2009
Location: Leeds Uk
Distribution: Linux Ubuntu
Posts: 87

Rep: Reputation: 4
Well windows 7 works with Virtualbox I have even installed vista from the recovery CD on Virtualbox.
If you want to install from an image make an iso image or mount the cd/dvd rom under Virtualbox.
I have messed around with kvm on and off for a couple of years now and it's not as easy or fast as Virtualbox.

Regards
 
Old 02-01-2011, 06:13 PM   #3
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,629

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
I have a few Virtual machines in virtual box and wanted to install my windows machine to virtualbox, but after looking at the info at Vb, I was discouraged because they say that you're not supposed to load a system that came preinstalled to VB.
But I was Googling different os'es and saw that you can download vdi's with preloaded os'es free, but they also take donations.
 
Old 02-01-2011, 07:31 PM   #4
jefro
Guru
 
Registered: Mar 2008
Posts: 11,549

Rep: Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405
That is not the way to do it. Just keep the W7 and run either Virtualbox or VMplayer. They would run well on that and you could run both near to above native speeds. Then install all the linux you want. No need to fool with wireless drivers, sata controllers or audio or such.


You will not be able to use W7 restore disk that came with it normally. The disk is tied to hardware. It could be possible that one could use a P2V app to convert it or clone it off to a VM. I have used dd to a file and then converted it in qemu-image and then do a repair. The problem is that the repair may require a new key from MS so you would have wasted too much time.

I say just keep the W7 and run VM's if you want you can install guest additions to select installs to make it drag and drop and other goodies.

Last edited by jefro; 02-07-2011 at 03:34 PM.
 
Old 02-07-2011, 03:44 AM   #5
jfk
LQ Newbie
 
Registered: Oct 2003
Location: West Byfleet, UK
Distribution: FC3
Posts: 7

Rep: Reputation: 1
Quote:
Originally Posted by dwains View Post
Just before Christmas I purchased a new Toshiba (Satellite A665) laptop that is destined to become my main personal machine. It came pre-installed with Windows 7 (no surprise), but I want to use Ubuntu 10.10 on this system. However, there are 3-4 programs I really need to run under Windows (TaxCut, Quicken, etc). So what I would like to do is turn that preloaded Windows 7 installation into a virtual machine, and then have that available to run under Ubuntu when I need it. This does not sound like rocket science to me, but so far I have not made much progress.

1. I think I have settled on running VirtualBox 4 as my hypervisor of choice. It seems to be the most polished of the things I have tried so far. But I would take about any of the available solutions (Xen, KVM) that would work.

2. I tried to make a VM out of Windows 7 backup CDs, but I would get errors after the initial boot in several hypervisors. This may be due to Microsoft brain damaging the installation to prevent the OEM version of Windows 7 from being installed.

3. I also tried the disk2vhd utility, but I could never get it to produce both a vhd with both the system partition and the c: drive. I could get the c: drive to work by itself, but this vhd would not boot under any of the hypervisors. I get a disk error.

I am kinda running out of ideas. I understand I could buy a non-OEM copy of Windows 7 - but I really do not want to do that - I have already purchased Windows as far as I am concerned. I am not robbing MS of thing. And I want to run this copy of Windows on the same system it came with.

Any ideas for me to try?
My suggestion: Invert it.

Download the VMWare convertor from vmware.com - run it on your existing W7 OS and create a VMDK file on an external USB or Network Drive. Back up *everything* using Clonezilla or similar. Now install the Linux of your choice, add Virtualbox (which will run native VMWare .vmdk files), put your converted .vmdk file someone on your newly installed Linux box, then run it with VirtualBox. I've done this successfully with XP and Vista, it should work with W7 but I've not bothered as I have no need to. If you happen to subscribe to Linux Format magazine you'll find my writeup of this in backissue 101 - http://www.linuxformat.com/archives?issue=101
 
1 members found this post helpful.
Old 02-15-2011, 08:34 PM   #6
dwains
LQ Newbie
 
Registered: Dec 2002
Location: Raleigh NC USA
Distribution: Red Hat
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
My suggestion: Invert it.

Download the VMWare convertor from vmware.com - run it on your existing W7 OS and create a VMDK file on an external USB or Network Drive. Back up *everything* using Clonezilla or similar. Now install the Linux of your choice, add Virtualbox (which will run native VMWare .vmdk files), put your converted .vmdk file someone on your newly installed Linux box, then run it with VirtualBox. I've done this successfully with XP and Vista, it should work with W7 but I've not bothered as I have no need to. If you happen to subscribe to Linux Format magazine you'll find my writeup of this in backissue 101 - http://www.linuxformat.com/archives?issue=101
Thank you so much for this great suggestion. And sorry it took me so long to reply. I will report that it almost worked. It certainly got me very close. The one remaining issue may not be fixable - but let me tell you what happened.

I took your suggestion and tried the VMware converter and got the vmdk moved over to my Linux installation. Luckily I am using two different disk drives that I have been swapping back and forth, so I did not have to wipe anything clean

Once I had the image on Ubuntu, to my great glee it booted right up in VirtualBox. I had never got that far before. Win 7 reports that Windows is "not genuine" but that may be fixable by re-activating - not positive on that, but that might work.

My show-stopping issue is that many of the virtual devices don't work. The drivers are there, but Windows - via Device Manager - reports that there are problems:
This device cannot find enough free resources that it can use. (Code 12)
If you want to use this device. you will need to disable one of the other devices on this system.
I could probably live with this but it includes the network device, which prevents me from moving any data to or from the VM - which is hard to get around. I even tried installing the VirtualBox tools, which gave me some brief hope, but that changed nothing.

From my net reading this is a common problem when folks have tried to virtualize the OEM version of Windows. MS may have just did all of these things as traps to keep folks like me from fully utilizing my purchase.

But oh so close!
 
Old 02-15-2011, 08:57 PM   #7
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,629

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
That was what I was saying in previous post M$ doesn't approve of the OEM preinstalled wins to put in VM. I saw it at the end of P2V documentation. What you may have to do to get updates is download manually and install them. M$ only approves of fully licensed retail wins in VM.
 
Old 02-16-2011, 12:56 AM   #8
rayfward
Member
 
Registered: May 2009
Location: Leeds Uk
Distribution: Linux Ubuntu
Posts: 87

Rep: Reputation: 4
Angry

Quote:
Originally Posted by dwains View Post
Thank you so much for this great suggestion. And sorry it took me so long to reply. I will report that it almost worked. It certainly got me very close. The one remaining issue may not be fixable - but let me tell you what happened.

I took your suggestion and tried the VMware converter and got the vmdk moved over to my Linux installation. Luckily I am using two different disk drives that I have been swapping back and forth, so I did not have to wipe anything clean

Once I had the image on Ubuntu, to my great glee it booted right up in VirtualBox. I had never got that far before. Win 7 reports that Windows is "not genuine" but that may be fixable by re-activating - not positive on that, but that might work.

My show-stopping issue is that many of the virtual devices don't work. The drivers are there, but Windows - via Device Manager - reports that there are problems:
This device cannot find enough free resources that it can use. (Code 12)
If you want to use this device. you will need to disable one of the other devices on this system.
I could probably live with this but it includes the network device, which prevents me from moving any data to or from the VM - which is hard to get around. I even tried installing the VirtualBox tools, which gave me some brief hope, but that changed nothing.

From my net reading this is a common problem when folks have tried to virtualize the OEM version of Windows. MS may have just did all of these things as traps to keep folks like me from fully utilizing my purchase.

But oh so close!
Yes Windows does that. The change in apparent hardware configuration causes windows to think you pirated the installation. Windows XP is the same. I was performing diabolical experiments on my XP Virtual box when Windows proclaimed my hardware changes were to significant and would have to re-register my copy of XP.

I'm not sure if this is still in force but you only get three tries at registering after that you have to call M$ help line (Premium rate of course) to get it unlocked.

Last edited by rayfward; 02-16-2011 at 01:03 AM. Reason: Add a warning.
 
Old 02-16-2011, 07:42 AM   #9
dwains
LQ Newbie
 
Registered: Dec 2002
Location: Raleigh NC USA
Distribution: Red Hat
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for all the great suggestions and follow up.

I think I am about to punt this one for now.

It seems like it would be fair for MS to grant you the ability to run an OEM copy of Windows in a VM on the original hardware that you bought it with. I guess not.

Just another reason to scorn MS.

So my choices are down to two I think.

1. Run Win 7 natively and use VirtualBox to run Linux. This way will work but it leaves a bad taste in my mouth. I only need Windows for a couple of things - I hate to have the whole system running Windows.

2. Obtain a full copy of Windows and install in a VM. I will explore this and my go this route if I can get it cheaply enough. I really hate to pay for another copy of Windows though. That sure does not seem fair.

Thanks for all of the help and suggestions.
 
Old 02-16-2011, 12:31 PM   #10
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,629

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
By the documentation in P2V, I'm not even sure if you can install OEM full version and obtain updates, I think they want you to pay for M$ full.
 
Old 02-16-2011, 07:05 PM   #11
jefro
Guru
 
Registered: Mar 2008
Posts: 11,549

Rep: Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405
I might suggest that you consider using flash drive installs too. They seem to work fine for me most of the time and the speed is similar to real hard drive installs. That is if you don't want to use a dual boot or VM.
 
Old 04-07-2011, 05:34 PM   #12
cshewmaker
LQ Newbie
 
Registered: Jan 2006
Posts: 6

Rep: Reputation: 0
Will Linux on a flash drive run on my Vista pc, running programs in Linux, but accessing files on the c drive?
 
Old 04-07-2011, 07:29 PM   #13
jefro
Guru
 
Registered: Mar 2008
Posts: 11,549

Rep: Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405
You generally get linux to use other partitions in any way that a normal install does.

I'd consider making a linux partition if I were to do that. W7 can shrink it's drive a bit and use a small amount on that if needed.
 
Old 08-14-2012, 02:25 PM   #14
MMlosh
LQ Newbie
 
Registered: Aug 2008
Posts: 2

Rep: Reputation: 1
Lightbulb Solution for This device cannot find enough free resources that it can use (code 12)

Search engines directed me here at first, so I'll link the solution here.

Solution for "This device cannot find enough free resources that it can use (code 12)" issue:
Found at https://forums.virtualbox.org/viewto...=33636#p191538

Get rid of the AMD PCI driver ("AMD pci express 3gio filter"), install a generic one "PCI Bus" which doesn't hog resources.
Click-by-click guide is provided at that virtualbox forum thread.

footnote: This is a copy of a message I put on another virtuabox thread using a bugmenot account.
 
1 members found this post helpful.
Old 08-14-2012, 03:40 PM   #15
guyonearth
Member
 
Registered: Jun 2012
Location: USA
Distribution: SolydX
Posts: 399

Rep: Reputation: 82
I'm curious why you wouldn't just install Linux as dual boot, and not go to all this trouble.
 
  


Reply

Tags
ubuntu, virtualbox, vm, windows7


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
internet in virtual machine not running tkmsr Linux - Networking 3 10-22-2010 12:51 PM
Advantage in running a virtual machine satimis Linux - Software 10 05-14-2009 07:55 PM
Running virtual pc files in a virtual machine in linux ... preferably virtual box biharibong Linux - Software 4 01-21-2009 01:04 PM
error while running update_latest.sh on virtual machine chinmayee Ubuntu 3 02-13-2008 05:30 PM


All times are GMT -5. The time now is 07:17 AM.

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