Fedora Linux Support Community & Resources Center
  #1  
Old 11th May 2012, 05:27 PM
ManfredB Offline
Registered User
 
Join Date: May 2012
Location: Gernany
Posts: 129
linuxfirefox
livecd-creator - VBoxLinuxAdditions

Hello friends of Linux/Fedora.

I´m testing livecd-creator with Fedora17.

Only one point I cannot resolve:

I want to add VBoxLinuxAdditions.run to my LiveDVD.

It is in /root/tmp and I hope to add it
per
%post --nochroot

But all tests did not run.

How is the correct way to add it from the installed Distribution (/root/tmp)
to the LiveDVD?

Sorry for my "german" English :-)

Thanks for answering to this thread.

ManfredB
Reply With Quote
  #2  
Old 13th May 2012, 01:09 AM
AndrewSerk Offline
Registered User
 
Join Date: Oct 2010
Posts: 889
linuxfirefox
Re: livecd-creator - VBoxLinuxAdditions

Hi ManFredB and welcome to fedora fora,

I haven't used Vbox for many years but will take a shot at helping you. The following is a guess and is untested by me.

If you put the VBoxLinuxAdditions.run file in the same folder as your kickstarts you can add it to the liveDVD from the "%post --nocheckroot" with something like:
Code:
##############################################################################
## POST --NOCHROOT
##############################################################################

%post --nochroot
cp VBoxLinuxAdditions.run  $INSTALL_ROOT/usr/share/
Then run it by adding the run command to "/etc/rc.d/init.d/livesys" from the %post section with something like:
Code:
##############################################################################
## POST 
##############################################################################

%post
cat >> /etc/rc.d/init.d/livesys << EOF_livesys
sh /usr/share/VBoxLinuxAdditions.run
EOF_livesys
You will have to make sure you add any dependencies to the %packages section of your kickstart also. I know some of the package dependencies are "dkms and gcc" but there may be more.

Hope this helps,

---------- Post added at 07:09 PM ---------- Previous post was at 12:21 PM ----------

EDIT:
I had forgot to put the "cp" copy command in the first set of codes

Last edited by AndrewSerk; 13th May 2012 at 05:35 PM.
Reply With Quote
  #3  
Old 13th May 2012, 05:16 PM
ManfredB Offline
Registered User
 
Join Date: May 2012
Location: Gernany
Posts: 129
linuxfirefox
Re: livecd-creator - VBoxLinuxAdditions

Hello AndrewSerk

thank you very much for this help.

I´ll try it tomorrow.

Greetings from
Manfred

---------- Post added at 02:35 PM ---------- Previous post was at 01:07 PM ----------

First step was correct, I found VBoxLinuxAdditions in /usr/share.

But second step failed:

EOF_livesys in line 1 seems not correct.

I cannot write the output, because I make livecd-creator on konsole.

Manfred

---------- Post added at 03:16 PM ---------- Previous post was at 02:35 PM ----------

Here is the ouput:

/tmp/ks-scrpt-JM3UYk: line 4: warning:
here-document at line 1 delimited by end-of-file
(wanted `EOF_livesys´)

I don´t know what this mean....

Manfred
Reply With Quote
  #4  
Old 13th May 2012, 05:32 PM
AndrewSerk Offline
Registered User
 
Join Date: Oct 2010
Posts: 889
linuxfirefox
Re: livecd-creator - VBoxLinuxAdditions

Hello,
The "EOF_livesys" is just to tell the cat command "this signals the end" of that particular cat. I use EOF_livesys instead of just "EOF" to cut down on confusion when you may have many "cat >> << EOF" type commands in one .ks. If you like you could change it to just about anything you like, just remember to change it in both places.


The issue may be /etc/rc.d/init.d/livesys runs to early for that command. Maybe try the same command but add it to livesys-late.

Code:
cat >> /etc/rc.d/init.d/livesys-late << EOF_livesyslateinit
sh /usr/share/VBoxLinuxAdditions.run
EOF_livesyslateinit
It sure would be nice if the VBoxLinuxAdditions was available in a .rpm . That would make installing much easier.


Hope this helps,



EDIT: There was a extra space in front of "EOF_livesys" I just noticed and fixed. Maybe that caused the error (wanted `EOF_livesys´) you are seeing.

Last edited by AndrewSerk; 13th May 2012 at 05:39 PM.
Reply With Quote
  #5  
Old 13th May 2012, 11:25 PM
ManfredB Offline
Registered User
 
Join Date: May 2012
Location: Gernany
Posts: 129
linuxfirefox
Re: livecd-creator - VBoxLinuxAdditions

Super, thank you very much!

/lib/modules/~/misc:
vboxsf
vboxguest
vboxvideo

But these modules are only in liveDVD, after installing it,
there are no modules.

How can I get the modules in the installed Version?

Yes, the simplest way: sh /usr/share/VBoxLinuxAdditions.run.

Is there an other way to implemente these modules directly?

Manfred
Reply With Quote
  #6  
Old 14th May 2012, 12:54 AM
AndrewSerk Offline
Registered User
 
Join Date: Oct 2010
Posts: 889
linuxfirefox
Re: livecd-creator - VBoxLinuxAdditions

You are welcome. I am happy to try and help,

From my experience, most all the commands that are added to "/etc/rc.d/init.d/livesys-late" are persistent for a hard drive install. You could try adding the "sh /usr/share/VBoxLinuxAdditions.run" command there instead of "/etc/rc.d/init.d/livesys" by replacing the second set of codes from post number 2 with something like:

Code:
##############################################################################
## POST 
##############################################################################

%post
cat >> /etc/rc.d/init.d/livesys-late << EOF_livesys-late
sh /usr/share/VBoxLinuxAdditions.run
EOF_livesys-late
Hope this helps,
Reply With Quote
  #7  
Old 14th May 2012, 09:22 AM
ManfredB Offline
Registered User
 
Join Date: May 2012
Location: Gernany
Posts: 129
linuxfirefox
Re: livecd-creator - VBoxLinuxAdditions

Sorry, but it failed also.

Is it right that LiveCDs/DVDs do not really install, but rather a copy of LiveCD/DVD
on HDD?

When the installed Version boots, I see SYS=livesys-late
but it do nothing.

Manfred
Reply With Quote
  #8  
Old 15th May 2012, 04:18 PM
AndrewSerk Offline
Registered User
 
Join Date: Oct 2010
Posts: 889
linuxfirefox
Re: livecd-creator - VBoxLinuxAdditions

Quote:
Originally Posted by ManfredB View Post
Is it right that LiveCDs/DVDs do not really install, but rather a copy of LiveCD/DVD
on HDD?
Manfred
That is pretty much how I understand it. A livecd doesn't contain rpms like a install dvd but rather a compressed file system with the rpms already installed. When you install the livecd/dvd the file system is uncompressed ,moved to the hard drive and expanded.
Reply With Quote
  #9  
Old 15th May 2012, 08:16 PM
ManfredB Offline
Registered User
 
Join Date: May 2012
Location: Gernany
Posts: 129
linuxfirefox
Re: livecd-creator - VBoxLinuxAdditions

Why can LiveDVD not uncompressing all?

No installed modules from installed VBoxLinuxAdditions in LiveDVD

I don´t understand it.

Manfred
Reply With Quote
  #10  
Old 15th May 2012, 09:05 PM
AndrewSerk Offline
Registered User
 
Join Date: Oct 2010
Posts: 889
linuxfirefox
Re: livecd-creator - VBoxLinuxAdditions

Quote:
Originally Posted by ManfredB View Post
Why can LiveDVD not uncompressing all?

No installed modules from installed VBoxLinuxAdditions in LiveDVD

I don´t understand it.

Manfred
I think the confussion comes from the difference between the the livedvd file system and the livedvd overlay. If you had a rpm of the vbox guest addidtons and created a local repo, added localrepo to the ks and added the vboxguestadditions.rpm to the %packages section, the guestaddiontions would be in the live file sys. Since you are copying over the vbox........run script then running the script the changes are going to the overlay that is not persistent for a hard drive install.

A quick search for vbox guest additions rpm turns up this page: http://rpmfind.net/linux/rpm2html/se...uest-additions
I downloaded one of the rpms and looked through it. It looks like the redhat version lines are in those rpms so maybe one of those would work.

Hope this helps,
Reply With Quote
  #11  
Old 15th May 2012, 11:20 PM
ManfredB Offline
Registered User
 
Join Date: May 2012
Location: Gernany
Posts: 129
linuxfirefox
Re: livecd-creator - VBoxLinuxAdditions

Now I have VirtualBox-rpm.

Can I now with my personal repo install this rpm without change the repomd.xml?

Thank you for the tipps.

Manfred
Reply With Quote
  #12  
Old 16th May 2012, 12:08 AM
AndrewSerk Offline
Registered User
 
Join Date: Oct 2010
Posts: 889
linuxfirefox
Re: livecd-creator - VBoxLinuxAdditions

Yes, the procedure would go something like:
make a directory for your repo:
Code:
su -c 'mkdir /localrepo'
Copy any rpms you want to include in your local repo to /localrepo.
Create the repo:
Code:
createrepo /localrepo/
Create a kickstart for your localrepo. I will use gedit but use whatever text editor you like:
Code:
gedit
Make the kickstart file resemble something like:
Code:
## add this ks for your local repo
repo --name=localrepo --baseurl=file:///localrepo
%packages
virtualbox-guest-additions
%end
and save in the same folder as other kickstart files with a name of localrepo.ks
Then add a line to the livecd/dvd kickstart that points to your localrepo.ks. The line should look like:
Code:
%include localrepo.ks
And Spin

Hope this helps,
Reply With Quote
  #13  
Old 16th May 2012, 09:33 AM
ManfredB Offline
Registered User
 
Join Date: May 2012
Location: Gernany
Posts: 129
linuxfirefox
Re: livecd-creator - VBoxLinuxAdditions

Sorry, but livecd-creator gives an output:

Error creating Live CD : Failed to find package 'virtualbox-guest-additions' : Kein(e) Paket(e) zum Installieren verfügbar

Therefore I cannot create a LiveDVD.

But I created a script:

Code:
#!/bin/sh
sh /usr/share/VBoxLinuxAdditions.run
exit 0
In liveDVD-KDE.ks I added the following text:

Code:
%post --nochroot
cp /usr/share/spin-kickstarts/script $INSTALL_ROOT/etc/rc.d/init.d/
ln -s /etc/rc.d/init.d/script $INSTALL_ROOT/etc/rc3.d/script
%end
In the HDD-installed FC17 I find /etc/rc.d/init.d/script
and
/etc/rc3.d/script as Link

But the script is not starting - I cannot say why...

Manfred
Reply With Quote
  #14  
Old 16th May 2012, 07:55 PM
AndrewSerk Offline
Registered User
 
Join Date: Oct 2010
Posts: 889
linuxfirefox
Re: livecd-creator - VBoxLinuxAdditions

Hello ManfredB,

Is the rpm in your local repo named "virtualbox-guest-addition"?
Reply With Quote
  #15  
Old 16th May 2012, 08:05 PM
ManfredB Offline
Registered User
 
Join Date: May 2012
Location: Gernany
Posts: 129
linuxfirefox
Re: livecd-creator - VBoxLinuxAdditions

From rpmfusion.org I get
kmod-VirtualBox-OSE
VirtualBox-OSE-guest

But these packages came with following output:

module-init-tools are obsoleted with kmod

Therefore I added cp /usr/share/spin-kickstarts/~.rpm $INSTALL_ROOT/usr/share
in %post --nochroot

After booting the installed FC17 I could them install per rpm -i without problems.

This way is going right, the other failed.

Manfred

Last edited by ManfredB; 17th May 2012 at 09:18 AM.
Reply With Quote
Reply

Tags
livecdcreator, vboxlinuxadditions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
LiveCD Creator hatstack Installation, Upgrades and Live Media 2 10th June 2011 04:19 PM
Unable to build F12 LiveCD using livecd-creator Salgeras Installation, Upgrades and Live Media 2 5th January 2010 07:51 PM
livecd-creator itachisxeyes Fedora Spins & Remixes 2 31st December 2009 10:02 AM
Not able to create bootable liveCD with livecd-creator baloon Installation, Upgrades and Live Media 3 9th July 2009 01:44 PM
Need Help on livecd-creator rossini23 Using Fedora 0 3rd September 2007 11:37 AM


Current GMT-time: 02:25 (Saturday, 29-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Barcelona Travel Photos on Instagram - Three Pagodas of Chongsheng Temple - Benin City Edo State Nigeria Photos on Instagram