LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 03-19-2010, 05:52 PM   #1
FireRaven
Member
 
Registered: Apr 2006
Location: Australia
Distribution: Debian Squeeze
Posts: 135

Rep: Reputation: 18
64-bit VirtualBox host running a single 32-bit guest, good idea?


Hi,

I need to host a Windows 2003 (32-bit) guest VirtualBox image.

My machine is a top of the range Intel i7 920.

Ignoring all RAM benefits/limitations, should I install Ubuntu Server AMD64 or x86 for the host OS (along with the AMD64 or x86 versions of VirtualBox)?

Or is it bad to run 32-bit guests in 64-bit hosts?
 
Old 03-19-2010, 06:39 PM   #2
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
It won't make any real difference which way you do it, other than freezing out 64-bit clients if you use a 32-bit host OS.
 
Old 03-19-2010, 10:06 PM   #3
FireRaven
Member
 
Registered: Apr 2006
Location: Australia
Distribution: Debian Squeeze
Posts: 135

Original Poster
Rep: Reputation: 18
Ok thanks. Just wanted to make sure the 64-bit host doesn't have a lot of overhead when trying to perform 32-bit emulation since it was really designed for 64-bit emulation.
 
Old 03-20-2010, 12:31 PM   #4
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
This "emulation" word may stand in the way of your understanding what virtualization means. The CPU is not being emulated, nor is the operating system. In fact, I'm not sure if anything is actually emulated. Instead, what happens is that the virtualizer stands between the Guest OS and the hardware. This is because the Guest can't, under almost any circumstance, be allowed direct access to the hardware or filesystems for fear of leaving it in an invalid state for the Host. For instance, it should be obvious that you can't have two filesystem managers managing one filesystem at the same time. So, essentially the Host OS just runs as normal, and whenever it accesses hardware or filesystems or probably a number of other things, a request is made to the Host OS.

This is over simplified and doesn't address 32-bits vs 64-bits, but hopefully it gives you some insight into what is happening.
 
Old 03-20-2010, 04:12 PM   #5
FireRaven
Member
 
Registered: Apr 2006
Location: Australia
Distribution: Debian Squeeze
Posts: 135

Original Poster
Rep: Reputation: 18
Hmm makes sense.
But what VirtualBox running on Mac OS (Mac host with Ubuntu x86 guest for example) it must be doing some emulation there for the x86 instruction set to run the linux guest right?
 
Old 03-20-2010, 04:41 PM   #6
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by FireRaven View Post
Hmm makes sense.
But what VirtualBox running on Mac OS (Mac host with Ubuntu x86 guest for example) it must be doing some emulation there for the x86 instruction set to run the linux guest right?
I don't think so. Macs are Intel-based these days. I doubt you can run an X86 guest on a PowerPC Mac.
 
Old 03-20-2010, 04:46 PM   #7
FireRaven
Member
 
Registered: Apr 2006
Location: Australia
Distribution: Debian Squeeze
Posts: 135

Original Poster
Rep: Reputation: 18
Yeah you're right they only support Intel Macs

http://www.virtualbox.org/wiki/Downloads
 
Old 03-20-2010, 10:24 PM   #8
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
Except qemu which is an emulator.
 
1 members found this post helpful.
Old 03-21-2010, 02:39 PM   #9
FireRaven
Member
 
Registered: Apr 2006
Location: Australia
Distribution: Debian Squeeze
Posts: 135

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by smeezekitty View Post
Except qemu which is an emulator.
What do you mean by that?

Will it be slower than VirtualBox then?
 
Old 03-21-2010, 03:19 PM   #10
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by FireRaven View Post
What do you mean by that?

Will it be slower than VirtualBox then?
Yes, qemu is slightly slower.
Although i think it is still up to 80% speed of virtualization.
 
Old 04-03-2010, 03:21 PM   #11
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 821

Rep: Reputation: 258Reputation: 258Reputation: 258
I run Windows Server 2003 32-bit as a Guest in VirtualBox on my 64-bit Windows Vista OS. I have a Core i7 CPU and 6GB of RAM.

Mostly what is emulated by VM software is the physical devices and memory management functions. With hardware virtual features such as in the Core i7 those functions are done in hardware through the use of nested page tables and hardware interception of I/O addresses.

For an X86 processor emulating an X86 processor the CPU usually executes the instructions and the virtual software intercepts some of the resulting accesses and operations. When a CPU is emulating a completely different CPU then it (usually) has to interpret the instructions and execute them. That is usually much slower.

On a multi-core CPU even a single-core emulated CPU may actually run faster than the real hardware. That's because the hard disk access and actual hardware I/O is done outside the virtual machine and may actually be handled by some of the other CPU cores in parallel.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How secure is windows XP running as a virtualBox guest on a Slackware 12.2 host garyg007 Slackware 13 07-06-2015 05:54 PM
Virtualbox guest complains system is only 32 bit binary_pearl Linux - Software 1 03-02-2010 02:05 PM
VirtualBox 2.1 on Fedora 64-bit won't install Windows 7 Beta 64-bit linuxroks88 Linux - Software 18 01-27-2009 10:37 AM
Can you run a 32 bit guest on a 64 bit VM host? Randux Linux - Software 4 01-05-2009 07:58 PM
xen virtualization host OS is 64 bit but cant install 32 bit guest OS hackintosh Linux - Server 0 12-26-2007 03:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 10:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration