Virtualization guide for Sabayon

Discussion for all VM - Installing, Software, Problems

Moderator: Moderators

Virtualization guide for Sabayon

Postby davemc » Wed Mar 28, 2007 2:47

Although there exists quite a bit of documentation and makeshift “how to's” via Google, i'm going to write a short guide on how to use the onboard Virtual Machine that comes with SL 3.3, along with a few comments on Paravirtualization methods that can be used to make things fun.

Terms

Emulation: “Emulation refers to the ability of a program or device to imitate another program or device. Many printers, for example, are designed to emulate Hewlett-Packard LaserJet printers because so much software is written for HP printers. By emulating an HP printer, a printer can work with any software written for a real HP printer. Emulation "tricks" the software into believing that a device is really some other device.”

http://en.wikipedia.org/wiki/Emulation

Virtualization: “In computing, virtualization is a broad term that refers to the abstraction of computer resources. One useful definition, from independent IT analyst firm Enterprise Management Associates, is "a technique for hiding the physical characteristics of computing resources from the way in which other systems, applications, or end users interact with those resources. This includes making a single physical resource (such as a server, an operating system, an application, or storage device) appear to function as multiple logical resources; or it can include making multiple physical resources (such as storage devices or servers) appear as a single logical resource." “

http://en.wikipedia.org/wiki/Virtualization

Paravirtualization: “In computing, paravirtualization is a virtualization technique that presents a software interface to virtual machines that is similar but not identical to that of the underlying hardware. This requires operating systems to be explicitly ported to run on top of the virtual machine monitor (VMM), which the owner of exclusive rights in a proprietary operating system may decline to allow for strategic purposes, but may enable the VMM itself to be simpler and for the virtual machines that run on it to achieve higher performance.”

http://en.wikipedia.org/wiki/Paravirtualization

Short and sweet, Virtualization involves full hardware and software emulation (pretending), while Paravirtualization involves partial. Although many mistakenly believe that full virtualization is possible on average x86 systems, it is in fact, not. Full Virtualization involves a total and complete emulation of an entire operating system including all of its abilities – networking, printing, sound, fully functional apps, etc. What is possible is various forms of Paravirtualization to varying degree's of usability. Examples of this are VMWare, Virtual Machine, Win4Lin, Parrallels, Mac-on-Linux, Crossover, Cedega, wine, Xen, Qemu/Kqemu, KVM, and others.

http://en.wikipedia.org/wiki/Full_virtualization

Wikipedia

Advantages and uses

As commented above, its advantages are many. Software debugging, resource sharing, networking, optimized use of available resources, or just playing around and testing other operating systems without actually rebooting or installing. Plus, its a lot of fun!


Techniques “How to”

For this to work, you need to have an .iso file handy. Download any distro .iso file and place it on your Desktop. The SL .iso will not work with this, sorry.

1.Lets start with the onboard Virtual Machine Hypervisor that comes packaged with your new SL 3.3 install (full version). Double click it and the first window pops up which includes the “Open Connection” dialoque wizard. Click the down arrow and select “KVM/QEMU”, as SL 3.3 does not have a XEN kernel so it wont work. You also have two other options, “Local host” and “Other hypervisor”. Were going to use “Local host”. “Other hypervisor” is used to link off another, already existing connection to which you insert the URL link. Ive never tried this option, but it sounds like fun! Anyway, click on “local host” and then click “Connect”.
2.Your now at the KVM/QEMU virtual machine manager. It will be blank if this is your first time here. There are four buttons at the bottom - “delete”, “new”, “details”, and “open”. Click on “new”.
3.Enter the “create new virtual system” wizard! Read it and click on “forward”.
4.Now you need to enter a name and click “Forward”. It can be any name you choose.
5.Leave the settings on this window as is and click “forward”. Only “Fully Virtualized”, and “i686” can really be used, as x86_64 has not been enabled for guest machines yet. I do not know if the other options work or not, but you can try them! :)
6.Next comes time to select the .iso you just downloaded onto your Desktop. Choose “ISO Image Location”, and enter, or browse to its location. Choose the “OS Type” and the “OS Variant” and hit “Forward”. Im not sure what “Other” would be under the OS Type, but when it comes to Virtual Machine, play play play! Thats what its all about!
7.Next comes assigning a “file” for the guest OS to operate in. All this really does is create a free space for the ISO to stretch its virtual legs in should you wish to install it or download files within the guest environment. You can choose to use an existing partition, or “Simple File”. Select “Simple File” and type /home/username/Desktop/ISO, where “username” is your account name, and enter in a file size big enough to handle the ISO your going to virtualize. You'll have to make that call as distro's like DSL or Puppylinux tend to run just great on 200megs of space, while SuSe requires at least 5 Gigs. Keep in mind too that the more complex the distro your virtualizing, the more resource intensive its going to be, and thus load down your system overall and make it slow and graphics choppy. Anyway, unselect “Allocate entire virtual disk now”, as there really is no reason to do this and it takes a lot of time for the virtual machine to create it. Click “Forward”.
8.Now select the RAM you think you'll need. I typically go with VM Max Memory of 999, and VM Startup Memory of 500. I have 2 Gigs of onboard RAM, so assigning 1 Gig still leaves me with plenty to spare. Also note here that just because you assign a Max of 1 Gig, does not mean that the virtual machine will be using the full amount of it all the time. It will allocate it as needed. Now, choose the VCPU's the emulator will run. Rule of thumb - If your machine isnt dual core, then DONT choose two! :=}
9.Click “Forward”, and your in the final selection screen. If your happy with what you see, click Finish. If not, back buttun and fix what you need to.
10.Now your back on the virtual machine manager window and you should be looking at your new virtual machine displayed in the window. Select it, and click “Open”, and bada bing, bada BOOM, it starts up! You should see the Virtual Machine Console with “run”, “Pause”, and “Shutdown” buttons at the top. In the main window you should see your ISO boot screen where you can select boot options just like on the livecd. Select one and watch it boot right up to the login screen where you then login and commence tearing it up just like you would on a livecd. You will notice some chopiness from time to time if you run graphics intensive stuff. You should have working internet, but thats about it as the VM does not normally enable networking or sound... Not that big of a deal, at least for me.

OK, now how about the other stuff

The Sabayon Forums have a great deal of information on manual paravirtualization. Read through these links for the detailed “how to”. As there is already so much information here, I wont go into more detail than this.

http://www.sabayonlinux.org/forum/viewtopic.php?t=4216
http://www.sabayonlinux.org/forum/viewt ... hlight=kvm

So, there you have it. Enjoy virtualization in Sabayon!!


Here is my Demo vid

http://www.youtube.com/watch?v=rWn_U4RnUw8
Last edited by davemc on Wed Mar 28, 2007 4:35, edited 1 time in total.
User avatar
davemc
Sharecropper
 
Posts: 680
Joined: Tue Jan 02, 2007 17:08
Location: Virginia, usa

Postby wolfden » Wed Mar 28, 2007 3:49

Nice

can you repost this to this thread - http://www.sabayonlinux.org/forum/viewtopic.php?t=1730

Just add to it so it don't get lost
User avatar
wolfden
Sharecropper
 
Posts: 8822
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Postby davemc » Wed Mar 28, 2007 4:34

Sure
User avatar
davemc
Sharecropper
 
Posts: 680
Joined: Tue Jan 02, 2007 17:08
Location: Virginia, usa

Postby themonster » Mon Apr 09, 2007 3:38

wao!! excelent! I always try to run a virtual machine, I try Qemu in console, and work fine, and now i instaled sabayon 3.3 and find this Virtual Machine Manager!!!! what a surprise! again to experiment with that!! thanks for threat!
themonster
Simple Hen
 
Posts: 47
Joined: Sun Feb 11, 2007 18:58

Postby jaskerzada » Mon Apr 09, 2007 14:55

Yea!

Thanx for the great tutorial.

Much appreciated.

You guys rock.
jaskerzada
Baby Hen
 
Posts: 1
Joined: Mon Apr 09, 2007 14:53

Postby Wait...What? » Fri May 11, 2007 10:51

Thanks very much! Works perfectly. :D
User avatar
Wait...What?
Growing Hen
 
Posts: 101
Joined: Sat Mar 17, 2007 19:34
Location: Massachusetts, U.S.

Postby totedati » Sun Jul 22, 2007 21:29

i don't want to look too stupid and to ruin your great tutorial, but .. where is this
1.Lets start with the onboard Virtual Machine Hypervisor that comes packaged with your new SL 3.3 install (full version). Double click it and the first window pops up which includes the “Open Connection” dialoque wizard

great supervisor!? where is supossed to 'doubleclick' ? :shock: ? i want to click it!

I also run sabayon v3.3 for, now, almost 3 months, but don't see anywhere this 'hypervisor' ... maybe is a vmware show? or virtualbox? .. but you call it 'a hypervisor' ... in linux world is more than one of it ...
linux is free, the expertise to harness it is not!
you don't make so much money selling open source software!
You make MORE money USING it, just like google!
linux registered user #352479
User avatar
totedati
Technological Hen
 
Posts: 400
Joined: Thu Jan 11, 2007 0:24
Location: Sibiu, Romania

Postby wolfden » Sun Jul 22, 2007 22:17

I thought it was right on the desktop myself ??
User avatar
wolfden
Sharecropper
 
Posts: 8822
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Postby totedati » Sun Jul 22, 2007 22:45

really? i don't remember it ... but i trust what told you now, and by next time available i will load my sabayon linux v3.3 LiveDVD and will search for it, if is really here ... :oops: :oops: .... is also true that form my initial sabayon linux desktop icons only 'google earth' is still here, the rest of it is in recyclebin ... and will come back and repair my stupid post ... again ... :roll: :roll:
linux is free, the expertise to harness it is not!
you don't make so much money selling open source software!
You make MORE money USING it, just like google!
linux registered user #352479
User avatar
totedati
Technological Hen
 
Posts: 400
Joined: Thu Jan 11, 2007 0:24
Location: Sibiu, Romania

Postby wolfden » Sun Jul 22, 2007 23:07

I'm not a 100% sure, but I know there was a virtual manager or something icon on the desktop upon installation. Look in System Tools for Virtual Machine Manager - I have it there in gnome
User avatar
wolfden
Sharecropper
 
Posts: 8822
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Next

Return to Virtual Managers

Who is online

Users browsing this forum: No registered users and 0 guests