Populating The Root File System - Oracle VM User Manual

Table of Contents

Advertisement

Creating a Paravirtualized Guest Manually
c.

4.5.2 Populating the Root File System

The root file system for the guest may be populated in a number of ways:
Copying the root file system of dom0
Installing an operating system
To copy the root file system of dom0, mount the guest root partition to /mnt:
1.
# mount -t <File system type> <Guest Root Partition> /mnt
Copy the root file system from dom0 to domU:
# rsync -avH /boot /mnt
# rsync -avH /root /mnt
# rsync -avH /dev /mnt
# rsync -avH /var /mnt
# rsync -avH /etc /mnt
# rsync -avH /usr /mnt
# rsync -avH /bin /mnt
# rsync -avH /sbin /mnt
# rsync -avH /lib /mnt
If your computer is a 64 bit computer, enter
# rsync -avH /lib64 /mnt
Then continue for all computers:
# rsync -avH /selinux /mnt
# mkdir /mnt/{proc,sys,home,tmp}
# chmod 777 /mnt/tmp
# unmount /mnt
Install an operating system. This may be done a number of ways.
2.
4-8 Oracle VM Server User's Guide
# vgcreate vg /dev/sda10
Create a logical volume of 4 Gigabytes named myvmdisk1:
# lvcreate -L4096M -n myvmdisk1 vg
You now have a /dev/vg/myvmdisk1. Make a file system on the partition:
# mkfs -t ext3 /dev/vg/myvmdisk1
Using a file-backed Virtual Block Device
To create a 4 Gigabyte file-backed virtual block device, enter
# dd if=/dev/zero of=vm1disk bs=1k seek=4096k count=1
Make a file system in the disk file:
# mkfs -t ext3 vm1disk
The tool requests that you confirm the creation of the file system. Enter y to
confirm the creation of the file system.
Install an Oracle VM Server-enabled operating system from CD-ROMs.
Install an Oracle VM Server-enabled operating system from a network drive,
or PXE (Preboot Execution Environment) install.

Advertisement

Table of Contents
loading

Table of Contents