Slashdot Banner
Stories
Slash Boxes
Comments
typodupeerror delete not in

Comments: 183 +-   Red Hat Releases Windows Virtualization Code on Wednesday August 26, @06:21PM

Posted by samzenpus on Wednesday August 26, @06:21PM
from the show-me-yours-and-I'll-show-you-mine dept.
redhat
business
os
software
windows
linux
dan_johns writes "Only one month after Microsoft released Linux code to improve the performance of Linux guests on Windows, Red Hat has done the reverse. Red Hat has quietly released a set of drivers to improve the performance of Windows guests hosted on Linux's Kernel-based Virtual Machine (KVM) hypervisor. The netkvm driver is a network driver and viostor is a Storport driver to improve the performance of high-end storage. This release includes paravirtual block drivers for Windows. Linux and Windows — virtually coming together at last."
story

Related Stories

This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
  • Gentoo?? (Score:2, Funny)

    by Anonymous Coward

    I use Gentoo; how does this affect me?

  • Isn't it better when we all play nicely?
    • Re: (Score:3, Insightful)

      by Anonymous Coward

      Isn't it better when we all play nicely?

      Gestures are good, but the proof is in the pudding. If Microsoft keeps up actions like this on a consistent basis, then good things will happen.

      I just worry that this is more of a "Oh look, judge, the prosecution's arguments are invalid. Look at these two examples where we worked with open source! See?! We're not bad!"

      • Re:See! (Score:5, Insightful)

        by maharb (1534501) on Wednesday August 26, @08:40PM (#29211251)

        It might be a legit improvement and a strategic move from Microsoft. Windows doesn't care if they are being run in a VM on a Linux box. They still sell support, licenses and all that other good stuff. In fact, VM's might mean more windows installs, more license keys sold, more support requests, and more money for Microsoft. Why would they want to stop paying customers from doing what they want on their box. Hell, Microsoft is probably thrilled that people are running Linux on a licensed copy of Windows in a VM rather than native and they are probably thrilled that windows is being installed on VM's on a Linux host. Win win for Microsoft and Linux. Soon they will both have 100% market share. lol.

          • Re: (Score:3, Informative)

            This is actually entirely false for servers - server vendors make damn sure Linux works out the box. Dell, Sun or HP would never release an x86 server these days that doesn't run Linux perfectly. All of them will deal with Red Hat in paid support and (in my experience) happily treat CentOS as Red Hat for problem solving purposes.

            Random desktop crapware, yeah. But this virtualisation exercise is for the benefit of servers, after all.

      • Re: (Score:3, Insightful)

        MS is only playing nicely because it has to, for the time being. Namely:
        • World Domination will fail if virtualization is near-ubiquitous and MS isn't involved. MS had to enter the virtualization market.
        • Entering the market gives them a chance to do their "embrace, extend, extinguish" tricks to make sure they're dictating the rules (see RTF, IE, OOXML, C#, &c &c) instead of being dictated to.
        • However, they aren't as strong in the server market as they'd like. Namely, they know that if Hyper-V won
    • Re:See! (Score:5, Insightful)

      by Ynot_82 (1023749) on Wednesday August 26, @06:30PM (#29210167)

      Since when has Linux /not/ played nicely with windows?

      It's the other direction that's strewn with landmines

      • Re:See! (Score:4, Insightful)

        by wamerocity (1106155) on Wednesday August 26, @06:32PM (#29210185) Journal
        Landmines explode in either direction. I think it's more like the metal spikes coming out of the ground when you try to drive out of a parking garage without paying.
        • Landmines explode in either direction. I think it's more like the metal spikes coming out of the ground when you try to drive out of a parking garage after paying.

          I sorta improved your open-source English code there for ya...

      • Re: (Score:3, Insightful)

        At least linux tries. But there is a fundamental shortfall at the moment - lack of support for a common filesystem! Windows only does NTFS, and NTFS-3G in linux grinds to a halt and freezes if you write substantial amounts of data. (This is most often noted by people trying to run VMWare images on an NTFS filesystem from a linux host, since suspending and snapshotting the guest take lots of space). That leaves you with fat32, and 2GB files aren't what they used to be.
        • Samba? That's a pretty common file system. But yeah I get what you mean.
        • Re:See! (Score:5, Interesting)

          by fuzzyfuzzyfungus (1223518) on Wednesday August 26, @08:14PM (#29211051) Journal
          A common filesystem(one nicer than fat32, or iso9660, and more generally useful than UDF, at any rate) would be nice; for external storage devices and for certain hobbyist dual-boot scenarios; but I, in my own experience, just don't feel the need as keenly as I used to. I wouldn't be surprised if the reason that one doesn't exist(to any really useful degree) is that others have similar experiences.

          With computers so cheap, and getting ever cheaper, and networking going from common to ubiquitous, and little network storage widgets popping up even on home networks, not to mention the increasing amount of stuff that lives on a remote server somewhere, I just don't find myself needed to access one OS's partition from the other very much. If I really do need to grab some file, NTFS-3G's inefficiency just isn't a big deal.

          The overwhelming majority of file transfers between OSes(or between the same OS on different machines) that I end up doing these days are via some network protocol, http, sftp, smb, IMAP, etc. that abstracts away the filesystem on the other end, and is spoken just fine by most anything. With virtualization becoming an increasingly common, and for most purposes superior, alternative to dual booting, network transfers even work for two OSes on the same machine.

          It would be nice if there were a properly interoperable filesystem in common use(if only so we could shove a stake through exFAT's black heart before it takes off); but it just hasn't been a big deal for a while now, for me.
        • Re:See! (Score:5, Informative)

          by Korin43 (881732) on Wednesday August 26, @09:02PM (#29211401) Homepage Journal
          The NTFS drivers for Linux work pretty well.. And ext2 IFS [fs-driver.org] works except for:

          * Inodes that are larger than 128 bytes are not supported.
          * Access rights are not maintained. All users can access all the directories and files of an Ext2 volume. If a new file or directory is created, it inherits all the permissions, the GID and the UID from the directory where it has been created. There is one exception to this rule: a file (but not a directory) the driver has created always has cleared "x" permissions, it inherits the "r" and the "w" permissions only. See also section "What limitations arise from not maintaining access rights?".
          * The driver does not allow accessing special files at Ext2 volumes, the access will be always denied. (Special files are sockets, soft links, block devices, character devices and pipes.)
          * Alternate 8.3-DOS names are not supported (just because there is no place to store them in an Ext2 file system). This can prevent legacy DOS applications, executed by the NTVDM of Windows, from accessing some files or directories.
          * Currently the driver does not implement defragging support. So defragmentation applications will neither show fragmentation information nor defragment any Ext2 volume.
          * This software does not achieve booting a Windows operating system from an Ext2 volume.
          * LVM volumes are not supported, so it is not possible to access them.

          • Re: (Score:3, Interesting)

            Come to think of it, I've only had it actually lock up when running VMWare from that ntfs partition. VMWare can be very disk intenstive (snapshots, suspend+resume) and runs largely in kernel mode, maybe it's choking on the delays?

            I'd be very curious what you get from the following test - here is my output from running the following command on both ntfs and ext3 filesystems:

            time dd if=/dev/zero of=test bs=1024 count=2000000

            On NTFS:
            2000000+0 records in
            2000000+0 records out
            2048000000 bytes (2.0 GB) copied, 14

      • A NT filesystem driver more recent that EXT2 would be nice, for a start.

  • Lack of Caring (Score:4, Interesting)

    by tychoish (1013857) on Wednesday August 26, @06:29PM (#29210139) Homepage
    I suppose this is a good thing, and I'm a big fan of the virtualization, but really, why? Windows fails to compel.
      • Re: (Score:3, Informative)

        by Anonymous Coward

        Way to display your ignorance! We're talking about paravirtualization, not the crappy performance you'll get from workstation or virtualbox. This is on par with esx, hyperv and xen. So, having better paravirtualization support for windows on kvm really leaves virtualbox completely in the dust. And I'm sure this is all done by ms and rh with a view to the server, not the guy who wants to virtualize xp to run cstrike.

  • by mlts (1038732) * on Wednesday August 26, @06:30PM (#29210157)

    I've always wondered how paravirtualizing some functions such as I/O or networking affects security.

    Say a VM gets compromised, and is able to do what it wants with the block devices, how tough would it be to get out of the VM? If malicious code is able to access the host's block device that runs in kernel mode and start running code directly on the host's OS, game over.

    • You can think of it a little like an application and memory protection - yeah if the process could suddenly circumvent the virtualized address space and access kernel memory the machine is rooted, but otherwise it can only trash its own memory space. Yes, a compromised VM can do anything to the virtualized block devices but unless it can disable the translation and access the real block devices it can only trash its own disk. In both cases there's some fairly simple, solid and well understood locks in place

    • That depends on if you are using Xen or Qemmu. There's a design flaw in Xen/SELinux that will allow a hacked guest to write to the physical drive without notifying SELinux. This was "fixed" when the Qemm/SELinux interaction was worked out. There's a blog from one of the Red Hat SELinux guys that gives more detail, but I can't find the link just now.
    • by TheRaven64 (641858) on Wednesday August 26, @07:02PM (#29210443) Homepage Journal
      Paravirtualisation just means that you're using a set of simple interfaces to communicate with the hypervisor driver, rather than an emulated physical device. You're still sending commands from the guest to the hypervisor (or, in the case of Xen, to a privileged guest), and it is still completing them on your behalf by talking to the hardware. If anything, PV is more secure, because the code running outside the guest is much simpler than a full emulated device. If there's a bug in the host PV drivers that permits arbitrary code execution then it's possible to escape from the VM. If there's a bug in the host's device emulator, then it's possible to escape from the VM. The second is more likely, because the code is much more complicated. A Xen PV block device interface, for example, is about 200 lines of code.
    • by Anthony Liguori (820979) on Wednesday August 26, @07:29PM (#29210665) Homepage

      I've always wondered how paravirtualizing some functions such as I/O or networking affects security.

      Say a VM gets compromised, and is able to do what it wants with the block devices, how tough would it be to get out of the VM? If malicious code is able to access the host's block device that runs in kernel mode and start running code directly on the host's OS, game over.

      Unlike Hyper-V and Xen, in KVM a paravirtual device looks an awful lot like an emulated device. For instance, virtio-net appears to the guest as a normal PCI device. It's quite conceivable that a hardware vendor could implement a physical virtio-net card if they were so inclined. In our backend, we implement virtio-net like any other emulated device.

      This means from a security perspective, it's just as secure as an emulated driver. It's implemented in userspace and can be sandboxed as an unprivileged user or through SELinux.

      VMware uses a similar model. Hyper-V and Xen prefer to not model hardware at all and use special hypervisor-specific paths. From a security perspective, the fact that these devices are on a different code path means that they have different security characteristics than emulated devices. For instance, in Xen, a paravirtual network device is backed directly in the domain-0 kernel so an exploit in the xenpv network device is much more severe than an exploit in a Xen emulated network device (since the device emulation happens in an unprivileged stub domain).

  • A good thing. (Score:5, Interesting)

    by LoRdTAW (99712) on Wednesday August 26, @06:32PM (#29210179)

    Cooperation like this is a great gesture. MS releasing code to help Linux run better in their VM's is a good thing and I am glad Red Hat returned the favor. With shops today running a mixed environment this helps them with transitioning or running apps side by side. Great for Linux development/testing on Windows and now better Windows development/testing on Linux systems. Now if only Apple would allow OSX to run in a VM. Developers could have one system running the OS of their choice and do all their cross platform development and testing on one system. Great for small developers who might code on a laptop or prefer to have a single system for development.

    • by Sycraft-fu (314770) on Wednesday August 26, @06:40PM (#29210239)

      For better or worse, right or wrong, Apple is convinced they are a hardware company. They make their money on hardware in their mind, they just use their software to help sell their hardware. So they don't want you doing virtualization. They are not at all interested in your running their software on other people's hardware. For that matter, they aren't really interested in you running VMs all on their stuff. They'd much rather you have to buy 5 Xserves than buy 1 and do 5 VMs.

      Just life, and it isn't likely to change unless Apple starts losing money (and probably not even then).

      • Re: (Score:3, Interesting)

        The nice thing is that if you need to run VMs on OS X, you can move VMs from VMWare ESXi to VMWare Parallels on the Mac with little effort. Most of the time, it can copy directly. Worst case, you might need to copy the hard disk files and reinstall the VMWare client stuff.

        Though it would be nice for Apple to have VM functionality built into the OS, or available easily, thankfully there are programs that allow Macs to be VM hosts. VMWare is a big one, but I have used Sun's VirtualBox as well, and even tho

    • Re: (Score:3, Informative)

      MS only released it because they got caught violating the GPL.

      • Re:A good thing. (Score:5, Insightful)

        by spitzak (4019) on Wednesday August 26, @08:30PM (#29211153) Homepage

        Not really. The authors of the code wanted it released in such a way that it could be incorporated into the kernel source code. This meant it had to be GPL or the kernel maintainers would not add it. It is irrelevant whether or not releasing it some other way would violate the GPL, as the authors never intended to do that.

        The real news is that somehow magically Microsoft was not forced to GPL every bit of code that they ever wrote, despite their repeated claims that the GPL is a "virus" that "infects everything it touches". They basically proved that they directly lied about this.

  • by jamesh (87723) on Wednesday August 26, @06:32PM (#29210191)

    How is this new news? Xen and VMWare have had PV drivers for Windows for ages...

  • Quiet release (Score:4, Insightful)

    by dkleinsc (563838) on Wednesday August 26, @06:43PM (#29210255)

    Tell me, since when does a press release for Techworld + a front-page /. article count as releasing "quietly"?

  • At parity once again (Score:3, Interesting)

    by stox (131684) on Wednesday August 26, @06:50PM (#29210323) Homepage

    No longer does Microsoft enjoy an advantage hosting mixed VM's. I am sure the boys in Redmond are not amused. Kudos to the folks at RedHat.

    • Re: (Score:2, Redundant)

      I am sure the boys in Redmond are not amused.

      Microsoft and Red Hat agreed to support each others' operating systems in their virtual environments [redhat.com], so this action is to be expected.

      • Re: (Score:3, Interesting)

        I am sure the boys in Redmond are not amused.

        Microsoft and Red Hat agreed to support each others' operating systems in their virtual environments [redhat.com], so this action is to be expected.

        Yes, they expected it just like they expected people to extend Kerebos Authentication and XML filetypes right back at them. Microsoft embraces and extends OTHERS, they don't GET embraced and extended.

        Windows Server able to run Linux VMs easily means more people willing to move from Linux to Windows, cause they can virtualize their Linux apps until they've ported them over -- and since they went to all that trouble to pay for Windows server... Might as well keep it.

        It doesn't really "work" for Microsoft th

        • by nxtw (866177) on Wednesday August 26, @07:26PM (#29210643)

          Yes, they expected it just like they expected people to extend Kerebos Authentication and XML filetypes right back at them. Microsoft embraces and extends OTHERS, they don't GET embraced and extended.

          No; Microsoft and Red Hat joined each others' virtualization validation programs. As a result, Red Hat will support Windows server operating systems on Red Hat's virtualization software. This support is a direct result of Red Hat participating in Microsoft's validation program [windowsservercatalog.com].

          The list of vendors participating in Microsoft's program includes other companies, such as VMware, Citrix, Cisco, Oracle, and Sun.

    • Eh, MS still gets money for the licenses of those virtualized systems. I doubt they're *too* upset over it.

  • Asp.net (Score:2, Interesting)

    One step closer to http://slashdot.org/Default.aspx [slashdot.org]
  • by itzdandy (183397) <dandenson@ g m a i l .com> on Wednesday August 26, @09:46PM (#29211659) Homepage

    The problem for me with this is that Windows is a poor server OS. The only compelling reason to run Windows servers is active directory and exchange. IIS is not nearly as good as apache or nginx or comanche or lighttpd (specifically, overhead, flexability, security, and performance!)

    The costs for many organizations to engineer, deploy, and support windows servers for exchange and sharepoint is equal to or greater that the cost of outsourced/hosted. You can get hosted exchange for under $12/user/month at rackspace which compares well enough to a MCTS for Windows server and exchange as that 55,000 can do well over 350 exchange accounts without a power bill.

    A linux server may take some expertise to setup but needs far far less daily upkeep. You can employ many less techs and hire in from the local tech shop for big deployments. I have an email server (ubuntu 6.04) that has been running for over 3 years without any effort on my part. The only downtime it has ever had was when the power failed and it shut down after the UPS was drained. $1200+ about 6 hours config (say $85/h) and no maintenance is something is am sure no windows server can or ever has matched.

    back on point here, stop investing time and money is getting windows to run faster virtualized, put those dollars into alternatives to windows software. it has happened before that an OSS alternative (apache) has become so dominant that the big vendors have the alternatives rather than the standard. (bind, apache, sendmail and postfix, courier etc)

  • by jchawk (127686) on Thursday August 27, @06:27AM (#29214555) Homepage Journal

    What do you think the demon baby these two are going to have is going to look like?

When I left you, I was but the pupil. Now, I am the master. - Darth Vader