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
- 218 LFX Mentorship
- 218 LFX Mentorship: Linux Kernel
- 791 Linux Foundation IT Professional Programs
- 353 Cloud Engineer IT Professional Program
- 178 Advanced Cloud Engineer IT Professional Program
- 82 DevOps Engineer IT Professional Program
- 147 Cloud Native Developer IT Professional Program
- 137 Express Training Courses
- 137 Express Courses - Discussion Forum
- 6.2K Training Courses
- 47 LFC110 Class Forum - Discontinued
- 71 LFC131 Class Forum
- 42 LFD102 Class Forum
- 226 LFD103 Class Forum
- 18 LFD110 Class Forum
- 38 LFD121 Class Forum
- 18 LFD133 Class Forum
- 7 LFD134 Class Forum
- 18 LFD137 Class Forum
- 71 LFD201 Class Forum
- 4 LFD210 Class Forum
- 5 LFD210-CN Class Forum
- 2 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum - Discontinued
- 2 LFD233 Class Forum
- 4 LFD237 Class Forum
- 24 LFD254 Class Forum
- 697 LFD259 Class Forum
- 111 LFD272 Class Forum
- 4 LFD272-JP クラス フォーラム
- 12 LFD273 Class Forum
- 148 LFS101 Class Forum
- 1 LFS111 Class Forum
- 3 LFS112 Class Forum
- 2 LFS116 Class Forum
- 4 LFS118 Class Forum
- LFS120 Class Forum
- 7 LFS142 Class Forum
- 5 LFS144 Class Forum
- 4 LFS145 Class Forum
- 2 LFS146 Class Forum
- 3 LFS147 Class Forum
- 1 LFS148 Class Forum
- 15 LFS151 Class Forum
- 2 LFS157 Class Forum
- 29 LFS158 Class Forum
- 7 LFS162 Class Forum
- 2 LFS166 Class Forum
- 4 LFS167 Class Forum
- 3 LFS170 Class Forum
- 2 LFS171 Class Forum
- 3 LFS178 Class Forum
- 3 LFS180 Class Forum
- 2 LFS182 Class Forum
- 5 LFS183 Class Forum
- 31 LFS200 Class Forum
- 737 LFS201 Class Forum - Discontinued
- 3 LFS201-JP クラス フォーラム
- 18 LFS203 Class Forum
- 134 LFS207 Class Forum
- 2 LFS207-DE-Klassenforum
- 1 LFS207-JP クラス フォーラム
- 302 LFS211 Class Forum
- 56 LFS216 Class Forum
- 52 LFS241 Class Forum
- 48 LFS242 Class Forum
- 38 LFS243 Class Forum
- 15 LFS244 Class Forum
- 2 LFS245 Class Forum
- LFS246 Class Forum
- 49 LFS250 Class Forum
- 2 LFS250-JP クラス フォーラム
- 1 LFS251 Class Forum
- 153 LFS253 Class Forum
- 1 LFS254 Class Forum
- 1 LFS255 Class Forum
- 7 LFS256 Class Forum
- 1 LFS257 Class Forum
- 1.3K LFS258 Class Forum
- 10 LFS258-JP クラス フォーラム
- 118 LFS260 Class Forum
- 159 LFS261 Class Forum
- 42 LFS262 Class Forum
- 82 LFS263 Class Forum - Discontinued
- 15 LFS264 Class Forum - Discontinued
- 11 LFS266 Class Forum - Discontinued
- 24 LFS267 Class Forum
- 22 LFS268 Class Forum
- 30 LFS269 Class Forum
- LFS270 Class Forum
- 202 LFS272 Class Forum
- 2 LFS272-JP クラス フォーラム
- 1 LFS274 Class Forum
- 4 LFS281 Class Forum
- 9 LFW111 Class Forum
- 259 LFW211 Class Forum
- 181 LFW212 Class Forum
- 13 SKF100 Class Forum
- 1 SKF200 Class Forum
- 1 SKF201 Class Forum
- 796 Hardware
- 199 Drivers
- 68 I/O Devices
- 37 Monitors
- 103 Multimedia
- 174 Networking
- 91 Printers & Scanners
- 85 Storage
- 758 Linux Distributions
- 82 Debian
- 67 Fedora
- 17 Linux Mint
- 13 Mageia
- 23 openSUSE
- 148 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 353 Ubuntu
- 468 Linux System Administration
- 39 Cloud Computing
- 71 Command Line/Scripting
- Github systems admin projects
- 93 Linux Security
- 78 Network Management
- 102 System Management
- 47 Web Management
- 63 Mobile Computing
- 18 Android
- 33 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 371 Off Topic
- 114 Introductions
- 174 Small Talk
- 22 Study Material
- 805 Programming and Development
- 303 Kernel Development
- 484 Software Development
- 1.8K Software
- 261 Applications
- 183 Command Line
- 3 Compiling/Installing
- 987 Games
- 317 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)