VM as a Xen guest

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

VM as a Xen guest

Colin Putney-3
 
I wonder if we could do something like this with Squeak. It would be neat if the whole "Smalltalk wants to be a whole operating system" thing could work for us for a change.

Reply | Threaded
Open this post in threaded view
|

Re: VM as a Xen guest

Camillo Bruni-3
 
squeaknos would come close to this no?

On 2012-12-02, at 15:17, Colin Putney <[hidden email]> wrote:

> I wonder if we could do something like this with Squeak. It would be neat
> if the whole "Smalltalk wants to be a whole operating system" thing could
> work for us for a change.
>
> http://erlangonxen.org/

Reply | Threaded
Open this post in threaded view
|

Re: VM as a Xen guest

Hannes Hirzel
 
On 12/2/12, Camillo Bruni <[hidden email]> wrote:
>
> squeaknos would come close to this no?

I assume so, where are the latest news about squeaknos?

--Hannes

>
> On 2012-12-02, at 15:17, Colin Putney <[hidden email]> wrote:
>
>> I wonder if we could do something like this with Squeak. It would be neat
>> if the whole "Smalltalk wants to be a whole operating system" thing could
>> work for us for a change.
>>
>> http://erlangonxen.org/
>
>
Reply | Threaded
Open this post in threaded view
|

Re: VM as a Xen guest

Frank Shearar-3
 
On 3 December 2012 09:48, H. Hirzel <[hidden email]> wrote:
>
> On 12/2/12, Camillo Bruni <[hidden email]> wrote:
>>
>> squeaknos would come close to this no?
>
> I assume so, where are the latest news about squeaknos?

http://lists.squeakfoundation.org/mailman/listinfo/squeaknos/

They use, AFAIK, VMWare to debug their images, meaning that they do
already run Squeak on a virtual machine - a virtual virtual machine
machine? - so running on Xen shouldn't be fundamentally problematic. I
think they just need more hands.

frank

> --Hannes
>
>>
>> On 2012-12-02, at 15:17, Colin Putney <[hidden email]> wrote:
>>
>>> I wonder if we could do something like this with Squeak. It would be neat
>>> if the whole "Smalltalk wants to be a whole operating system" thing could
>>> work for us for a change.
>>>
>>> http://erlangonxen.org/
>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: VM as a Xen guest

melkyades
 
I never quite understood how Xen compares to things like VMWare or VirtualBox. Is it the same mechanism? What are the differences?

Cheers,
Javier


On Mon, Dec 3, 2012 at 8:18 AM, Frank Shearar <[hidden email]> wrote:

On 3 December 2012 09:48, H. Hirzel <[hidden email]> wrote:
>
> On 12/2/12, Camillo Bruni <[hidden email]> wrote:
>>
>> squeaknos would come close to this no?
>
> I assume so, where are the latest news about squeaknos?

http://lists.squeakfoundation.org/mailman/listinfo/squeaknos/

They use, AFAIK, VMWare to debug their images, meaning that they do
already run Squeak on a virtual machine - a virtual virtual machine
machine? - so running on Xen shouldn't be fundamentally problematic. I
think they just need more hands.

frank

> --Hannes
>
>>
>> On 2012-12-02, at 15:17, Colin Putney <[hidden email]> wrote:
>>
>>> I wonder if we could do something like this with Squeak. It would be neat
>>> if the whole "Smalltalk wants to be a whole operating system" thing could
>>> work for us for a change.
>>>
>>> http://erlangonxen.org/
>>
>>



--
Lic. Javier Pimás
Ciudad de Buenos Aires
Reply | Threaded
Open this post in threaded view
|

Re: VM as a Xen guest

Colin Putney-3
 


On Mon, Dec 3, 2012 at 10:15 AM, Javier Pimás <[hidden email]> wrote:
I never quite understood how Xen compares to things like VMWare or VirtualBox. Is it the same mechanism? What are the differences?

Basically, Xen is a hardware abstraction layer. It takes care of communicating with devices and allocating resources to "domains". What it doesn't provide is virtual hardware. To run on top of Xen you write to an specific ABI, and make "hypercalls" which are analogous to applications making syscalls into an OS kernel. Some operating systems, (e.g., Linux) have been modified to be able to run in this mode, which is called "paravirtualization."

VMware and VirtualBox and KVM on linux provide what is called HVM, with simulated hardware. The guest OS doesn't communicate with Xen via hypercalls, it thinks it's running on actual hardware, dealing with hardware interrupts etc.

Paravirtualization is more efficient than HVM, but it requires special support from the guest OS. 

So if SqueakNOS can run on real hardware, it should work fine in HVM. It would probably need some work at the lower levels to support paravirtualization and run directly on Xen.


Reply | Threaded
Open this post in threaded view
|

Re: VM as a Xen guest

Guido Chari
 
Current status of SqueakNOS is that it runs correctly with old interpreter VMs. We have a plan for making it compatible with new Stack and CogVMs. That would mean performance boosts and also that new pharo and squeak images that are really nicer that ones from some years ago will be compatible. And also that updates on the image would be easily ported to SqueakNOS. 

Cheers,
Guido.


2012/12/3 Colin Putney <[hidden email]>
 


On Mon, Dec 3, 2012 at 10:15 AM, Javier Pimás <[hidden email]> wrote:
I never quite understood how Xen compares to things like VMWare or VirtualBox. Is it the same mechanism? What are the differences?

Basically, Xen is a hardware abstraction layer. It takes care of communicating with devices and allocating resources to "domains". What it doesn't provide is virtual hardware. To run on top of Xen you write to an specific ABI, and make "hypercalls" which are analogous to applications making syscalls into an OS kernel. Some operating systems, (e.g., Linux) have been modified to be able to run in this mode, which is called "paravirtualization."

VMware and VirtualBox and KVM on linux provide what is called HVM, with simulated hardware. The guest OS doesn't communicate with Xen via hypercalls, it thinks it's running on actual hardware, dealing with hardware interrupts etc.

Paravirtualization is more efficient than HVM, but it requires special support from the guest OS. 

So if SqueakNOS can run on real hardware, it should work fine in HVM. It would probably need some work at the lower levels to support paravirtualization and run directly on Xen.