2 populating the root file system – Oracle Audio Technologies E10898-02 User Manual

Page 32

Advertising
background image

Creating a Paravirtualized Guest Manually

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

c.

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.

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

1.

To copy the root file system of dom0, mount the guest root partition to /mnt:

# 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

2.

Install an operating system. This may be done a number of ways.

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.

Advertising