Skip to contentSkip to conversation

Vertualization of Unmodified Operating Systems

DISCUSSION Dave Feustel 10 participants 11 messages Apr 15, 2006 – Jun 5, 2006

lore
Share & tools
lore
#0 lore raw

AMD Pacifica and Intel's VT make possible the virtualization of unmodified operating systems. Is it still necessary to add code to the hypervisor to support specific operating systems, or can Xen, as written, support any arbitrary OS that successfully boots on a PC? (I'm thinking of the BSDs here).

Thanks,
Dave Feustel

Signature · 2 lines
Lose, v., experience a loss, get rid of, "lose the weight"
Loose, adj., not tight, let go, free, "loose clothing"
#1 lore raw
Quoted 5 lines · Dave Feustel

AMD Pacifica and Intel's VT make possible the virtualization of unmodified operating systems. Is it still necessary to add code to the hypervisor to support specific operating systems, or can Xen, as written, support any arbitrary OS that successfully boots on a PC? (I'm thinking of the BSDs here).

This sort of thing has been addressed here before. While theoritically, VT and SVM ought to allow any OS to run under Xen, in practice, if an OS hasn't been tested as a guest under Xen, it is likely to turn up some bugs or incompleteness. Over time, this will certainly be a less of an issue.

The problem has to do with the fact that different OS's will use different instructions when accessing things like page tables. Right now, Xen only emulates the instructions that we know are used by the systems we test with (things like Linux and certain versions of Windows).

Regards,

Anthony Liguori

Quoted 2 lines

Thanks,
Dave Feustel

#2 lore raw
Quoted 9 lines · Anthony Liguori
Quoted 5 lines · Dave Feustel

AMD Pacifica and Intel's VT make possible the virtualization of unmodified operating systems. Is it still necessary to add code to the hypervisor to support specific operating systems, or can Xen, as written, support any arbitrary OS that successfully boots on a PC? (I'm thinking of the BSDs here).

This sort of thing has been addressed here before.

I know this and I appreciate your patience. I definitely don't pick things up or figure things out as quickly now as I did when I was younger.

Quoted 9 lines

While theoritically,
VT and SVM ought to allow any OS to run under Xen, in practice, if an OS hasn't been tested as a guest under Xen, it is likely to turn up some bugs or incompleteness. Over time, this will certainly be a less of an issue.

The problem has to do with the fact that different OS's will use different instructions when accessing things like page tables. Right now, Xen only emulates the instructions that we know are used by the systems we test with (things like Linux and certain versions of Windows).

Xen and OpenBSD running under Xen are rapidly rising to the top of my list of things to work with as general availability of AM2-socket motherboards and revision F AMD64 chips approaches. Xen and hardware virtualization have been for a while now at the very top of the list of topics I follow in the news.

Dave Feustel

Quoted 14 lines

Regards,

Anthony Liguori

Quoted 2 lines

Thanks,
Dave Feustel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Signature · 2 lines
Lose, v., experience a loss, get rid of, "lose the weight"
Loose, adj., not tight, let go, free, "loose clothing"
#10 lore raw
In reply to Dave Feustel
Quoted 2 lines

AMD Pacifica and Intel's VT make possible the virtualization of unmodified operating systems. Is it still necessary to add code to the hypervisor to support specific operating systems, or can Xen, as written, support any arbitrary OS that successfully boots on a PC? (I'm thinking of the BSDs here).

Shouldn't be necessary to add special support usually... However, if an OS makes use of particularly esoteric hardware features that other OSes do not use then it's possible those will not be emulated in Xen yet. In these cases, one would add the emulation to Xen and then that OS (and any others which used those features) would be able to run unmodified.

x86 is full of little "tricks", of the "whoa, people (can) do that?" variety ;-)

Cheers,
Mark

#3 lore raw
In reply to Dave Feustel

Is there a VT or pacifica laptop out there? Or is that technology just "assumed" for later CPUs? I'd like to get such a laptop.

It seems to me that I could boot Plan 9 unmodified, and from there, develop the xenfront drivers I need, thus making test/debug much easier.

thanks

ron

#4 lore raw
Quoted 2 lines · Ronald G Minnich

Is there a VT or pacifica laptop out there? Or is that technology just "assumed" for later CPUs? I'd like to get such a laptop.

Yes. The new ThinkPads includes Core Duo CPUs with VT enabled.

Bastian

Signature · 3 lines
Each kiss is as the first.
		-- Miramanee, Kirk's wife, "The Paradise Syndrome",
		   stardate 4842.6

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#5 lore raw

Someone recently confirmed the IBM thinkpad t60p has a BIOS option to enable VT.

Mac Mini's (and presumably the Apple notebooks) also have VT enabled, at least the linux live cd has shows the VMX CPU flag

Rolf

Quoted 21 lines

-----Original Message-----
From: [email protected] [mailto:xen-devel- [email protected]] On Behalf Of Bastian Blank
Sent: 16 April 2006 22:02
To: Ronald G Minnich
Cc: [email protected]; Dave Feustel
Subject: Re: [Xen-devel] Re: Vertualization of Unmodified Operating Systems

Quoted 2 lines · Ronald G Minnich

Is there a VT or pacifica laptop out there? Or is that technology just "assumed" for later CPUs? I'd like to get such a laptop.

Yes. The new ThinkPads includes Core Duo CPUs with VT enabled.

Bastian

--
Each kiss is as the first.

		-- Miramanee, Kirk's wife, "The Paradise Syndrome",
		   stardate 4842.6
#6 lore raw
In reply to Ronald G Minnich
Quoted 3 lines · Ronald G Minnich

Is there a VT or pacifica laptop out there? Or is that technology just "assumed" for later CPUs? I'd like to get such a laptop.

It seems to me that I could boot Plan 9 unmodified, and from there, develop the xenfront drivers I need, thus making test/debug much easier.

All Apple Intel based Macintosh computers have VT-x capability (as of April, 2006; I can't speak for future products). However, on some Mac Mini's a procedure is needed to enable VT-x. I have followed the procedure 'documented' (I use that word in the loosest of meanings, I assure you) with correct results:

http://forum.parallels.com/thread577.html

However, I do not know of anyone who has run Xen on top of EFI based Intel machines. EFI is Intel's replacement for BIOS. The acronym expands to Extended Firmware Interface. It's a much more powerful boot mechanism than BIOS and the tools for it are open sourced with the BSD license:

https://edk.tianocore.org/

In addition, in order to get Xen to work with Mac OS X as dom0, much work would have to go into porting the device drivers used for pciback, console, and other event channels; as well as porting the user applications. It's a non-trivial porting effort, but I'm quite sure there are those who have contemplated it. (Maybe there's a brave soul -doing- it?!)

-- Randy

#9 lore raw
In reply to Dave Feustel
Quoted 30 lines · Dave Feustel
Quoted 10 lines · Anthony Liguori
Quoted 5 lines · Dave Feustel

AMD Pacifica and Intel's VT make possible the virtualization of unmodified operating systems. Is it still necessary to add code to the hypervisor to support specific operating systems, or can Xen, as written, support any arbitrary OS that successfully boots on a PC? (I'm thinking of the BSDs here).

This sort of thing has been addressed here before.

I know this and I appreciate your patience. I definitely don't pick things up or figure things out as quickly now as I did when I was younger.

Quoted 9 lines

While theoritically,
VT and SVM ought to allow any OS to run under Xen, in practice, if an OS hasn't been tested as a guest under Xen, it is likely to turn up some bugs or incompleteness. Over time, this will certainly be a less of an issue.

The problem has to do with the fact that different OS's will use different instructions when accessing things like page tables. Right now, Xen only emulates the instructions that we know are used by the systems we test with (things like Linux and certain versions of Windows).

Quoted 4 lines

Xen and OpenBSD running under Xen are rapidly rising to the top of my list of things to work with as general availability of AM2-socket motherboards and revision F AMD64 chips approaches. Xen and hardware virtualization have been for a while now at the very top of the list of topics I follow in the news.

OpenBSD 3.9 works quite fine (installed using the native installer in the virtualized environment!) as an unmodified guest on my Intel VT box, with following caveats:

*) pcn(4) - aka AMD Pcnet does not seem to work well with the emulated one (send works - receive does not)

*) ne(4) does work but is complaining about corrupted nic memory under heavy traffic (does not seem to affect it much other than logging th errors)

Stefan

#7 lore raw
In reply to Ronald G Minnich

You can get Laptop from HP with turion X2. It will be amd64 with SVM support and dual core.

YH

Quoted 15 lines · Ronald G Minnich

Is there a VT or pacifica laptop out there? Or is that technology just "assumed" for later CPUs? I'd like to get such a laptop.

It seems to me that I could boot Plan 9 unmodified, and from there, develop the xenfront drivers I need, thus making test/debug much easier.

thanks

ron

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#8 lore raw
In reply to Ronald G Minnich

I was pleasantly surprised when "cat /proc/cpuinfo" on new Dell laptop w/ a Core Duo listed 'vmx' as one of the features. Haven't tested it yet, tho...
-George

Quoted 15 lines · Ronald G Minnich

Is there a VT or pacifica laptop out there? Or is that technology just "assumed" for later CPUs? I'd like to get such a laptop.

It seems to me that I could boot Plan 9 unmodified, and from there, develop the xenfront drivers I need, thus making test/debug much easier.

thanks

ron

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel