Overview
Now that I have installed OVMS 3.1.1 on VICTORIA , I plan to use XEN directly instead of through OVMM. First, I have to set up the file system needed ( /OVS ) and populate it with the ISO image for OEL 7.
References
Procedure
Create Disk Partition
There is an unused space on /dev/sda that I plan to use as my XEN working area. I use all of this space as a single partition:
[root@victoria ~]# parted /dev/sda GNU Parted 2.1 Using /dev/sda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Model: ATA ST1000NM0011 (scsi) Disk /dev/sda: 1000GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 1049kB 525MB 524MB primary ext4 boot (parted) mkpart primary ext4 525M 1000G Warning: WARNING: the kernel failed to re-read the partition table on /dev/sda (Device or resource busy). As a result, it may not reflect all of your changes until after reboot. (parted) print Model: ATA ST1000NM0011 (scsi) Disk /dev/sda: 1000GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 1049kB 525MB 524MB primary ext4 boot 2 525MB 1000GB 1000GB primary (parted) quit
I do a
reboot
as suggested above.
Create OVS File System
Since the /OVS is already created, but not mounted anywhere, I set up the file system as follows:
[root@victoria ~]# mkfs -t ext4 /dev/sda2 mke2fs 1.41.12 (17-May-2010) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 61022208 inodes, 244062208 blocks 12203110 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=4294967296 7449 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 102400000, 214990848 Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 23 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.
Mount OVS File System
I used the
blkid
command to get the UUID for
/dev/sda2
disk partition because the modern method is to use UUID instead of device names for identifying disk partitions.
[root@victoria ~]# blkid /dev/sdb1: UUID="44a197aa-e11e-4e64-9f6d-035a73733ef2" TYPE="ext4" /dev/sdb2: UUID="87ba4a9b-57c2-4812-a1f8-e0758afd8741" TYPE="swap" /dev/sdb3: UUID="50fa64ca-f151-4fe3-b273-7606be4434e7" TYPE="ext4" /dev/sda1: UUID="44c1c8cd-4a92-464f-aafc-5c3bc0b0e6d7" TYPE="ext4" /dev/sda2: UUID="072278ef-eee2-4fb2-aa8c-742d688d5092" TYPE="ext4" /dev/mapper/OVM_SYS_REPO_PART_35000c50040064759: UUID="50fa64ca-f151-4fe3-b273-7606be4434e7" TYPE="ext4"
I update the /etc/fstab as follows:
[root@victoria ~]# cat >>/etc/fstab <<DONE > UUID=072278ef-eee2-4fb2-aa8c-742d688d5092 /OVS ext4 defaults 1 2 > DONE [root@victoria ~]# cat /etc/fstab # # /etc/fstab # Created by anaconda on Sun Mar 29 17:19:38 2015 # # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # UUID=44a197aa-e11e-4e64-9f6d-035a73733ef2 / ext4 defaults 1 1 UUID=44c1c8cd-4a92-464f-aafc-5c3bc0b0e6d7 /boot ext4 defaults 1 2 UUID=87ba4a9b-57c2-4812-a1f8-e0758afd8741 swap swap defaults 0 0 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 UUID=072278ef-eee2-4fb2-aa8c-742d688d5092 /OVS ext4 defaults 1 2
Make sure that the file system can be mounted correctly as follows:
[root@victoria ~]# mount -a [root@victoria ~]# df -hl Filesystem Size Used Avail Use% Mounted on /dev/sdb1 50G 1.2G 46G 3% / tmpfs 502M 0 502M 0% /dev/shm /dev/sda1 477M 47M 401M 11% /boot none 502M 40K 502M 1% /var/lib/xenstored /dev/sda2 917G 72M 870G 1% /OVS
Create Sub-directories
I created the standard OVS sub-directories as follows:
[root@victoria ~]# mkdir /OVS/running_pool /OVS/seed_pool /OVS/iso_pool
Copy in OEL 7 DVD Image
I copied V46135-01.iso (OEL 7) into /OVS/iso_pool .