Changes between Version 5 and Version 6 of debirf-boot-on-kvm-guest


Ignore:
Timestamp:
Jun 2, 2012, 12:41:00 AM (12 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • debirf-boot-on-kvm-guest

    v5 v6  
    4141The apt cache is not populated already.
    4242
     43== Creating filesystems ==
     44
     45If you are creating filesystems from a block device, these commands will do the trick (some modification will be needed to meet your needs):
     46
     47{{{
     48parted /dev/vda -- mklabel msdos
     49parted /dev/vda -- unit s mkpart primary 2048 499711
     50parted /dev/vda -- unit s mkpart primary 499712 -1
     51
     52pvcreate /dev/vda2
     53vgcreate vg_jones0 /dev/vda2
     54lvcreate --name root --size 5GB vg_jones0
     55lvcreate --name var --size 5GB vg_jones0
     56lvcreate --name var+lib+mysql --size 25GB vg_jones0
     57lvcreate --name tmp --size 3GB vg_jones0
     58lvcreate --name swap --size 1GB vg_jones0
     59lvcreate --name home --size 75GB vg_jones0
     60
     61mkfs -t ext3 /dev/vda1
     62mkfs -t ext3 /dev/mapper/vg_jones0-root
     63mkfs -t ext3 /dev/mapper/vg_jones0-var
     64mkfs -t ext3 /dev/mapper/vg_jones0-var+lib+mysql
     65mkfs -t ext3 /dev/mapper/vg_jones0-tmp
     66mkfs -t ext3 /dev/mapper/vg_jones0-home
     67
     68mount /dev/mapper/vg_jones0-root /mnt
     69mkdir -p /mnt/{boot,var,var,home,tmp,proc,sys,dev}
     70}}}
     71
    4372== Mounting filesystems ==
    4473