LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-08-2009, 02:22 AM   #16
reptiler
Member
 
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184

Rep: Reputation: 41

Quote:
Originally Posted by orla999 View Post
no i dont know him. to be honest with you i do not know the point in this excercise. As far as im aware i got to create a customised Linux virtual machine which consists of the latest Linux kernel and necessary device drivers and test if the virtual machine, new kernel and drivers work.
From what I remember QEmu should be able to boot a naked kernel.
Problem is that it's not going to give you much.

And testing out the latest kernel to see if the drivers work properly also doesn't make much sense in my opinion.
VMs usually consist pretty generic hardware. The drivers for the emulated hardware usually are in the kernel for quite a long time already and thus thoroughly tested. Thus it will make no difference if you are using the kernel shipped by whatever distro you will install in the VM or a custom kernel built by yourself.

As said, I don't really see the point in all this. But well, I guess it's your time and maybe even somebody told you to do this.
The instructions on how to compile a kernel I have summarized in a previous post, for detailed information is surely somewhere out there.

Remember, if you are not sure about which hardware is emulated, thus which drivers you will need, use lspci to find out.
 
Old 04-08-2009, 07:17 AM   #17
orla999
LQ Newbie
 
Registered: Apr 2009
Posts: 29

Original Poster
Rep: Reputation: 15
Its jsut what ive been told to do. When i try unpacking the kernel it says cannnot write: no space left on device even though i have assinged 8GB for it :@

Last edited by orla999; 04-08-2009 at 07:22 AM.
 
Old 04-08-2009, 07:56 AM   #18
orla999
LQ Newbie
 
Registered: Apr 2009
Posts: 29

Original Poster
Rep: Reputation: 15
i moved it to the home directory....bit of improvement. it did start doing it then with the last few it started to stay cannot write: no space left on device

Last edited by orla999; 04-08-2009 at 07:58 AM.
 
Old 04-08-2009, 08:13 AM   #19
reptiler
Member
 
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184

Rep: Reputation: 41
I don't know the policy here on the forum, and I'm no mod or anything, but I guess also here it would be preferable to add stuff by editing your post instead of a double-post.

That you have no space left may be because you "only" assigned 8GB to the VM. Quite a bit will be taken by the system, and probably you just have a small partition for /home. And the kernel-source gets quite big once extracted.
 
Old 04-08-2009, 10:39 AM   #20
orla999
LQ Newbie
 
Registered: Apr 2009
Posts: 29

Original Poster
Rep: Reputation: 15
ive noticed i only have 169mb free space in my home directory, to partition it do i got to system then partition editor? From here how do i partition the 30gb allocated space to the home directory, i would want about 10GB to home directory.

thanks

Last edited by orla999; 04-08-2009 at 10:52 AM.
 
Old 04-08-2009, 01:49 PM   #21
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Good morning,

8GB is small but I wouldn't say it's too little. You may just have it proportioned strangely. Eithe way, if you aren't going to be doing anything else with this VM I'd just look for a partition with enough space to unzip the kernel and build on. Open up a terminal and type:
df -h

Look for a partition with enough space, put the kernel there, untar and build. Copy the bzImage over and Bam! Need is met.

-Chad
 
Old 04-08-2009, 03:45 PM   #22
orla999
LQ Newbie
 
Registered: Apr 2009
Posts: 29

Original Poster
Rep: Reputation: 15
the most i have aviliable is 252mb which is not enough to unpack it any other suggestions?
 
Old 04-08-2009, 03:51 PM   #23
reptiler
Member
 
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184

Rep: Reputation: 41
I guess you'll need to re-install the VM.
I also usually assign 8GB per VM, and usually that's enough. For this kind of setup I'd suggest not to follow the suggestion of the installer to create a layout with multiple partitions, but to have only one partition for the whole system, including /boot and /home.
For a real system that's usually not what you want, but for a VM with tight limits on space I think this is perfectly fine.

Edit: I got no Ubuntu-VM at hand right now, so cannot check how much I got free there. But I do have a relatively fresh OpenSuse-VM here and as Suse should be one of the bloatiest distros out there and I still have 3.4GB free, so I wonder why you have so little space left.
Anyway, try to re-install and see how much you have free.
The kernel-tree in my EasyLFS-VM uses roughly 630MB, after compilation.

Last edited by reptiler; 04-08-2009 at 03:55 PM.
 
Old 04-08-2009, 04:10 PM   #24
orla999
LQ Newbie
 
Registered: Apr 2009
Posts: 29

Original Poster
Rep: Reputation: 15
i have reinstalling ubuntu about 5 times and has made no difference. I first assigned 8gb and then 15gb then 30gb but still the amount of free space was still 150mb for some odd reason.
 
Old 04-08-2009, 04:14 PM   #25
reptiler
Member
 
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184

Rep: Reputation: 41
Are you sure the whole space assigned to the VM is used during installation?
Do you manually partition during setup or do you let the installer do the partitions?

It's quite strange that you don't get the full space.
As said, I usually assign 8GB to any VM I play with and so far didn't run into any problems regarding disk-space.
 
Old 04-08-2009, 04:37 PM   #26
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Quote:
Originally Posted by orla999 View Post
i have reinstalling ubuntu about 5 times and has made no difference. I first assigned 8gb and then 15gb then 30gb but still the amount of free space was still 150mb for some odd reason.
Skip Ubuntu if it's giving you problems. There are about 100 other options out there. I'd go for Slackware if time was an issue and all I need is a brand spankin new kernel.

-Chad
 
Old 04-08-2009, 04:47 PM   #27
orla999
LQ Newbie
 
Registered: Apr 2009
Posts: 29

Original Poster
Rep: Reputation: 15
I let the installer do it. if you look at the print screen that is what i select and click next. if i cannot get this to work i will try slackware just im getting farmiliar with ubuntu

thanks
Quote:
Originally Posted by reptiler View Post
Are you sure the whole space assigned to the VM is used during installation?
Do you manually partition during setup or do you let the installer do the partitions?

It's quite strange that you don't get the full space.
As said, I usually assign 8GB to any VM I play with and so far didn't run into any problems regarding disk-space.
Attached Thumbnails
Click image for larger version

Name:	dc.jpg
Views:	6
Size:	32.9 KB
ID:	432  
 
Old 04-08-2009, 04:53 PM   #28
reptiler
Member
 
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184

Rep: Reputation: 41
Could you please post the output of df -h in your Ubuntu-system.
 
Old 04-08-2009, 05:14 PM   #29
orla999
LQ Newbie
 
Registered: Apr 2009
Posts: 29

Original Poster
Rep: Reputation: 15
ye sure. i have tried uninstalling stuff like open office and doesnt make a difference. also if i shut down the system and restart it what ever is saved on it from before i shut it down disappears when i restart it.

ubuntu@ubuntu:~$ df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 252M 2.0M 250M 1% /lib/modules/2.6.27-7-generic/volatile
tmpfs 252M 2.0M 250M 1% /lib/modules/2.6.27-7-generic/volatile
tmpfs 252M 0 252M 0% /lib/init/rw
varrun 252M 100K 252M 1% /var/run
varlock 252M 0 252M 0% /var/lock
udev 252M 2.7M 249M 2% /dev
tmpfs 252M 124K 251M 1% /dev/shm
rootfs 252M 24M 228M 10% /
/dev/scd0 699M 699M 0 100% /cdrom
/dev/loop0 676M 676M 0 100% /rofs
tmpfs 252M 12K 252M 1% /tmp
 
Old 04-08-2009, 05:17 PM   #30
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
That looks like it's still running from the CD, not that it was installed...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off




All times are GMT -5. The time now is 03:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration