News

Donate

Amount


Sponsor

hetzner.de

Languages


This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Author Message
h2Offline
Post subject: new script: svmi - a virtual machine installer  PostPosted: Sep 04, 2007 - 09:59 PM



Joined: Nov 28, 2006

Posts: 4966

Status: Offline
First drafts are working now, see this thread for more: http://sidux.com/PNphpBB2-viewtopic-t-5686.html

Features:
  • vmware any any install, automatically downloads and runs latest version
  • v**multimedia** download and install, very basic, no configurations, it's up to you currently to get the stuff running
  • vbox installer, including add user to group
  • vbox kernel module builder. Note, to build without error, please do a dist-upgrade first.
  • You can run the options manually, or use the auto install feature, non interactive mode:
  • see svmi -h for autoinstall options.
  • Script, as usual, updates itself automatically so you'll always have the latest version when it runs.


To download and install:
      Code:
cd /usr/local/bin; wget -Nc techpatterns.com/svmi; chmod +x svmi; svmi


This is very early in the script's life, so only basic stuff works. To do: error handling, qemu image builder, v**multimedia** instructions, vmx file downloader.

If you use v**multimedia**, the any any patch updater and runner will be a pleasant surprise for you, I made it to scratch my pet peeve of having to manually run any any each kernel update, now it's all automatic.

This script is basically a companion script for sgfxi, and like it, offers both free and non free options.

Once it's a bit more solid, I'll add in the svmi option to post dist-upgrade options in smxi so it's all integrated.

_________________
sidux Maintenance script: dist-upgrade, kernel install, general utilities: smxi
Backup script [rsync or rdiff-backup]: rbxi
 
 View user's profile Send private message  
Reply with quote Back to top
craigevilOffline
Post subject: RE: new script: svmi - a virtual machine installer  PostPosted: Sep 04, 2007 - 10:36 PM



Joined: Nov 30, 2006

Posts: 636
Location: USA
Status: Offline
Once again h2 you rock. Between you, the awesome devs and the sweet apps xadras keeps coming up with, sidux rules.

_________________
Debian Tips My Debian sources.list
"If you can't apt-get something, it isn't useful or doesn't exist"
 
 View user's profile Send private message Yahoo Messenger MSN Messenger  
Reply with quote Back to top
hubiOffline
Post subject: RE: new script: svmi - a virtual machine installer  PostPosted: Sep 04, 2007 - 10:47 PM



Joined: Nov 30, 2006
Wien
Posts: 4391

Status: Offline
h2 magic again.

Thank you so much,
hubi

_________________
Bonitas stultitiaque sodales sunt.
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
LanziOffline
Post subject: RE: new script: svmi - a virtual machine installer  PostPosted: Sep 04, 2007 - 11:02 PM



Joined: Dec 02, 2006

Posts: 659

Status: Offline
Wow...
That is really cool! Thanks a lot
 
 View user's profile Send private message  
Reply with quote Back to top
DeepDayzeOffline
Post subject: RE: new script: svmi - a virtual machine installer  PostPosted: Sep 04, 2007 - 11:32 PM



Joined: Dec 02, 2006

Posts: 2476

Status: Offline
Sweet! H2 strikes again with another sidux gem Smile
 
 View user's profile Send private message  
Reply with quote Back to top
BenGoodrichOffline
Post subject: Re: new script: svmi - a virtual machine installer  PostPosted: Sep 04, 2007 - 11:44 PM



Joined: Dec 02, 2006

Posts: 221

Status: Offline
      h2 wrote:
First drafts are working now, see this thread for more: http://sidux.com/PNphpBB2-viewtopic-t-5686.html


From the other thread, re: KVM

      h2 wrote:
Seems doable, but I have no way to test that myself, since it appears my cpus are not cabable.


Actually, according to http://packages.debian.org/sid/kvm ,

-------------------------------------------------------------------------------
For the best performance the processor must support hardware virtualization, provided by AMD's SVM capability and Intel's VT. To find out if your processor has the necessary support, do as follows:

* Make sure you run Linux 2.6.16 or newer for AMD processors, or Linux 2.6.15 for Intel processors. Older Linux versions do not report the virtualization capabilities.

* Run this command in a shell: egrep '^flags.*(vmx|svm)' /proc/cpuinfo

If it prints anything, the processor provides hardware virtualization support and is suitable for use with KVM.

Without hardware support, KVM falls back to the considerably slower QEMU-based software virtualization. In this case, it makes more sense to use the qemu package, possibly with the kqemu package for better performance.
-----------------------------------------------------------------------------------

So, one could test if the future version of the smvi script were installing kvm correctly even without the necessary hardware; the VM would just run no faster than it does with (k)qemu.
 
 View user's profile Send private message  
Reply with quote Back to top
jaegermeisterOffline
Post subject:   PostPosted: Sep 05, 2007 - 12:53 AM



Joined: Apr 07, 2007

Posts: 619

Status: Offline
Wonderful idea, thx a lot!!!!!!

_________________
------------------------------------
SI VIS PACEM, PARA BELLVM
------------------------------------

AC MILAN CaMpIoNe d'EuRoPa 2oo7!!!!
AC MILAN WoRLd ChAmPiOn 2oo7!!!!
 
 View user's profile Send private message  
Reply with quote Back to top
mbOffline
Post subject:   PostPosted: Sep 05, 2007 - 01:39 AM



Joined: Dec 09, 2006

Posts: 36

Status: Offline
svmi is truly impressive!
 
 View user's profile Send private message  
Reply with quote Back to top
h2Offline
Post subject:   PostPosted: Sep 05, 2007 - 02:39 AM



Joined: Nov 28, 2006

Posts: 4966

Status: Offline
I am impatient, and have added now an svmi starter in post du tweaks part of smxi.

It will just start smxi with the basic options, but I might modify that so users can set certain actions to always occur by default when they run it, like making a new kernel module etc.

We'll see.

I'll try to get the worst rough edges off it tonight, but it's more or less functioning.

But remember, it won't create your vmware images or vmx files for you yet, you still need to do that manually with vmware player, but the basic setup is now available.

_________________
sidux Maintenance script: dist-upgrade, kernel install, general utilities: smxi
Backup script [rsync or rdiff-backup]: rbxi
 
 View user's profile Send private message  
Reply with quote Back to top
h2Offline
Post subject:   PostPosted: Sep 05, 2007 - 07:00 AM



Joined: Nov 28, 2006

Posts: 4966

Status: Offline
version 0.5.10: error handling and logging running, all logs go to one file so we can use logrotate: /var/log/svmi.log

I'll add a bit more logging later.

Improved vmware installer and anyany installer to give some information about how to proceed.

Should be a bit more intuitive, but still needs work.

Still do to: qemu image builder for v**multimedia**

This script is now also a module for smxi, so you can start it that way too if you want.

_________________
sidux Maintenance script: dist-upgrade, kernel install, general utilities: smxi
Backup script [rsync or rdiff-backup]: rbxi
 
 View user's profile Send private message  
Reply with quote Back to top
rhOffline
Post subject:   PostPosted: Sep 05, 2007 - 07:51 AM



Joined: Dec 11, 2006

Posts: 217

Status: Offline
very fine like all from h2 ...

_________________
happy with sidux ...
rh
 
 View user's profile Send private message  
Reply with quote Back to top
wegfaceOffline
Post subject:   PostPosted: Sep 05, 2007 - 09:15 AM



Joined: Dec 02, 2006

Posts: 409

Status: Offline
nice work h2, very nice. Smile

_________________
Linux user 403389 and Herbaholic Trichopath
AMD Athlon 64 X2 4200+ / 2GB ram
Acer Aspire One 1.5g ram
 
 View user's profile Send private message  
Reply with quote Back to top
DutchyOffline
Post subject:   PostPosted: Sep 05, 2007 - 10:10 AM



Joined: Feb 22, 2007

Posts: 507

Status: Offline
I am just itching to try this. Excellent work h2

_________________
Check out my book(s): http://stores.lulu.com/towerland
 
 View user's profile Send private message  
Reply with quote Back to top
DeepDayzeOffline
Post subject:   PostPosted: Sep 05, 2007 - 01:18 PM



Joined: Dec 02, 2006

Posts: 2476

Status: Offline
Another thing...vbox 1.5 hit sid Smile
 
 View user's profile Send private message  
Reply with quote Back to top
BenGoodrichOffline
Post subject:   PostPosted: Sep 05, 2007 - 08:14 PM



Joined: Dec 02, 2006

Posts: 221

Status: Offline
Building the virtualbox-ose-modules with svmi fails in the case where the modules that were pre-built by slh are already installed
      Code:
Done with /usr/src/virtualbox-ose-modules-2.6.23-rc5-slh-smp-3_1.5.0-dfsg-1+1_i386.deb .
dpkg -Ei /usr/src/virtualbox-ose-modules-2.6.23-rc5-slh-smp-3_1.5.0-dfsg-1+1_i386.deb
Selecting previously deselected package virtualbox-ose-modules-2.6.23-rc5-slh-smp-3.
(Reading database ... 280878 files and directories currently installed.)
Unpacking virtualbox-ose-modules-2.6.23-rc5-slh-smp-3 (from .../virtualbox-ose-modules-2.6.23-rc5-$
dpkg: error processing /usr/src/virtualbox-ose-modules-2.6.23-rc5-slh-smp-3_1.5.0-dfsg-1+1_i386.de$
 trying to overwrite `/lib/modules/2.6.23-rc5-slh-smp-3/misc/vboxdrv.ko', which is also in package$
Errors were encountered while processing:
 /usr/src/virtualbox-ose-modules-2.6.23-rc5-slh-smp-3_1.5.0-dfsg-1+1_i386.deb

I: Direct installation failed, trying to post-install the dependencies

apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
ERROR: (197) The module: vboxdrv failed to build.

Time stamped error logs are located here: /var/log/svmi.log
Exiting script now.

 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2009 The Zafenio Group
Credits