Slashdot Mirror


Xen Hacker Interviewed

Drawoc Suomynona writes "The Xen virtual monitor is a new generation virtualization software that enable running multiple OSes at the same time with unprecedented level of performances. Manuel Bouyer was recently interviewed about his work porting Xen to the NetBSD operating system. The interview touches on why some consider Xen to be so good, how hard it is to integrate such a software package into an OS, and more."

95 comments

  1. Re:In other news... by Anonymous Coward · · Score: 5, Funny

    >Linux is STILL for fags.

    That's right, real men use BSD.

  2. Can someone explain by chanrobi · · Score: 0

    how Xen is different from vmware?

    1. Re:Can someone explain by HitScan · · Score: 5, Informative

      As I understand, vmware does do some limited emulation, at least VGA and Network cards. Xen instead traps all attempts to access the real devices in the machine and schedules them so that each operating system still thinks that they have full access to all of the real equipment. This requires some special kernel hooks, and that's why things like Windows and OS X aren't fully supported.

      Also, I've seen this story in at least 3 places and I don't think it's right to say anyone ported Xen to NetBSD, NetBSD was updated (It's not exactly a "port") to take advantage of Xen features. It's possible that patches were sent to the Xen team to make things work more smoothly, but it's hardly porting.

      --
      HitScan
    2. Re:Can someone explain by Anonymous Coward · · Score: 0

      From various different things, one major is for sure one is propriatory and one is free software.

    3. Re:Can someone explain by TheUser0x58 · · Score: 3, Informative
      the main reason why Windows and Mac OS X are not supported in older Xen systems is because Xen allows guest OSes to run without trying to intercept privileged instructions. Thus, operating systems which haven't been "ported" to Xen wont run because they expect these instructions to work (but they dont). VMWare "ports" guest OSes at runtime, actively changing these privileged instructions in the guest OS, so that it doesnt need to be modified beforehand by the user.

      And also, the Cambridge guys did come up with a Windows XP port for their own academic purposes, but they obviously cant release it for licensing reasons, etc.

      --
      -- listen to interesting music, support independent radio... WPRB
    4. Re:Can someone explain by stedo · · Score: 3, Informative
      I don't think it's right to say anyone ported Xen to NetBSD


      You're right, nobody ported Xen to NetBSD. That's not how Xen works. What happened was someone ported NetBSD to Xen. Instead of this new version of NetBSD accessing hardware, it asks Xen to do it. This required no modification of Xen, just modification of the NetBSD kernel to avoid accessing hardware directly. It's comparable with porting NetBSD to a new chip architecture.

    5. Re:Can someone explain by bouyer · · Score: 1

      Xen doens't trap access to real hardware (if a guest tries to access hardware it will get a kernel panic). Instead, Xen presents to the guest OSes fake devices with a custom interface designed to be efficient under Xen. So a Xen guest won't try to access your network adapter or disk controller, it will use the Xen interface to send a descriptor to the virtual device backend driver.
      Privileged guests (usually the domain0 guest) are an exeption to this because they do have direct access to the real hardware (and the hypervisor doesn't do any work here, privileged domains write *directly* to the device's registers). Privileged domains also runs the virtual device backend drivers, which does the work for virtual devices in the guest OSes.
      So unprivileged Xen guests don't think they have access to the real hardware, instead they use virtual devices though custom Xen drivers.
      Also, another reason why you need Xen-modified kernels is virtual memory: guest OSes (privileged and non-privileged) don't have direct access to page tables, CR3 register, etc.
      When they want to update a page table entry or do a context switch they have to ask the hypervisor to do it; so the VM system needs to be changed to this.

      NetBSD on Xen is a port in the NetBSD terminology, the same way NetBSD/mac68k and NetBSD/sun3 are 2 different ports. The machine NetBSD/Xen runs on is different from the machine NetBSD/i386 (which should really be NetBSD/pci386 :) runs on: different MMU, different system bus.

  3. OS X ? by Anonymous Coward · · Score: 0

    will this be useable to run windows inside OS X ?

    if yes, what timeframe are we speaking of then ?

    1. Re:OS X ? by simcop2387 · · Score: 2, Interesting

      no, Xen requires changes be made to the kernel of the guest operating system, this can't be done with Windows, it could possibly be done with OSX though

    2. Re:OS X ? by MBCook · · Score: 4, Informative

      My understanding is that Xen does not require the guest OS to be changed if the hardware supports virtualization (Vanderpool or Pacifica, depending on your chip maker). That means that with the right chip (I'm not sure if Core Duo has it or not) you could run OS X as a guest OS (I assume the host OS still needs to have support, which may be done with a simple application running as root).

      --
      Comment forecast: Bits of genius surrounded by a sea of mediocrity.
    3. Re:OS X ? by ScriptedReplay · · Score: 1

      Apparently the currently shipping CoreDuo machines do not have virtualisation enabled. See here.

    4. Re:OS X ? by simcop2387 · · Score: 1

      I was not aware of this fact, last i had checked for the ability to do so it still required changes to the guest OS, according to their fact though it is not yet completed for using hardware virtualization.

    5. Re:OS X ? by jericho4.0 · · Score: 1
      No,but it's not all bad news.

      On hardware that supports it (new Intel and AMD chips do), Xen does not need changes to the guest operation system. So you might be able to run OS X and Windows at the same time.

      --
      "A language that doesn't affect the way you think about programming, is not worth knowing" - Alan Perlis
    6. Re:OS X ? by m94mni · · Score: 1

      I talked to a "Dell Account Manager" at Intel, who informed me that in the Dell Inspiron 9400, VT was switched off using a BIOS switch, but that it could be manually turned on. It will be turned on by default later. This is what he said:

      "The processors technically support it, but neither Dell nor intel have activated it yet. We are working to get the ecosystem ready before turning it on. Officially we are saying it will be enabled in 1H'06"

      "Good news. Through the BIOS, you can turn VT on with the Inspiron 9400 immediately. Just purchase a Intel Core T2300 cpu or higher."

  4. Xen vs. jails by nacturation · · Score: 3, Funny

    Anyone know Xen compares to jails in, say, FreeBSD? I've managed to setup a jail before where you do a "make world DESTDIR=/jaildir" and then do a jail on that directory, which gives someone the appearance of their own entire operating system. Is Xen similar to this, but allowing for many different operating systems rather than just another instance of the same one?

    Also, glad to see the BSD section is at least still around. I can't seem to get it to show up on the Sections list, regardless of how I set it up.

    --
    Want to improve your Karma? Instead of "Post Anonymously", try the "Post Humously" option.
    1. Re:Xen vs. jails by LLuthor · · Score: 4, Informative

      BSD jails share the kernel, Xen systems have their own kernels (patched versions of the actual Linux/BSD/etc kernels) and communicate with the host kernel through the vizor. Xen can run multiple different kernels and also support all the features such as advanced routing and access to host hardware.

      Jails are lighter/faster but less secure (a kernel exploit in a jail will root the whole system).

      --
      LL
    2. Re:Xen vs. jails by Anonymous Coward · · Score: 0

      Wouldn't a kernel exploit in the host system effectively root the lot under Xen?

    3. Re:Xen vs. jails by larry+bagina · · Score: 1

      yes, but presumably the host system would be locked up tighter than joan river's face and wouldn't have any remote services running.

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    4. Re:Xen vs. jails by WindBourne · · Score: 4, Informative

      The other major issue is that a jail is basically a chroot with some needed access to certain files. It will be one version of BSD / physical machine. In fact, jails are probably closer to UML on linux, then to Xen.

      In contrast, Xen can run multiple instances of different OS. That is, on one physical box, you could run Suse, Mandrake, Redhat, NetBSD, and even Windows. So Xen is closer to vmware than to jails.

      --
      I prefer the "u" in honour as it seems to be missing these days.
    5. Re:Xen vs. jails by toadlife · · Score: 1

      True the jail might be locked down, but as with Joan River's face, a compromise to one little area can still leave you with quite the ugly mess.

      --
      I don't always use unix-like operating systems; but when I do, I prefer FreeBSD.
  5. Xen on Windows by Aladrin · · Score: 2, Interesting

    I see a ton of comments about not being able to use Xen to run Windows inside Linux, but no information the other way around...

    Can Xen run Linux apps on my Windows installation? I am currently using Cygwin for that, and it's working okay, but some of my favorite apps are being run through SSH from my linux box to make all this happen.

    I do too much in Windows to even dual-boot the system... I'd spend as much time booting as I would working/playing.

    --
    "If you make people think they're thinking, they'll love you; But if you really make them think, they'll hate you." - DM
    1. Re:Xen on Windows by JoeGTN1 · · Score: 2, Informative

      CoLinux is a wonderful thing. http://www.colinux.org/

    2. Re:Xen on Windows by ocelotbob · · Score: 3, Informative

      As modifications have to be made to the host OS to be a Xen host as well, I doubt windows will ever be a Xen host; MS is too headstrong with their own virtualization software. However, you can run coLinux, however, you will run into some performance problems.

      --

      Marxism is the opiate of dumbasses

    3. Re:Xen on Windows by Aladrin · · Score: 1

      Everything I read said Xen needed modifications made to the hosted OS, but never mentioned that about the host OS. (Not that it doesn't make sense, it just never said it.) Thanks for the confirmation.

      And thanks to you both for the CoLinux link. I'll check it out. Performance isn't really a problem as I have a pretty fast system and pretty un-demanding linux apps I like.

      --
      "If you make people think they're thinking, they'll love you; But if you really make them think, they'll hate you." - DM
    4. Re:Xen on Windows by hawicz · · Score: 5, Informative

      You're not understanding how Xen works. Xen doesn't let you run one OS inside another, they run side by side, almost as if they were two processes.

      Running OSes inside of Xen and running MS Windows inside of Linux are two completely different things. If you can run MS Windows inside of Linux, whether or not that Linux kernel is running inside of Xen probably won't matter, since for that to work at all you probably have to trap any protected instructions and emulate them. Whether the emulation is implemented using actual ring 0 instructions or Xen hypervisor calls should be irrelevant.

      However, you _can_ run Windows inside Xen, and people have done so. It's difficult to do because you need to manage to get a Windows source license and build your own copy with the necessary modifications, but not impossible.

    5. Re:Xen on Windows by TheRaven64 · · Score: 4, Informative

      You don't run Xen on Linux, exactly. You run Xen-and-a-modified-version-of-your-favourite-kerne l on your hardware, and then run other (modified) kernels on that. Running in domain 0 - the domain with access to the real hardware - actually requires more modification to the kernel, not less, so there is very little chance of getting Windows to run Xen.

      --
      I am TheRaven on Soylent News
    6. Re:Xen on Windows by Aladrin · · Score: 1

      So what you're saying is that there is NO host OS, only 2 or more hosted OSes that share the hardware?

      --
      "If you make people think they're thinking, they'll love you; But if you really make them think, they'll hate you." - DM
    7. Re:Xen on Windows by SillyNickName4me · · Score: 3, Informative

      You could say that XEN itself is the 'host OS' abeit a very tiny one.

      Virtual machines on XEN are called 'domains', and besides using virtual devices, they can also provide them.

      Normally, domain 0 is responsible for providing almost all virtual devices (networking, disks etc). This may give the illusion that what runs in domain 0 is the host OS, but it is not, it is just another 'virtual machine', and while it is normal for domain 0 to do this, any domain running the proper kernel can provide devices to XEN.

    8. Re:Xen on Windows by Anonymous Coward · · Score: 0

      Its also worth checking out http://sourceforge.net/projects/colonist. Colonist creates coLinux compatible images from multiple livecd distributions. It also sets up VNC and everything for you.

    9. Re:Xen on Windows by ozmanjusri · · Score: 4, Informative
      MS is too headstrong with their own virtualization software.

      Microsoft are planning to release their own Hypervisor next year, and you're right, their version will be built into the Windows Server product.
      http://news.com.com/Microsoft+hypervisor+plan+take s+shape/2100-1016_3-5735876.html

      --
      "I've got more toys than Teruhisa Kitahara."
    10. Re:Xen on Windows by tinkertim · · Score: 5, Informative

      You are correct and more so than you'd think. Xen provides true isolation of its dom-u's (user VM's). The xen hypervisor is most likely some of the most efficient code ever released to the open source community.

      Xen layering and management allows you to do tons of stuff, I'm already doing SSI clusters on single machines. Xen + Win2k3 has been accomplished. This with CVIP / HA-LVS all running on one nic. Slice a high end p4 into a 6 + 1 (x 128) MB cluster of isolated servers. Its truly HA in a box, and very very simple.

      The reason they call it a hypervisor is just that, its a step above a supervisory process. On VT enabled platforms (The new P4's / AMD's) you really start to see what xen can do without the bottlenecks of processor architecture.

      Personally I think the ease of clustering is more important (and useful to the internet at large) than the ability to play with Windows stabalized under Linux. (I love saying that knowing its actually happened hehehehhe).

      I can also say NetBSD does *very* well under xen.

      Here's a really cool example config of how xen could slice up a high end dual xeon.

      Assume .. Dual xeon .. 3.2 .. 4GB Registered 2x 250 GB SATA disks (one of my labs)

      2 nics at 1000 MBPS, Connected to a gig-e switch. 100 MBPS x2 uplinks from 13 blended carriers. Basically, the average server you lease at any datacenter. Remember, you don't ever get to physically touch them. Xen is easy enough to install without needing local access.

      You setup 2 smaller (maybe 256 MB each) netbsd firewalls , do some traffic shaping if you want. From there, you toss it over to an OpenSSI / Debian cluster running on the same machine.

      Here's the really cool part. The bsd machines can talk to dom-0 and tell it when its time to drop nodes or add nodes, or make nodes bigger.

      Need more servers? Simple . Xen them and load the ssi node image via pxe / etherboot.

      Its very very easy then to setup the bridging needed to get a working cvip configuration and start weighting ports. So now you have 2 failover netbsd front end routers , failover LAMP and failover nics. Stick those SATA's in RAID1 and your only single point of faliure becomes your power supply or something going horribly wrong on domain 0. At the price it costs for those servers, you can afford 2 and pay under 500 bucks for the whole shebang if you lease them. Buying outright and co-locating is the best way. Or if your one of the fortunates with fiber coming into your own building ...

      Now toss xen3 in there and you have yourself a win2k3 setup hosting your certificate authoirty, snaps, etc. bring it all into AD if you want. Its a networking "magic bag".

      I'm just scratching the surface. These Guys Have a really, really useful wiki, as well as some "unofficial" Debian install packages. Your average Linux geek could get it going quickly.

      Keep your eyes on Xen. Its going to do good things for everyone - and its going to push commercial equals to .. well .. be more equal. Right now (afaic) Xen tips the scales in its direction.

      Windows is just one of the marvels folks. Look at the big picture. Some of us have been screaming Xen for a while now .. so its sort of a triumph to see it finally getting a larger following :) Virtuozzo just cant *touch* it.

      Off the soapbox. Hope someone found this useful. It took an awful long time to type. Course would help if I wasn't eating messy food ..

    11. Re:Xen on Windows by TallMatthew · · Score: 2, Interesting
      The reason they call it a hypervisor is just that, its a step above a supervisory process. On VT enabled platforms (The new P4's / AMD's) you really start to see what xen can do without the bottlenecks of processor architecture.

      I would think your bottlenecks would be constant context switches on your proc, cache misses on your virtual memory and seeks within your RAID (at the "hypervisor" level). No matter how good your top-level kernel delegates, it's still a level of indirection before control is passed to the kernels within your virtual machines (who obviously do their own prioritization). If you're running a cluster within a box, this constant delegating and shuffling of data from disparate elements to disparate kernels with disparate priorities would require constant and massive data shifts within the host machine and bring said box to a crawl, wouldn't it?

    12. Re:Xen on Windows by tinkertim · · Score: 4, Informative

      You've basically just described what could happen to any processor (no matter how conjoined or how many) that could not return at or greater than the rate it was being fed, which is the point of using Xen in the first place :) I refer to it as 'meltdown' however.

      You also have to keep in mind that most clusters are application specific.

      With Xen and SSI you have two things that both do a very good job of :

      1 - Replace "dumb" round robin load balanced racks (it makes a very good load balancer)

      2 - Isolating applications (nevermind the os we're talking about a single image)

      I'm not going to go into number one because its obvious (or is to who I'm replying to).

      Lets look closer at #2. I'd like to (for demonstration) use as an example the vast number of people using an open source application on their website powered by Apache, PHP and MySQL.

      I'd also like to call attention to the fact that commonly those aren't the only 3 malloc()'ing hogs running on any given single server. In fact you'll find most public services running in one place. This means a mailer (exim for this example), Spam Assassin, Clam AV (if they care about their mailbox), MySQL, SMTP bandwidth logging generally using MySQL, SSH, most likely POP and IMAP. Eh, almost forgot DNS but bind is pretty small. Now they're all figting for cache, while trivial system processes live happily in dentry and watch the public ones choke to death. Xen helps you stop this.

      Imagine 300 http sessions (lets say some chat program mandated session keep alives), now someone rolls in with a brute force spam attack. There goes exim, spam assassin and clam AV.

      Pretty soon things just stop forking and said server needs its diaper changed. So what you described is also what most people have existing.

      Now take a look at any 20 places selling co-located servers , or leasing them. You've got about $200 - $300 a month you can spend. Your site was a hobby and now its a kick in your wallet. You'll find a nice Dual Xeon 3.2 (even a 2.8 would work) and you can get a few nics and 4 GB registered RAM.

      You can, then with Xen and OpenSSI solve your problem, isolate your services, make some of them highly available and you (can) do it on a single platform and increase its capacity drastically. We have a few things at play :

      1 - Xen's routing is very , very fast. That coupled with a sensible CVIP configuration can and will direct traffic as well as most medium line load balancers. I'm not talking about your $50k models that let you shape and direct down to the most miniscule trait of the session.. and I'm not talking about a cheapo. I'm also not calling out anything by brandname.. but I think you can relate for purposes of banter.

      2 - You can't (and should not) run one of these from one physical ethernet device. While you don't need to give each node a seperate (real) nic, you really should split things up. By doing so you're freeing up kernel resources to do other things (like direct traffic avoiding I/O bottlenecks).

      3 - You need to really play with your kernels. You really need to ensure you are taking advantage of your either (SATA) or preferably (SCSI) disks.

      4 - You need to use sensible applications that interact nicely with your sql server, and (as you pointed out) have a very good understanding of Linux and its I/O. Be smart.. use flatfiles when you can (in other words plan your cluster).

      5 - You can use xen in a more conventional setup too :) Just allocate 99% of any given server to your etherboot dom-u. iscsi / good gig-e nics and short copper runs to medium grade switches do this quite well.

      So should Ebay fire one up today? No .. that would be as dumb as driving on your spare tire to look cool. Can your forum, e-commerce shop or php based game stay up and running? Sure :)

      But what I just typed is several options available to site owners who 6 months ago only had much more expensive options.

  6. Re:In other news... by Anonymous Coward · · Score: 0

    I was expecting a comment like this:
    Everybody should learn 8-bit 6502 assembly language because no computer requires more instructions than the 6502 chip has and even though it's only an 8-bit processor it can be expanded because it is easily expandable, plus you can put billions of miniature 6502 chips in computer in place of more expensive, proprietary, non-standards-based, non-open-source, capitalist pig processors. LOL BEOWULF CLUSTER XML FRAMEWORK.

    For shame, Slahsdot. You're attempting to remotely make sense.

  7. Migration by Stoned4Life · · Score: 3, Interesting

    "Xen also offers virtual machine migration, where you freeze a Xen guest, move it to another machine and resume it there ... This also means that a similar environment for the guest has to exist on the remote system."

    And if a similar environment is not available when it is moved, what happens to the state of the user? Would the hardware in use when the state is saved have to be exactly alike on the target machine?

    Also, is the information retained on the backup until the full migration is completed and then deleted, or is deleting the backup during the migration optional, leaving a "frozen" and "restorable" state on the server? Is that a security risk if the workstation is compromised?

    --
    Stoned4Life
    gen = new Random
    1. Re:Migration by dmp123 · · Score: 2, Informative

      Xen provides a hardware virtualisation layer, so the images don't talk to the hardware directly, but talk through the Xen hypervisor. Therefore, the Xen hosting on the remote system will provide exactly the same 'hardware' as far as the image is concerned.

      David

    2. Re:Migration by Anonymous Coward · · Score: 0

      The grandparent poster still asks a semi-valid question, since Xen does not provide complete virtualisation. If your desctination machine doesn't have a graphics card or a network connection and the image on the source machine depended upon one then I don't think Xen will synthesize one for you.

    3. Re:Migration by rimu+guy · · Score: 1

      The instant migrations are based on the vps being migrated between two host servers sharing the same storage system/SAN.

      If you don't have a shared storage system holding your domU file system then you'd have to move that over as well (e.g. 15 minutes or so for a 4GB file system).

      Oh and if you can't route the IPs betweens the two different hosts then you'd have to change the IPs to boot.

      --
      Xen-based VPS hosting

    4. Re:Migration by kscguru · · Score: 3, Interesting
      Xen doesn't do graphics cards (at this point, everyone - even VMware - virtualizes graphics cards). Network cards, you only get via a virtualized Xen network adapter with Xen drivers, so those will remain the same. Nobody does passthrough hardware - nobody.

      You will find processor differences though. Move from AMD to Intel, or drop SSE extensions or some such, and things will break.

      --

      A witty [sig] proves nothing. --Voltaire

    5. Re:Migration by bpd1069 · · Score: 1

      btw, Host58 migrated over to Xen 3.0 without a hitch.. thanks... you guys rock!

      --
      --
    6. Re:Migration by Bert64 · · Score: 1

      But what makes it incredibly usefull, is the ability to transparently migrate to newer hardware without the image ever going down... You can keep an image running for years across multiple hardware revisions easily.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    7. Re:Migration by Bert64 · · Score: 1

      Which is still very usefull...
      You can have a single backend SAN, and hookup more machines to it as you need more images... And you can hook up newer hardware and migrate the images live to the new machines without needing to reboot any of them.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    8. Re:Migration by cjsteel · · Score: 1

      He he he, nope, that's what you do with LV's. xen's para-virtualizing allows you to move them while they are still running, really ;). http://www.cl.cam.ac.uk/Research/SRG/netos/xen/rea dmes/user/user.html Check out the introduction "Live migration of running virtual machines between physical hosts." Xen is going to mess with your head. Can you pass me that freebsd server when your done with it?

  8. Now THIS is cool by ScrewMaster · · Score: 4, Interesting

    Xen virtual machines can be "live migrated" between physical hosts without stopping them. During this procedure, the memory of the virtual machine is iteratively copied to the destination without stopping its execution. A very brief stoppage of around 60-300 ms is required to perform final synchronisation before the virtual machine begins executing at its final destination, providing an illusion of seamless migration. Similar technology is used to suspend running virtual machines to disk and switch to another virtual machine, and resume the first virtual machine at a later date.

    (Quote from Wikipedia)

    Reminds of when I was watching the old Max Headroom show, and Max would shuffle himself off of one monitor onto a display on a portable "processing unit" and somebody would pick him up and carry him away.

    --
    The higher the technology, the sharper that two-edged sword.
  9. Re:*BSD is Dying by diegocgteleline.es · · Score: 0, Offtopic

    One more crippling bombshell hit the already beleaguered *BSD community when IDC confirmed that *BSD market share has dropped

    Heh, I hope IDC wasn't so bad as they were with predicting itanium sales. We're lucky that this time they're using a oracle to check their predictions, I hope they used it with BSD.

  10. Re:In other news... by bigpicture · · Score: 1

    We hear from those anal retentive, perfecto BSD users again.

  11. VMWare emulates standard hardware by Anonymous Coward · · Score: 2, Informative

    so guest OSes that support that hardware can run with standard drivers. Xen creates a synthetic virtual device that's easier and more efficient to emulate than standard hardware. The downside is that there usually aren't any drivers for these virtual devices on most OSes since no one's written them yet. So if you go on Apple's web site and look for supported video hardware, you probably won't see Xen virtual video device. The other way of looking at it is Xen is the device maker and is supplying the driver directly rather than through Apple. And device makers don't always supply drivers for all OSes, at leat right away.

    1. Re:VMWare emulates standard hardware by cbreaker · · Score: 1

      No, you're not really correct here. Xen doesn't really emulate any hardware; it basically allows guests access to your hardware on a special time-share system that the guest OS needs to support. This is why Xen is very fast compared to systems like VMWare - Although ESX server is very efficient with memory and network support. Kernel changes are necessary to the guest VM, but they are generally straight forward modifications.

      The problem is, you can't change the NT kernel, so no Windows.

      However, with hardware virtualization help from the new Intel chips and very soon the AMD chips will allow guests to safely access hardware without modification.

      For now, I'm still a VMWare ESX user/admin and I believe I'll continue to be one until Xen matures a little bit more and guest OS support is more seamless. I see great potential in Xen though, especially because of the multi-vendor support and development cooperation.

      --
      - It's not the Macs I hate. It's Digg users. -
    2. Re:VMWare emulates standard hardware by Anonymous Coward · · Score: 0

      > Xen doesn't really emulate any hardware

      Well, Xen emulate a virtual hardware. I bet the guest OSes have specific xen drivers to communicate with the hypervisor.

      And vmware does exactly the same (when you install vmware-specific drivers in the guest os).

      The biggest difference between the two is that vmware does some very very very complex things to get the guest os run unmodified, while xen says 'f* it, port the OS to the xen arch (ie: be careful about those non virtualizable ring0 instructions)'

  12. Re:*BSD is Dying by Anonymous Coward · · Score: 0

    YHBT HAND

  13. What I want from virtualization by JungleBoy · · Score: 1

    What I want from OS virtualization is to be able to run one guest OS on multiple hosts for redundency. I don't have (personally) much use for running multiple guest OSs on a host. I want to have a setup where if apache is in the middle of processing a request and a whole machine does, the request is still completed by the remaining machine. RAID1 for the whole damn machine. If you could do this will F/OSS on dirt cheap comodity hardware, the utility would be huge.

    --
    "You never know when some crazed rodent with cold feet might be running loose in your pants."
    -Calvin
    1. Re:What I want from virtualization by Anthony+Liguori · · Score: 2, Interesting

      What I want from OS virtualization is to be able to run one guest OS on multiple hosts for redundency.

      Then what you want is Marathon style lock-style execution. It's a terribly hard problem because you have to make all software run deterministically (timers and IO events on both machines have to occur in the *exact* same moments in execution).

      Regards,

      Anthony Liguori

    2. Re:What I want from virtualization by CastrTroy · · Score: 1

      I'm sure that there would be some way to get a router to send the same request to two (or more) identical (as far as the server and content goes) machines and have them both process it. Then, just return the first response, and throw out all the later ones. That way, you get complete machine redundancy.

      --

      Anthropic principle: We see the universe the way it is because if it were different we would not be here to see it.
    3. Re:What I want from virtualization by Anonymous Coward · · Score: 0

      imagine a beowulf cluster of those, err ;)
      sounds like what you want is a beowulf cluster that's also a virtual machine.

    4. Re:What I want from virtualization by Anonymous Coward · · Score: 0

      You could take a look at OpenQRM. It's the newest incarnation of what was Qlusters. It's a nifty piece of work.

      http://www.openqrm.org/

      It does some of what your asking in a fashion. Also, they just released a great little LiveCD on the sourceforge site that makes things much easier to evaluate.

      For example, if you have VMWare Workstation you can install the LiveCD then run PXE nodes and test all the features you care to test. Just takes a lot of memory to run all the VM's...

      I'm just getting started testing w/ it so I can't really say what happens to the "state" of a transaction. But, fun fun test test...

    5. Re:What I want from virtualization by jgold03 · · Score: 1

      anthony! whatever he says is wrong because he doesn't know anything about xen. ;)

    6. Re:What I want from virtualization by Anthony+Liguori · · Score: 1

      :-P

  14. Re:*BSD is Dying by ObsessiveMathsFreak · · Score: 0, Offtopic

    Well, at least the Troll's are still reading the BSD section!

    --
    May the Maths Be with you!
  15. Xen vs. qemu? by Anonymous Coward · · Score: 0

    How about vs qemu? It seems Qemu has both a virtualizer and an emulator (the "qemu accelerator does the virtualizer part"), and can run un-modified OS's (like Win2K) just fine in the emulator mode.

    I use QEMU quite a bit, to test our stuff on both linux and windwos. (yeh, I used vmware too after they matched qemu in price, and it worked fine too; but I saw no compelling reason to switch)

    Curious how Xen compares to teh accelerated QEMU.

    1. Re:Xen vs. qemu? by WindBourne · · Score: 1

      Xen is much faster than Qemu. But it can only run OSs that have been modified. In contrast Qemu should be able to run any intel arch OS. It has been awhile since I looked in at this, but I thought that Qemu was being modified to run under Xen so that Windows and OSX could run under Xen. Of course, if that is so, the windows and OSX will be slow but for testing purposes, it could be useful.

      --
      I prefer the "u" in honour as it seems to be missing these days.
  16. Re:In other news... by kadathseeker · · Score: 3, Funny

    What? You like BDSM? Thanks for sharing, but... uhh... no thanks. Well, it probably is VERY manly.

    --
    The 'Net is a waste of time, and that's exactly what's right about it. - William Gibson
  17. Solaris Zones... by Anonymous Coward · · Score: 0

    Are here and they rock. Zen has been in the making for some time now and is still not production ready. Anyone knows the differences between Zones and Xen?
    BTW, Zones give near native performance - verified on production machines.

    1. Re:Solaris Zones... by SillyNickName4me · · Score: 1

      Solaris Zones...

      Are here and they rock


      And FreeBSD jails have been here forever and they rock.. They compare a lot better to Solaris zones then XEN does.

      First difference: XEN runs virtual machines with possibly completely differet guest OSes, jails and zones run instances of their host OS as guests (often sharing the kernel).

      Different purpose, different technology, tho with some incidental overlap (you could use both to create multiple 'virtual' environments on one piece of hardware)

    2. Re:Solaris Zones... by otomo_1001 · · Score: 1

      Actually the solaris developers are planning on integrating xen into solaris and zones. So you could run a Linux zone that doesn't even know that solaris is running. Or, if you felt so inclined, another Solaris instance.

      Which would completely rock. I already love zfs in opensolaris, the ability to install a linux distro into a zone with xen would make me super happy.

      Then I can get gentoo and solaris all in one. (don't argue about why I want Solaris to be the master domain, it is personal preference. mainly because I could snapshot the linux zone using zfs and have a very easy way to back up/rollback, my mind boggles with the possibilites)

      Sorry, resume your disorder.

    3. Re:Solaris Zones... by SillyNickName4me · · Score: 1

      Sun is said to be busy on XEN support for Solaris.

      Just having that will be enough to run Solaris and Linux at the same time, and other then a possible management interface I really wonder what zones have to do with this all, if you have any more information it would be appreciated.

    4. Re:Solaris Zones... by Anonymous Coward · · Score: 0

      If you google for Xen/Solaris, you'll discover a lot being said back around june-august '05 about having gotten Solaris up (to a limited degree), presumably under Xen 2. Then everything got strangely quiet.

      I have no inside connections, but the impression I got was that Solaris 11 will have Xen support and the plan was to have it come out somewhere around august 06.

      Presumably it'll be Xen 3 based, since that will give them better support for SMP and AMD64.

  18. Limerick by DaSwing · · Score: 1, Funny

    There's a dude who knows his stuff
    Sure his code is interestingly enough
    It will fulfill our wettest dreams
    Taking multitasking to the extremes
    Filling our machines with marshmallow fluff

    --
    11. Thou shall obey Da mighty Swing
  19. What about Virtualization? by horacerumpole · · Score: 5, Informative
    I think you should update your information about this.

    Xen 3.0 on the newer Intel/AMD chips should be able to run Windows (or any other OS) without modification to the hosted OS.

    1. Re:What about Virtualization? by ocelotbob · · Score: 2, Insightful

      True, but he was asking about using windows as the host, which will not be possible unless you shell out the money to purchase Longhorn Server. It's doubtful that MS will provide the hosting hooks into the desktop versions of Longhorn

      --

      Marxism is the opiate of dumbasses

    2. Re:What about Virtualization? by horacerumpole · · Score: 1
      I stand corrected.

      Between us, as others have pointed out - in the Xen world there is not really a "host" OS a-la VMware and friends but more of an OS which runs at Ring-0 and manages Xen. I don't think that the original questioner should care which OS is this as long as he can get both Windows and Linux running in parallel on his hardware, which will be possible with the new hardware I mentioned (allowing Windows to run under Xen and therefore allowing him to share the same hardware between Windows and Linux more efficiently than the current solutions).

      Or am I wrong on that account too, and he should still care to shell out the money for Longhorn Server?

    3. Re:What about Virtualization? by ocelotbob · · Score: 1

      It looks like the newer Intel and AMD procs may allow this, but I'd play wait and see here. MS has a shady past when dealing with other OSes (Windows isn't done until Lotus won't run, etc), and I've got a feeling that they may try something sneaky here, especially considering that it'll allow someone to use the low-end server OS, instead of the advanced server OS.

      --

      Marxism is the opiate of dumbasses

  20. Yes, but will apple do it? by Anonymous Coward · · Score: 0

    But will apple support Xen so Mac OS X could be used under Xen? Thus far, I have not heard either yes or no WRT Xen.

  21. VMWare Player... by WoTG · · Score: 1

    I looked this up a while ago... Xen needs the HOST OS to be modified, at least with current CPUs. Fortunately, VMWare player if free as in beer, and it works. So, now I have a perfectly functioning Linux install which I couldn't do before (lack of WiFi support for my wireless chip). Xen is nice, but free VMWare is good and it works.

    1. Re:VMWare Player... by thehunger · · Score: 4, Interesting

      You're right. Any you'll be glad to know that VMware has decided to provide a updated and FREE version of its GSX Server. This will allow you to CREATE virtual machines as well as run several VMs timultaneously. Also it can do SMP and 64-bit emulation, so you'll be able to install a 64-bit multi-processor version of an OS on your current 32-bit single processor computer...

        It's called VMware Server and is in beta now.

      However, it's not -entirely- free: VMware will charge for support, and there's no guarantee that updates and patches will be available for non-paying customers.

    2. Re:VMWare Player... by efishta · · Score: 1

      From what I understand, the guest/host requirements and capabilities are the same between the VMWare Server beta and the current release of VMWare Workstation (5.5). It's not possible to virtualize a 64bit CPU on a 32bit CPU.

      It is, however, possible to run a 64bit guest OS on a 32bit host OS if the underlying CPU is 64bit, but if both the host OS and host CPU are 32bit, then the guest OS invariably can only be 32 bit.

    3. Re:VMWare Player... by InsaneGeek · · Score: 1

      Correct, VMware doesn't virtualize the cpu hardware; it presents the CPU up directly as is to the guest virtual machine, if you only have a 32bit cpu you can only run 32bit. Which when you get to esx server and doing hot moves between physical boxes, means that all the capabilities (mmx, sse, etc) need to be supported on the target cpu as well.

  22. Try VMWare ESX Server 3 by supachupa · · Score: 2, Interesting

    VMWare ESX Server 3 (currently in beta) will probably get as close as you can to having live fault tolarant servers. By sharing a storage such as SAN or iSCSI, it is able to instantly take over when it detects the failure of another physical box and should not lose any sessions or data. The other cool thing is that it can dynamically move a running virtual machine to a less loaded physical server. Still, it is not running two virtual machines simultaneously like you've described.

  23. Nope by nurb432 · · Score: 1

    It requires changes to the guest Kernel. Dont expect microsoft to do this for us, they have nothing to gain by doing that.

    --
    ---- Booth was a patriot ----
  24. Linux? by Wizard+Drongo · · Score: 1

    Yeah, but does it run linux?

    Oh wait......

    --
    The truth shall always be free: Boris Floricic is Tron.
  25. You want a cluster you mean by Anonymous Coward · · Score: 0

    Clusters do exactly what you want, seemless failover. Virtualization isn't the term you are loking for.

    Xen can essentially do this as well. Simply run a single Xen OS on multiple machines. If one fails then Xen will failit over to another physical machine. You aren't required to run many multiple OSes with Xen.

  26. Xen Performance is overrated by Anonymous Coward · · Score: 0

    Most Xen performance numbers that one sees are taken while running in DomainO, not DomainU. Domain0 is going to be using the "native" device drivers ("native", because not using real IRQs, but Xen's Event system). The problem is, that's not where one runs real virtual machines, those are in DomainU's and those have significantly worse performance. an apples vs. oranges comparison is Xen Domain0 vs. Vmware Workstation. an apples to apples in that case is Xen Domain0 (as "host" of DomainUs) vs. Regular Linux (as host of Vmware worksation intances). an apples to apples is also DomainUs vs. Vmware Worksation.

    That's not to say, DomainO benchmarks are pointless. In fact, you can do many cool things on Xen that if you don't care about multiple virtual machines, will work in your Domain0 with good performance.

  27. And you believe those hacks why? by Some+Random+Username · · Score: 1

    Intel makes the chips. They have said quite clearly that the chips do support VT. People have displayed dmesg's showing that the CPUs do in fact report that they support it. Its just that some companies are shipping shitty boards with the functionality turned off, that doesn't mean that the CPUs don't support it.

    http://appleintelfaq.com/images/intel_vt_response. pdf

    1. Re:And you believe those hacks why? by ScriptedReplay · · Score: 1

      Well, that's not saying much - Dothan reports itself as supporting PAE whenin fact that support is broken and Linux kernels that depend on it won't boot on Dothan machines.

      Heh, I'm curious whose shitty boards are you talking about. Are there any CoreDuo machines shipping now (or soon) that do have VT enabled?

  28. Facts about running Windows in Xen by billyjoeray · · Score: 1

    I personally have installed and ran generic Windows XP on Xen using the existing Intel chips with VT support. Performance basically sucks right now because Xen currently uses qemu to emulate bios/disk/network/video for these devices so with a lot of disk or network IO you can basically take the machine to its knees because it starts using up 100% cpu to emulate the IO.

    --
    This sig will make it clear that ANYONE can use this post for ANY purpose WITHOUT the written consent of the NFL.
  29. BSD? by Anonymous Coward · · Score: 0
    BSD? Bones said it best:
    "It's dead, Jim."
  30. OpenBSD's CARP + Apache = No-downtime, Redundancy by Anonymous Coward · · Score: 0

    Check out OpenBSD's CARP and use for your Apache or other httpd. Complete failover, with no down time if one fails and OpenBSD runs on old, cheap hardware without a hitch. The possibilities are endless! I've seem many great articles on it too. CARP isn't just for redundant firewalls with OpenBSD, it can be used for many other things too.