3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Red Hat Enterprise Linux 7 Release Candidate (RC) を KVMにインストール

Posted at

Red Hat Enterprise Linux 7 Release Candidate (RC) のISOダウンロード

  1. ISOイメージダウンロード
  2. ISOのマウント
shell
wget http://ftp.redhat.com/redhat/rhel/rc/7/Server/x86_64/iso/rhel-server-7.0-x86_64-dvd.iso
mount -o loop,ro rhel-server-7.0-x86_64-dvd.iso /var/www/html/iso

Red Hat Enterprise Linux 7 Release Candidate (RC) を KVM上にインストール

  1. QCOW2 形式の仮想ディスクを作成
  2. virt-installでインストール
shell
qemu-img create -f qcow2 /var/lib/libvirt/images/rhel7-rc.img 10GB
virt-install \
    --connect qemu:///system \
    --name=rhel7-rc \
    --ram=1024 \
    --vcpus=1 \
    --disk path=/var/lib/libvirt/images/rhel7-rc.img,format=qcow2 \
    --network bridge=br0 \
    --nographics \
    --accelerate \
    --hvm \
    --location=http://172.16.0.2/iso \
    --extra-args='console=tty0 console=ttyS0,115200n8 keymap=ja'

TEXT モードを選択

text_mode
Starting installer, one moment...
anaconda 19.31.77-1 for Red Hat Enterprise Linux 7.0 started.
================================================================================
================================================================================
VNC

Text mode provides a limited set of installation options. It does not offer cust
om partitioning for full control over the disk layout. Would you like to use VNC
 mode instead?

 1) Start VNC

 2) Use text mode

  Please make your choice from above ['q' to quit | 'c' to continue |
  'r' to refresh]:2

1) Timezone settings

text_mode
================================================================================
================================================================================
Installation

 1) [!] Timezone settings                 2) [!] Software selection
        (Timezone is not set.)                   (Processing...)
 3) [!] Installation source               4) [!] Install Destination
        (Processing...)                          (No disks selected)
 5) [x] Network settings                  6) [!] Set root password
        (Wired (ens3) connected)                 (Password is not set.)
 7) [!] Create user
        (No user will be created)
  Please make your choice from above ['q' to quit | 'b' to begin installation |
  'r' to refresh]:1
  1. Asia 選択
text_mode
================================================================================
================================================================================
Timezone settings
>
Available regions
 1)  Europe                 6)  Asia                  10)  Atlantic
 2)  US                     7)  Etc                   11)  Pacific
 3)  Australia              8)  Antarctica            12)  America
 4)  Arctic                 9)  Indian
 5)  Africa
Please select the timezone.
Use numbers or type names directly [b to region list, c to continue, q to quit]:6
  1. Tokyo 選択
text_mode
================================================================================
================================================================================
Timezone settings
>
Available timezones in region Asia
 1)  Aden                  28)  Hovd                  54)  Phnom_Penh
 2)  Almaty                29)  Irkutsk               55)  Pontianak
 3)  Amman                 30)  Jakarta               56)  Pyongyang
 4)  Anadyr                31)  Jayapura              57)  Qatar
 5)  Aqtau                 32)  Jerusalem             58)  Qyzylorda
 6)  Aqtobe                33)  Kabul                 59)  Rangoon
 7)  Ashgabat              34)  Kamchatka             60)  Riyadh
 8)  Baghdad               35)  Karachi               61)  Sakhalin
 9)  Bahrain               36)  Kashgar               62)  Samarkand
10)  Baku                  37)  Kathmandu             63)  Seoul
11)  Bangkok               38)  Khandyga              64)  Shanghai
12)  Beirut                39)  Kolkata               65)  Singapore
13)  Bishkek               40)  Krasnoyarsk           66)  Taipei
14)  Brunei                41)  Kuala_Lumpur          67)  Tashkent
15)  Choibalsan            42)  Kuching               68)  Tbilisi
16)  Chongqing             43)  Kuwait                69)  Tehran
17)  Colombo               44)  Macau                 70)  Thimphu
18)  Damascus              45)  Magadan               71)  Tokyo
19)  Dhaka                 46)  Makassar              72)  Ulaanbaatar
20)  Dili                  47)  Manila                73)  Urumqi
21)  Dubai                 48)  Muscat                74)  Ust-Nera
22)  Dushanbe              49)  Nicosia               75)  Vientiane
23)  Gaza                  50)  Novokuznetsk          76)  Vladivostok
25)  Hebron                52)  Omsk                  78)  Yekaterinburg
26)  Ho_Chi_Minh           53)  Oral                  79)  Yerevan
27)  Hong_Kong
Please select the timezone.
Use numbers or type names directly [b to region list, c to continue, q to quit]:71

2) Software selection

text_mode
================================================================================
================================================================================
Installation

 1) [x] Timezone settings                 2) [!] Software selection
        (Asia/Tokyo timezone)                    (Minimal Install)
 3) [x] Installation source               4) [!] Install Destination
        (http://172.16.0.2/iso)                 (No disks selected)
 5) [x] Network settings                  6) [!] Set root password
        (Wired (ens3) connected)                 (Password is not set.)
 7) [!] Create user
        (No user will be created)
  Please make your choice from above ['q' to quit | 'b' to begin installation |
  'r' to refresh]:2

Minimalのままでいいので'c' to continue 選択

text_mode
================================================================================
================================================================================
Software selection
>
Base environment
>
 1)  [x] Minimal Install                 5)  [ ] Virtualization Host
 2)  [ ] Infrastructure Server           6)  [ ] Server with GUI
 3)  [ ] File and Print Server
 4)  [ ] Basic Web Server
  Please make your choice from above ['q' to quit | 'c' to continue |
  'r' to refresh]:c

4) Install Destination

text_mode
================================================================================
================================================================================
Installation

 1) [x] Timezone settings                 2) [!] Software selection
        (Asia/Tokyo timezone)                    (Processing...)
 3) [!] Installation source               4) [!] Install Destination
        (http://172.16.0.2/iso)                 (No disks selected)
 5) [x] Network settings                  6) [!] Set root password
        (Wired (ens3) connected)                 (Password is not set.)
 7) [!] Create user
        (No user will be created)
  Please make your choice from above ['q' to quit | 'b' to begin installation |
  'r' to refresh]: 4

ATA QEMU HARDDISKのままでいいので 'c' to continue 選択

text_mode
================================================================================
================================================================================
Probing storage...
Install Destination
>
[x] 1) ATA QEMU HARDDISK: 10.24 GB (sda)
>
1 disk selected; 10.24 GB capacity; 10.24 GB free ...
>
  Please make your choice from above ['q' to quit | 'c' to continue |
  'r' to refresh]:c

すべての領域をつかうので 2) Use All Space 選択

text_mode
================================================================================
================================================================================
Autopartitioning Options
>
[ ] 1) Replace Existing Linux system(s)
>
[x] 2) Use All Space
>
[ ] 3) Use Free Space
>
Installation requires partitioning of your hard drive. Select what space to use
for the install target.
>
  Please make your choice from above ['q' to quit | 'c' to continue |
  'r' to refresh]:2

なんとなく 2) LVM 選択

text_mode
================================================================================
================================================================================
Partition Scheme Options
>
[ ] 1) BTRFS
>
[x] 2) LVM
>
[ ] 3) Standard Partition
>
Select a partition scheme configuration.
>
  Please make your choice from above ['q' to quit | 'c' to continue |
  'r' to refresh]:c

5) Network settings

text_mode
================================================================================
================================================================================
Installation

 1) [x] Timezone settings                 2) [x] Software selection
        (Asia/Tokyo timezone)                    (Minimal Install)
 3) [x] Installation source               4) [x] Install Destination
        (http://172.16.0.2/iso)                 (Automatic partitioning selecte
 5) [x] Network settings                         d)
        (Wired (ens3) connected)          6) [!] Set root password
 7) [!] Create user                              (Password is not set.)
        (No user will be created)
  Please make your choice from above ['q' to quit | 'b' to begin installation |
  'r' to refresh]:5
  1. Set hostname を選択
text_mode
================================================================================
================================================================================
Network settings
>
Wired (ens3) connected
 IPv4 Address: 172.16.0.14 Netmask: 255.255.255.0 Gateway: 172.16.0.1
 DNS: 172.16.0.1
 IPv6 Address: 2001:a450:8760:af00:5652:ff:fe70:fdaf/64
>
Hostname: localhost.localdomain
>
 1)  Set hostname
 2)  Configure device ens3
  Please make your choice from above ['q' to quit | 'c' to continue |
  'r' to refresh]:

ホスト名を登録

text_mode
================================================================================
================================================================================
Enter new value for 'Hostname' and press enter
rhel7-rc
  1. Configure device ens3 を選択
text_mode
================================================================================
================================================================================
Network settings
>
Wired (ens3) connected
 IPv4 Address: 172.16.0.14 Netmask: 255.255.255.0 Gateway: 172.16.0.1
 DNS: 172.16.0.1
 IPv6 Address: 2001:a450:8760:af00:5652:ff:fe70:fdaf/64
>
Hostname: rhel7-rc
>
 1)  Set hostname
 2)  Configure device ens3
  Please make your choice from above ['q' to quit | 'c' to continue |
  'r' to refresh]: 2

設定が終われば 'c' to continue 選択

text_mode
================================================================================
================================================================================
Device configuration
>
 1) IPv4 address or "dhcp" for DHCP
    dhcp
 2) IPv4 netmask
 3) IPv4 gateway
 4) IPv6 address or "auto" for automatic, "dhcp" for DHCP, "ignore" to turn off
    auto
 5) IPv6 default gateway
 6) Nameservers (comma separated)
 7) [x] Connect automatically after reboot
 8) [ ] Apply configuration in installer
Configuring device ens3.
>
  Please make your choice from above ['q' to quit | 'c' to continue |
  'r' to refresh]:

6) Set root password

text_mode
================================================================================
================================================================================
Installation

 1) [x] Timezone settings                 2) [x] Software selection
        (Asia/Tokyo timezone)                    (Minimal Install)
 3) [x] Installation source               4) [x] Install Destination
        (http://172.16.0.2/iso)                 (Automatic partitioning selecte
 5) [x] Network settings                         d)
        (Wired (ens3) connected)          6) [x] Set root password
 7) [x] Create user                              (Password is not set.)
        (Administrator admin will be cr
        eated)

rootパスワード登録

text_mode
================================================================================
================================================================================
Please select new root password. You will have to type it twice.
>
Password:
Password (confirm):

7) Create user

text_mode
================================================================================
================================================================================
Installation
>
 1) [x] Timezone settings                 2) [x] Software selection
        (Asia/Tokyo timezone)                    (Minimal Install)
 3) [x] Installation source               4) [x] Install Destination
        (http://172.16.0.2/iso)                 (Automatic partitioning selecte
 5) [x] Network settings                         d)
        (Wired (ens3) connected)          6) [!] Set root password
 7) [!] Create user                              (Password is not set.)
        (No user will be created)
  Please make your choice from above ['q' to quit | 'b' to begin installation |
  'r' to refresh]: 7
  1. Create user 選択
text_mode
================================================================================
================================================================================
Create user
>
 1) [ ] Create user
  Please make your choice from above ['q' to quit | 'c' to continue |
  'r' to refresh]: 1
>

変更前

text_mode
================================================================================
================================================================================
Create user
>
 1) [x] Create user
 2) Fullname
 3) Username
 4) [ ] Use password
 6) [ ] Administrator
 7) Groups
  Please make your choice from above ['q' to quit | 'c' to continue |
  'r' to refresh]:

変更後

text_mode
================================================================================
================================================================================
Create user
>
 1) [x] Create user
 2) Fullname
    admin
 3) Username
    admin
 4) [x] Use password
 5) Password
    Password set.
 6) [x] Administrator
 7) Groups
    wheel
  Please make your choice from above ['q' to quit | 'c' to continue |
  'r' to refresh]:

インストール開始

'b' to begin installation を選択

text_mode

================================================================================
================================================================================
Installation

 1) [x] Timezone settings                 2) [x] Software selection
        (Asia/Tokyo timezone)                    (Minimal Install)
 3) [x] Installation source               4) [x] Install Destination
        (http://172.16.0.2/iso)                 (Automatic partitioning selecte
 5) [x] Network settings                         d)
        (Wired (ens3) connected)          6) [x] Set root password
 7) [x] Create user                              (Password is set.)
        (Administrator admin will be cr
        eated)
  Please make your choice from above ['q' to quit | 'b' to begin installation |
  'r' to refresh]:b

インストールが開始される

================================================================================
================================================================================
Progress
Setting up the installation environment
.
Creating disklabel on /dev/sda
.
Creating xfs on /dev/sda1
.
Creating lvmpv on /dev/sda2
.
Creating swap on /dev/mapper/rhel-swap
.
Creating xfs on /dev/mapper/rhel-root
.
Starting package installation process
Preparing transaction from installation source
Installing libgcc (1/324)
(略)
Installing iwl3945-firmware (324/324)
Performing post-installation setup tasks
.
Installing bootloader
.
Configuring installed system
.
Writing network configuration
.
Creating users
.
Configuring addons
.
Generating initramfs
.
Running post-installation scripts
.
        Use of this product is subject to the license agreement found at /usr/share/redhat-release/
>
        Installation complete.  Press return to quit

Red Hat Enterprise Linux 7 Release Candidate (RC) を 起動

shell
virsh start rhel7-rc --console

バージョン確認

kvm_console
[root@rhel7-rc ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.0 (Maipo)
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?