LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 01-05-2011, 12:31 PM   #1
suryaemlinux
Member
 
Registered: Mar 2009
Distribution: CentOS, Fedora
Posts: 34

Rep: Reputation: 0
Virtual Machine CentOS Problem (VMware Player)


Hi,
My host is Ubuntu 10.04. I installed VMware Player 3.1.3 to create CentOS 5.5(guest) virtual machine. It created fine. Now, on virtual machine I allocated 20GB. My CentOS 5.5 is split as '/' and '/home' drives. My '/' is 3.8 GB and it's already full. When I installed I wasn't asked anything about disk partitioning by VMware player. How do I increase the '/' drive size without uninstalling everything.

Thanks,
S
 
Old 01-05-2011, 06:08 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,027
Blog Entries: 54

Rep: Reputation: 2767Reputation: 2767Reputation: 2767Reputation: 2767Reputation: 2767Reputation: 2767Reputation: 2767Reputation: 2767Reputation: 2767Reputation: 2767Reputation: 2767
Quote:
Originally Posted by suryaemlinux View Post
When I installed I wasn't asked anything about disk partitioning by VMware player.
VMware player doesn't ask about disk partitioning: the Centos installer would.


Quote:
Originally Posted by suryaemlinux View Post
on virtual machine I allocated 20GB. My CentOS 5.5 is split as '/' and '/home' drives. My '/' is 3.8 GB and it's already full. (..) How do I increase the '/' drive size without uninstalling everything.
The root problem is using the "lazy" "/", "/home" plus swap partitioning scheme that distributions often seem to suggest versus using the robust /boot, /, /usr, /tmp, /var, /home, swap partitioning scheme. A minimal Centos install takes about 250 megs for "/" (/sbin, /bin, /etc, /lib, /root) and 750 megs megs for "/usr". For "/" you could allocate between 750 megs and 1 gig, "/usr" then takes between 2 and 6 gigs and "/var" between 1 and 4 gigs all depending on use. There's two ways: repartition or use "mount --bind":
- to repartition boot the VM guest using a ISO image with gparted on it, shrink partitions to create space, create the necessary partitions and format them, then mount "/" to edit /etc/fstab and reboot, or
- copy /usr (or parts below that) to the partition with the most space available (use 'secp' or equivalent to preserve SELinux contexts), delete them and use the "bind" option of mount ('/copied/directory /mount/point none auto,bind') in /etc/fstab to replace.

Code:
secp() { [ -d  $1 ] && { cd "$1" && tar --preserve --selinux -vcf - . | ( cd "$2" && tar --selinux -xBf - ); } || echo "${FUNCNAME}: /old /new"; }
 
Old 01-05-2011, 09:25 PM   #3
fbsduser
Member
 
Registered: Oct 2009
Distribution: Hackintosh, SlackWare
Posts: 266

Rep: Reputation: 30
Boot your VM from a gparted live or parted magic iso and use the partitioner to shrink the /home partition and expand the / one.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
VMWare Virtual Machine supravat Linux - Software 2 08-02-2010 06:47 AM
Problem powering on virtual machine in Vmware 6.5.1 accordeoniste Linux - Software 0 02-26-2009 02:22 PM
vmware virtual machine slow in vmware client, faster viewer available? purplesocrates Linux - General 1 06-17-2008 10:40 AM
LXer: Running Solaris 10 (11/06) Virtual Machine on CentOS 5.0 (VMWare Server 1.0.3) LXer Syndicated Linux News 0 05-25-2007 12:46 AM
Vmware Virtual Machine Problem With Windows In Vmware jvdbossc Linux - Software 2 05-28-2004 06:54 AM


All times are GMT -5. The time now is 04:00 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration