This section includes the following topics:
Parent topic: Configuring Exalytics Machine for Virtualization
You can view virtual machine details and jobs associated with the virtual machine.
To view virtual machine information details:
Log on to Oracle VM Manager.
Select the Servers and VMs tab.
In the left pane, select the server pool on which the virtual machine resides.
From the Perspective list, select Virtual Machines.
In the Management pane, select a virtual machine.
Click the expand arrow to the left of the selected virtual machine.
The following tabs are displayed:
Configuration: Displays general information about the virtual machine, such as the minimum and maximum memory and processors, operating system, domain type, high availability status, and so on.
Networks: Displays networks and VNICs used in the virtual machine.
Disks: Displays virtual and physical disks attached to the virtual machine.
To view virtual machine events:
For more information, see "Chapter 7, Managing Virtual Machines" in https://docs.oracle.com/cd/E64076_01/E64082/html/vmusg-servervm.html
Parent topic: Maintaining Virtual Machines
You start a virtual machine from Oracle VM Manager.
To configure and start a virtual machine:
For more information, see "Chapter 7, Managing Virtual Machines" in https://docs.oracle.com/cd/E64076_01/E64082/html/vmusg-servervm.html
Parent topic: Maintaining Virtual Machines
After starting a virtual machine, you then configure the network on the virtual machine to enable it to access the network.
To configure a network on the virtual machine:
Parent topic: Maintaining Virtual Machines
Each VM guest is created with 1 GB of default swap space. To run Oracle Database In-Memory on an Exalytics Machine, you must increase the swap space to a minimum of 16 GB.
Note:
The following procedure describes how to increase swap space by creating a new virtual disk (/dev/xvdd) of 20 GB.
To increase SWAP on the virtual machine:
Add a new virtual disk for the VM guest by performing the following actions:
Log on to Oracle VM Manager.
Select the Servers and VMs tab.
In the left pane, select the server pool on which the virtual machine resides.
From the Perspective list, select Virtual Machines.
In the toolbar, click Stop to stop the virtual machine.
Confirm that the virtual machine is stopped.
In the toolbar, click Edit.
The Edit Virtual Machine dialog is displayed.
Click the Disks tab.
Under Disk Type, select Virtual Disk.
Under Actions, click Add.
The Create Virtual Disk dialog is displayed.
In the Virtual Disk Name field, enter a name for the virtual disk, in the Size field, enter 20, and then click OK twice.
In the toolbar, click Start to start the virtual machine.
Add logical volume and create additional swap on the VM guest by performing the following actions:
Log on the Oracle VM Server.
To check details of the new virtual disk, enter the following command:
fdisk -l
The details of the new virtual disk are displayed. For example, if the new virtual disk is /dev/xvdd, an output similar to the following is displayed:
.... Disk /dev/xvdd: 21.4 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
To create the new partition /dev/xvdd1, enter the following command as the root user:
# fdisk /dev/xvdd
Output similar to the following is displayed:
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. The number of cylinders for this disk is set to 2610. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
At the command prompt, enter n. For example:
Command (m for help): n
The following output is displayed:
Command action e extended p primary partition (1-4) p
At the Partition number prompt, enter 1. For example:
Partition number (1-4): 1
At the First cylinder (1-2610, default 1) prompt, press Enter to use the default value.
The following output is displayed:
Using default value 1
At the Last cylinder or +size or +sizeM or +sizeK (1-2610, default 2610) prompt, press Enter to use the default value.
The following is displayed:
Using default value 2610
At the command prompt, enter t. For example:
Command (m for help): t
The following is displayed:
Selected partition 1
At the Hex code (type L to list codes) prompt, enter 8e.
The following is displayed:
Changed system type of partition 1 to 8e (Linux LVM)
At the command prompt, enter w. For example:
Command (m for help): w
The following is displayed:
The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks.
To create the physical volume for the partition /dev/xvdd1, enter the following command:
# pvcreate /dev/xvdd1
To add the newly formatted disk to the existing volume group, enter the following command:
# vgextend VolGroup00 /dev/xvdd1
To create logical volume, enter the following command:
# lvcreate -L 20G VolGroup00 -n LogVol03
To format the logical volume for swap use, enter the following command:
# mkswap /dev/VolGroup00/LogVol03
To enable swap, enter the following command:
swapon /dev/VolGroup00/LogVol03
To verify the updated swap space, enter the following command:
# cat /proc/swaps
Output similar to the following is displayed:
Filename Type Size Used Priority /dev/mapper/VolGroup00-LogVol01 partition 1048572 0 -1 /dev/mapper/VolGroup00-LogVol03 partition 20971516 0 -2
Add the following line to the /etc/fstab file:
/dev/VolGroup00/LogVol03 swap swap defaults 0 0
Parent topic: Maintaining Virtual Machines
Each virtual machine is created by default with a 100 GB root partition. If required, you can increase the size of the default logical volume VolGroup00-LogVol00 mounted at the root "/" directory of a virtual machine.
To increase the size of the root partition on the virtual machine:
Log in to the virtual machine as the root user.
To check the current physical volumes on the virtual machine, enter the following command:
# cat /proc/partitions
Output similar to the following is displayed:
major minor #blocks name 202 0 10485760 xvda 202 1 257008 xvda1 202 2 10225372 xvda2 252 0 7340032 dm-0 252 1 1048576 dm-1 252 2 102400 dm-2
Add a new virtual disk for the VM guest by performing the following actions:
Note:
The following procedure describes how to create a new virtual disk of 100 GB.
Log on to Oracle VM Manager.
Select the Servers and VMs tab.
In the left pane, select the server pool on which the virtual machine resides.
From the Perspective list, select Virtual Machines.
In the toolbar, click Stop to stop the virtual machine.
Confirm that the virtual machine is stopped.
In the toolbar, click Edit.
The Edit Virtual Machine dialog is displayed.
Click the Disks tab.
Under Disk Type, select Virtual Disk.
Under Actions, click Add.
The Create Virtual Disk dialog is displayed.
In the Virtual Disk Name field, enter a name for the virtual disk, in the Size field, enter 100, and then click OK twice.
In the toolbar, click Start to start the virtual machine.
To check the current partitioning on the virtual machine, enter the following command:
# df -h
Output similar to the following is displayed:
Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 6.8G 2.9G 3.7G 44% /dev/xvda1 244M 35M 197M 15% /boottmpfs 50G 0 50G 0% /dev/shm/dev/mapper/VolGroup00-LogVol02 97M 5.6M 87M 7% /shared_agent_instance_home
To check the new available physical volumes on the virtual machine, enter the following command:
# cat /proc/partitions
Output similar to the following is displayed:
major minor #blocks name 202 0 10485760 xvda 202 1 257008 xvda1 202 2 10225372 xvda2 202 16 104857600 xvdb 252 0 7340032 dm-0 252 1 1048576 dm-1 252 2 102400 dm-2
Note:
In the above example /dev/xvdb is the newly attached disk.
To partition the newly attached disk, perform the following actions:
Enter the following command:
# fdisk /dev/xvdb
Output similar to the following is displayed:
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. The number of cylinders for this disk is set to 13054. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
At the command prompt, enter p. For example:
Command (m for help): p
The following output is displayed:
Disk /dev/xvdb: 107.3 GB, 107374182400 bytes 255 heads, 63 sectors/track, 13054 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System
At the command prompt, enter n. For example:
Command (m for help): n
The following output is displayed:
Command action e extended p primary partition (1-4) p
At the Partition number prompt, enter 1. For example:
Partition number (1-4): 1
At the First cylinder (1-13054, default 1) prompt, press Enter to use the default value.
The following output is displayed:
Using default value 1
At the Last cylinder or +size or +sizeM or +sizeK (1-13054, default 13054) prompt, press Enter to use the default value.
The following is displayed:
Using default value 13054
At the command prompt, enter t. For example:
Command (m for help): t
The following is displayed:
Selected partition 1
At the Hex code (type L to list codes) prompt, enter 8e.
The following is displayed:
Changed system type of partition 1 to 8e (Linux LVM)
At the command prompt, enter p. For example:
The following is displayed:
Disk /dev/xvdb: 107.3 GB, 107374182400 bytes 255 heads, 63 sectors/track, 13054 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/xvdb1 1 13054 104856223+ 8e Linux LVM
At the command prompt, enter w. For example:
Command (m for help): w
The following is displayed:
The partition table has been altered! Calling ioctl() to re-read partition table. WARNING: Re-reading the partition table failed with error 16: Device or resource busy. The kernel still uses the old table. The new table will be used at the next reboot. Syncing disks.
Restart the virtual machine by performing the following actions:
Connect to Oracle VM Manager.
Select the Servers and VMs tab.
In the left pane, expand Server Pools, and then select the server pool containing the virtual machine.
Right-click the virtual machine, and select Restart.
To create the physical volume, enter the following command:
# pvcreate /dev/xvdb1
Output similar to the following is displayed:
Writing physical volume data to disk "/dev/xvdb1" Physical volume "/dev/xvdb1" successfully created
To extend the volume group VolGroup00 to the physical volume /dev/xvdb1, enter the following command:
# vgextend VolGroup00 /dev/xvdb1
Output similar to the following is displayed:
Volume group "VolGroup00" successfully extended
To extend the logical volume LogVol00, enter the following command:
# lvextend -l +100%FREE /dev/VolGroup00/LogVol00
Output similar to the following is displayed:
Extending logical volume LogVol00 to 105.22 GB Logical volume LogVol00 successfully resized
To resize the file system, enter the following command:
# resize2fs /dev/VolGroup00/LogVol00
Output similar to the following is displayed:
resize2fs 1.39 (29-May-2006) Filesystem at /dev/VolGroup00/LogVol00 is mounted on /; on-line resizing required Performing an on-line resize of /dev/VolGroup00/LogVol00 to 28481536 (4k) blocks. The filesystem on /dev/VolGroup00/LogVol00 is now 28481536 blocks long.
To verify the resized root partition, enter the following command:
# df -h
Output similar to the following is displayed:
Filesystem Size Used Avail Use% Mounted on/dev/mapper/VolGroup00-LogVol00 106G 2.9G 97G 3% //dev/xvda1 244M 35M 197M 15% /boottmpfs 50G 0 50G 0% /dev/shm/dev/mapper/VolGroup00-LogVol02 97M 5.6M 87M 7% /shared_agent_instance_home
Parent topic: Maintaining Virtual Machines