Archive for virtualization

Apply VirtIO for KVM over KVM (Day 2)

I talked w/ David Ke Zhu @ dev team and confirmed that VirtIO is a mandatory plugin driver to apply in order to improve the IO performance of disk + network. HSLT depends on this driver. (Thanks to David).

Good > the install step is simple on host OS. Bad > all Windows VM need patched as well! (not Linux VM)
Apply the latest kernel on host OS. Supposed >= 2.6.31 and latest KVM associating to such level of kernel

Download virtio-win.iso package from supplemental disc
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/…Installing_the_KVM_Windows_para_virtualized_drivers

Install package onto Windows VM @ step: Procedure 12.1. Using virt-manager to mount a CD-ROM image for a Windows guest -> this step should update VM xml conf with appropriate param needed before VM system boot.

I can bet this would fix the issue as The virtio-win package contains the para-virtualized block and network drivers for all supported Windows guests.

Comments off

Apply VirtIO for KVM over KVM (Day 1)

We received a complaint regarding KVM performance issue today. Customer reports the performance is poor when copying files from native bare- metal Windows box to Windows 2003 VM created over KVM on CentOS 5.5 host box.

Searching @ RHEL KVM doc >
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Virtualization/chap-Virtualization-KVM_restrictions_and_support.html

It reads Windows 2003 32 or 64bit is supported as fully virtualized guest on RHEL5, but requires “optimized with para- virtualized drivers”

To install para- virtualized driver is detailed @

http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Virtualization/chap-Virtualization-KVM_Para_virtualized_Drivers.html#sect-Virtualization-KVM_Para_virtualized_Drivers-Installing_the_KVM_Windows_para_virtualized_drivers

Additional info on KVM limitation
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Virtualization/sect-Virtualization-Virtualization_limitations-KVM_limitations.html

We’d consider to apply this. It should fix the performance issue.

If CentOS5.5 is installed, the similar solution > http://www.centos.org/modules/newbb/viewtopic.php?topic_id=23513&forum=37
mkinitrd –with virtio_pci –with virtio_blk —with virtio -f /boot/initrd-$(uname -r) $(uname -r )

Comments off

Post- install Packages after Ubuntu Desktop Setup

After default install of Ubuntu 10.04 LTS, here are the additional dpkg to apply:
network-manager-vpnc ubuntu-desktop p7zip gimp imagemagick seamonkey chromium-browser pidgin kvm libvirt-bin ubuntu-vm-builder bridge-utils acroread sun-java6-bin sun-java6-jdk ubuntu-restricted-extras scim-pinyin skype usb-modeswitch rcconf ssh openconnect

Comments off

Windows Azure versus Amazon EC2

http://news.techworld.com/data-centre/3228389/windows-azure-versus-amazon-ec2/

Windows Azure versus Amazon EC2

Microsoft cloud official says infrastructure and platform cloud lines will blur

By Jon Brodkin | Network World US | Published: 10:36 GMT, 28 June 10

Microsoft’s Windows Azure and Amazon’s Elastic Compute Cloud tackle two very different cloud computing technology problems today, but are destined to emulate each other over time, Microsoft cloud official Tim O’Brien says.

Whereas Windows Azure is a platform-as-a-service cloud, giving developers the tools they need to build and deploy web applications, Amazon EC2 is primarily an infrastructure-as-a-service cloud, offering on-demand access to customisable virtual machine instances.

Azure simplifies the building of web applications in a way that Amazon does not, but Amazon’s cloud-based virtual machines have the benefit of working with multiple programming models, O’Brien says, predicting that over time Microsoft will move more into infrastructure-as-a-service and Amazon will cross over into platform-as-a-service (PaaS).

O’Brien, senior director of Microsoft’s Platform Strategy Group, discussed his take on the cloud market in an interview with Network World, as well as a public presentation at the recent Cloud Leadership Forum, hosted by IDC and IDG Enterprise.

“It’s a double-edged sword,” O’Brien said in the interview. “The reason people like infrastructure-as-a-service is because it’s programming model agnostic. The bare metal VM doesn’t care what language you wrote the application in, it doesn’t matter what tools you use and what run times you’ve targeted. If it runs on Windows or Linux, give it a virtual machine and it will run just fine. The problem is it’s a lot of extra work. You’re responsible for that virtual machine the same way you’re responsible for a server sitting under your desk. You’re responsible for turning it on. You’re responsible for turning it off. You’re responsible for applying a patch or an update. If Red Hat applies a Linux patch, and you have a Linux VM running on Amazon, you have to apply that patch yourself. They won’t do that for you.”

But there are shortcomings in the platform-as-a-service model as well, O’Brien acknowledges. The biggest problem with PaaS may be difficulty migrating existing applications from the internal data centre to the cloud.

“Platform-as-a-service has a different set of trade-offs,” O’Brien says. “All of that stuff is completely abstracted away, it’s a friction-free development, you basically code up an application, you hit deploy and it’ll go run on the platform that’s supplied by those run times. So in our case its PHP, C Sharp, in the case of Google App Engine it’s Python and Java.” While building new applications is easy, and removes the need for owning internal hardware and software, other than a Web browser, “part of the challenge there is it’s not necessarily optimal for migrating existing applications.”

Microsoft has already announced that “at some point [in the next 12 months] we will be offering the ability to provision a bare-metal VM, and run your application on that,” O’Brien says. While Amazon provides a variety of Windows and Linux virtual machine images through EC2, the company’s Web Services business offers a variety of other tools that might be useful to developers, including databases, storage services and load balancing.

O’Brien predicts that just as Microsoft moves into IaaS, Amazon will build a PaaS offering that more closely resembles Azure than anything Amazon offers today. Amazon’s public relations department could not be reached for comment Friday.

“It’s not a matter of one is better than the other; they accomplish different things,” O’Brien says. “But I think what you’ll see happen in the marketplace is a convergence of those two, where infrastructure-as-a-service providers like Amazon will move up the stack toward platform-as-a-service. You’ll also see PaaS providers like Microsoft provide some of that infrastructure-like capability, just so we can handle those migration scenarios much easier, and the lines will get blurred.”

In his speech at the Cloud Leadership Forum, O’Brien said public cloud services are generally not providing as much customization as customers want, but the cloud model is gaining popularity both among users who want to sidestep their companies’ IT departments, and from small businesses that want to get out of the IT business.

Many small businesses “don’t want to be in the IT business,” O’Brien said. “Private cloud is not in their vocabulary. They want to run their businesses on PCs and mobile phones and get out of the IT business entirely.”

Private clouds simply don’t offer the same economies of scale as public clouds do, he said, claiming that per-server TCO in a 100,000-server data centre is less than half the per-server TCO in a 1,000-server data centre.

Microsoft’s goal in the cloud is to offer customers the same functionality they would expect if they install the software themselves, he said. “If you can write an app for Windows Server you should be able to write an app for Windows Azure,” O’Brien said.

Comments off

Hypervisor Brief Intro

View of Avi Kivity By Irfan Habib, http://www.linuxjournal.com/article/9764?page=0,1

In many ways, VMware is a ground-breaking technology. VMware manages to fully virtualize the notoriously complex x86 architecture using software techniques only, and to achieve very good performance and stability. As a result, VMware is a very large and complex piece of software. KVM, on the other hand, relies on the new hardware virtualization technologies that have appeared recently. As such, it is very small (about 10,000 lines) and relatively simple. Another big difference is that VMware is proprietary, while KVM is open source.

Xen is a fairly large project, providing both paravirtualization and full virtualization. It is designed as a standalone kernel, which only requires Linux to perform I/O. This makes it rather large, as it has its own scheduler, memory manager, timer handling and machine initialization.

KVM, in contrast, uses the standard Linux scheduler, memory management and other services. This allows the KVM developers to concentrate on virtualization, building on the core kernel instead of replacing it.

QEMU is a user-space emulator. It is a fairly amazing project, emulating a variety of guest processors on several host processors, with fairly decent performance. However, the user-space architecture does not allow it to approach native speeds without a kernel accelerator. KVM recognizes the utility of QEMU by using it for I/O hardware emulation. Although KVM is not tied to any particular user space, the QEMU code was too good not to use—so we used it.

Comments off

Decided to Switch KVM

Choosing a hypervisor in #Cloud projects always costs me time, between Xen & Kernel-based Virtual Machine (KVM). After an interesting discussion with one of Cloud Computing architect @ IBM, we get a deal – use KVM for future #Cloud implement. My considerations:

  1. IBM announced to boost KVM @ Cloud initiatives since March this year. This indicates IBM’s strategy @ hypervisor on Intel machines leans to KVM, rather than Xen. And more official development, test and support are coming after.
  2. Virtio project to support better network IO performance. http://kbase.redhat.com/faq/docs/DOC-25441

More resources:
KVM vs Xen, dates back in 2006, but telling some basic > http://www.gridvm.org/xen-vs-kvm.html
Xen vs KVM by Xen > http://blog.xen.org/index.php/2010/05/07/..kvm-linux-..community/
KVM @ IBM InfoCenter > http://publib.boulder.ibm.com/../kvminstall/liaaikvminstallstart.htm
Securing KVM @ IBM InfoCenter > http://publib.boulder.ibm.com/../kvmsec/kvmsecguest.htm
Benchmark by Xen > http://wiki.xensource.com/..Quantitative+Comparison+of+Xen+and+KVM.pdf
KVM vs VMware > http://www.workswithu.com/2009/04/27/kvm-vs-vmware-a-case-study/

They’re all @ http://delicious.com/j3ffyang/kvm

Notice: since I only consider #OpenSource virtualization solution @ my #Cloud projects on Intel, there is #proprietary #VMware in my solution design. But integration with VMware is always available.

Comments off

Virtualized Windows Hangs when Shutdown on VirtualBox 3.0

Stack

Host OS > Ubuntu 9.04

Guest OS > Windows XP

VirtualBox > 3.0.0

Hardware > ThinkPad T43, single CPU, 2G memory

Symptom: Windows XP hangs during shutdown

Resolution: Change the setting as the followings

VT – Enabled

Nested Paging – Disabled

ACPI – Enabled

IO ACPI – Disabled

PAE – Disabled

virt_console1virt_acpi0virt_pae02

Comments off

« Previous entries Next Page » Next Page »