Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I will soon have a dual booting development machine, with Windows on one HDD and Ubuntu on the other.

They will be configured such that when booted as Windows the IP address is 10.0.0.2 and when booted as Ubuntu the address is 10.0.0.3.

What I would like is:

a) When booted as Ubuntu, a virtual machine comes up using the Windows HDD as its store, on 10.0.0.2.

b) When booted as Windows, a virtual machine comes up using the Ubuntu HDD as its store, on 10.0.0.3.

It would therefore be symmetric - regardless of which main OS is booted, the rest of the network would always see both a Windows machine on 10.0.0.2 and an Ubuntu machine on 10.0.0.3.

Is this possible?

I can foresee problems with OSs not liking the hardware changing beneath them (from physical to virtual and v.v.) on reboot. Are there other issues I should look out for?

P.S. I've just seen Booting a native Windows install in Virtualbox: is it possible? which gives me some hope.

Edit: corrected server to development machine.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I would strongly recommend looking at doing something with VMWare or another hypervisor. Why would you be rebooting the machine and risking issues with hardware changes, compatibility, etc? Unless you have special needs with the server that they can't be virtualized, using a hypervisor would make running the OS's simultaneously far more reliable and less troublesome.

share|improve this answer
1  
...or more to the point, why are you rebooting a server to switch them back and forth anyway if you want both OS's running at the same time? –  Bart Silverstrim May 16 '12 at 13:59
    
It's a dev machine, not a server. Sometimes you just want native performance. –  chrisdew May 16 '12 at 14:04
1  
The overhead of a bare metal hypervisor is not usually that great, especially if you're not overtaxing memory or storage subsystems. That said, another alternative is to get two cheap systems with a KVM switch to share the keyboard/display and run them both separately. I really think that approach will save you headaches with drivers. –  Bart Silverstrim May 16 '12 at 14:36
    
Can you use the desktop of a virtual machine straight from a monitor attached to the host machine? And how well do those things play with videocards? Those two seemed to be the dealbreakers for me when I tried running a hypervisor for my workstationning needs. –  Marten Veldthuis Jun 9 '12 at 19:14
    
A bare metal hypervisor doesn't show the OS at all. You connect with remote sessions. The console on the hypervisor typically shows the status of the VMware server itself, or the hypervisor status, since the OS has everything abstracted away from it hardware-wise. Exposing the video card for a dedicated display would negate that. –  Bart Silverstrim Jun 10 '12 at 12:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.