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.
Summary of Contents for VM
Page 1: ...Oracle VM Server User s Guide Release 2 1 E10898 04 June 2009 ...
Page 10: ...x ...
Page 16: ...Oracle VM 1 4 Oracle VM Server User s Guide ...
Page 24: ...Monitoring Oracle VM Agent 3 4 Oracle VM Server User s Guide ...
Page 40: ...Installing Paravirtual Drivers 4 16 Oracle VM Server User s Guide ...
Page 44: ...Using the xm Command Line Interface 5 4 Oracle VM Server User s Guide ...
Page 50: ...Migrating a Domain 6 6 Oracle VM Server User s Guide ...
Page 54: ...Removing a Repository 7 4 Oracle VM Server User s Guide ...
Page 68: ...Enabling HA 9 8 Oracle VM Server User s Guide ...
Page 88: ...Oracle VM Server Configuration File B 6 Oracle VM Server User s Guide ...
Page 96: ...Oracle VM Agent Deployment D 4 Oracle VM Server User s Guide ...
Page 104: ...Attaching to a Console with the Grub Boot Loader E 8 Oracle VM Server User s Guide ...
Page 108: ...Xen Glossary 4 ...
Page 112: ...Index 4 ...