Boot Windows 7 Virtually && Physically (dual boot)
Okay, I have an existing Windows 7 installation on a hard disk, which I dual boot to for when I feel like gaming...
I was hoping I could setup a booting arrangement where I can boot into Windows 7 and my existing Fedora installation, yet from within the Fedora installation, use a virtual machine application to use /dev/sda (in this case).
This way if I ever want to change something, or update, install, etc. I can simply do so without leaving *nix.
So far, the solutions I have come across only cover Windows XP or so. I have tried getting it to work under KVM, but I just receive the lovely bsods. Is anybody aware of how to get this to work, with either KVM, VirtualBox, or (at the very worst) VMWare?
This really seems like a difficult topic of which I have been googling and asking around about for a week or so
(p.s. I hope this is the proper forum section, but sorry if it isn't)
Comments
-
I have not heard of a method of booting into a windows system from your current linux system without leaving your linux system. If you want to make changes to your windows 7 system, either boot to it manually or install it on virtualbox and use windows 7 via virtualbox. Make sure you have enough memory for virtualbox.0
-
When you install an OS into a virtual environment it creates an image file of that OS. It's not the same as directing the virtual machine to an existing install on your hard drive.. You can copy files between the virtual OS and the one on the hard disk, but you can't run programs. As Tim mentioned, if you install Windows into the virtual machine, then you can easily switch back and forth. Since I don't use windows, or, have tried installing it to KVM I can't help you with your BSOD's. Windows locks itself to the hardware during an install, so, that may be part of the problem, although, I have heard of success stories running windows virtually.
In a nutshell, you can't really accomplish what you are trying to do. The closest you can come, is installing a Linux distro within the Windows environment using wubi, but, that really minimizes the advantages of Linux.0 -
Well, for instance kvm allows to easily boot(virtualize) from an existing hard disk, by simply typing in e.g. qemu-kvm --hda /dev/sda. I can install Windows regularly, to the hard disk, but then the VM blue screens. I also tried to install it through the VM, to that hard disk, which resulted in a blue screen when trying to boot normally. So it lets me have one or the other, but not both
BTW, the BSODs are SATA/disk controller related -- I wish I could find a way around that...perhaps someone with more experience w/ VM's can chime in. The thing is, apparently what I want to achieve is documented quite well for < Win7 -- but there's nothing going for in terms of ==.
But yeah, the only reason I want to use the VM is just more of convenience so I don't have to step out of my regular linux installation. And I couldn't stand to run a linux vm *inside* of windows ;-) (especially given how much of my system's resources I already use, between compiling and stuff).0 -
I'm wondering if the BSOD is related to the virtual video driver that KVM uses. I know I've seen problems like this discussed on the fedora-virt mailing list. I've also heard of advancements made to some of the new KVM video driver code that works around the video problem. They really had a hard time making Gnome3 work under KVM, so, they had to come up with solutions before F15 was released.
A lot of this stuff is way over my head, so, I'm just mentioning it in passing. Maybe looking over the fedora-virt mailing list archives might help you solve the problem. You can access the archives from this link:
https://www.redhat.com/mailman/listinfo/fedora-virt
Or, you can join the list and ask to see if anyone has the answer. (Or you can wait and see if one of the guru's here actually recognizes the problem, I'm amazed at some of the answers they come up with.)
Edit: I just realized that you said they were sata disk related, I first read it as you were wondering if they were related. Sorry, but, I'll leave the post just in case it may be useful. I guess it's time to get some sleep.0 -
I'm sorry but you cannot do what you are thinking.
You could if it was another linux system by chrooting....0 -
The issue with what you are attempting are all driver related. when windows is installed it installs the drivers for the detected hardware, vvirtualization solutions emulate fake hardware which confuses windows.
When you install physically it configures itself for the physical hardware, then when you boot into a VM tha hardware changes and the OS gets confused. The same is true for install via VM then running it physically. If windows was a more robust operating system and can handle hardware and driver changes on the fly during boot then your goal could be obtained, but at this point it is not possible.
Have you tried to do the same with virtualbox running in windows while using fedora as a virtual or physical installation?0 -
Actually, I wouldn't even have to chroot a linux system. I could even run it in a VM and it would Just Work.0
-
Yes, I know it is because of the inadequacies of windows.
Well, tbh, I'm not even interested in running my linux installation inside windows, since that's just backwards, because I am inside linux all the time, and windows is the one that makes things difficult/annoying.
I've heard of vmware's workstation edition, which is supposed to allow this, from what I have read (allow what I want, that is).0 -
I do not think that vmware workstation can work around the driver problem, but it is worth testing if you can get a copy. I would be interested to see if you can find a working solution in either opensource or proprietary software.0
-
First off - I don't think it is possible - here is why.
I have done this with XP:
Setup:
Dual boot laptop with a XP installation and a Linux installation.
Boot into Linux, start vmware player, run the physical installation of XP as a VM.
To achieve this, I had to setup a 2nd hardware profile within XP.
The first hardware profile I named "Physical" - which is to be used when booting the laptop into XP
The 2nd profile I named "virtual" - to be used when booting within vmware. This hardware profile has VMWare tools installed.
VMWare tools presents a different hardware layer to Windows (different disk drivers required etc) - hence the requirement for 2 hardware profiles. It is my understanding that hardware profile support has been removed in Windows 7.
The other major hindrance I had was the type of M$ licence - I forget which one worked in the end (Volume licence rings a bell) but most licence types will fail "Windows Genuine Advantage" if the hardware changes too much (which it does when running M$ XP on top of vmware)
For these reasons, I keep XP on my laptop and happily boot Linux and run the XP physical installation as a VM.
If anyone can find a way to avoid the 1 (2) issues I mention, please share0 -
Sorry, I got that a little wrong ...
VMWare presents a different hardware layer with "VMWare devices" to Windows (different disk drivers required etc) "VMWare tools" provides windows with the correct drivers to use the vmware devices - they wont work without "VMWare tools" being installed.
For example, Windows will not recognise the disk at boot time because VMWare provides a disk type which XP does not have native support for (SATA I think, I forget)0
Categories
- All Categories
- 167 LFX Mentorship
- 219 LFX Mentorship: Linux Kernel
- 795 Linux Foundation IT Professional Programs
- 355 Cloud Engineer IT Professional Program
- 179 Advanced Cloud Engineer IT Professional Program
- 82 DevOps Engineer IT Professional Program
- 127 Cloud Native Developer IT Professional Program
- 112 Express Training Courses
- 112 Express Courses - Discussion Forum
- 6.2K Training Courses
- 48 LFC110 Class Forum - Discontinued
- 17 LFC131 Class Forum
- 35 LFD102 Class Forum
- 227 LFD103 Class Forum
- 14 LFD110 Class Forum
- 39 LFD121 Class Forum
- 15 LFD133 Class Forum
- 7 LFD134 Class Forum
- 17 LFD137 Class Forum
- 63 LFD201 Class Forum
- 3 LFD210 Class Forum
- 5 LFD210-CN Class Forum
- 2 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum - Discontinued
- 1 LFD233 Class Forum
- 2 LFD237 Class Forum
- 23 LFD254 Class Forum
- 697 LFD259 Class Forum
- 109 LFD272 Class Forum
- 3 LFD272-JP クラス フォーラム
- 10 LFD273 Class Forum
- 152 LFS101 Class Forum
- 1 LFS111 Class Forum
- 1 LFS112 Class Forum
- 1 LFS116 Class Forum
- 1 LFS118 Class Forum
- LFS120 Class Forum
- 7 LFS142 Class Forum
- 7 LFS144 Class Forum
- 3 LFS145 Class Forum
- 1 LFS146 Class Forum
- 3 LFS147 Class Forum
- 1 LFS148 Class Forum
- 15 LFS151 Class Forum
- 1 LFS157 Class Forum
- 33 LFS158 Class Forum
- 8 LFS162 Class Forum
- 1 LFS166 Class Forum
- 1 LFS167 Class Forum
- 3 LFS170 Class Forum
- 2 LFS171 Class Forum
- 1 LFS178 Class Forum
- 1 LFS180 Class Forum
- 1 LFS182 Class Forum
- 1 LFS183 Class Forum
- 29 LFS200 Class Forum
- 736 LFS201 Class Forum - Discontinued
- 2 LFS201-JP クラス フォーラム
- 14 LFS203 Class Forum
- 102 LFS207 Class Forum
- 1 LFS207-DE-Klassenforum
- 1 LFS207-JP クラス フォーラム
- 301 LFS211 Class Forum
- 55 LFS216 Class Forum
- 48 LFS241 Class Forum
- 42 LFS242 Class Forum
- 37 LFS243 Class Forum
- 15 LFS244 Class Forum
- LFS245 Class Forum
- LFS246 Class Forum
- 50 LFS250 Class Forum
- 1 LFS250-JP クラス フォーラム
- LFS251 Class Forum
- 154 LFS253 Class Forum
- LFS254 Class Forum
- LFS255 Class Forum
- 5 LFS256 Class Forum
- 1 LFS257 Class Forum
- 1.3K LFS258 Class Forum
- 10 LFS258-JP クラス フォーラム
- 111 LFS260 Class Forum
- 159 LFS261 Class Forum
- 41 LFS262 Class Forum
- 82 LFS263 Class Forum - Discontinued
- 15 LFS264 Class Forum - Discontinued
- 11 LFS266 Class Forum - Discontinued
- 20 LFS267 Class Forum
- 24 LFS268 Class Forum
- 29 LFS269 Class Forum
- 1 LFS270 Class Forum
- 199 LFS272 Class Forum
- 1 LFS272-JP クラス フォーラム
- LFS274 Class Forum
- 3 LFS281 Class Forum
- 9 LFW111 Class Forum
- 260 LFW211 Class Forum
- 182 LFW212 Class Forum
- 13 SKF100 Class Forum
- 1 SKF200 Class Forum
- 1 SKF201 Class Forum
- 782 Hardware
- 198 Drivers
- 68 I/O Devices
- 37 Monitors
- 96 Multimedia
- 174 Networking
- 91 Printers & Scanners
- 83 Storage
- 743 Linux Distributions
- 80 Debian
- 67 Fedora
- 15 Linux Mint
- 13 Mageia
- 23 openSUSE
- 143 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 348 Ubuntu
- 461 Linux System Administration
- 39 Cloud Computing
- 70 Command Line/Scripting
- Github systems admin projects
- 90 Linux Security
- 77 Network Management
- 101 System Management
- 46 Web Management
- 64 Mobile Computing
- 17 Android
- 34 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 371 Off Topic
- 114 Introductions
- 174 Small Talk
- 19 Study Material
- 507 Programming and Development
- 285 Kernel Development
- 204 Software Development
- 1.8K Software
- 211 Applications
- 180 Command Line
- 3 Compiling/Installing
- 405 Games
- 309 Installation
- 97 All In Program
- 97 All In Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)