読者です 読者をやめる 読者になる 読者になる

めもぶろぐ

お勉強したこと、趣味なんかを適当に書いてます。。。

KVM上にXenサーバ構築

xenサーバの構築がどうもうまくいかない、というのを何度かつづけたけどなぜかうまくいったのでメモ。

 

 

yum -y install centos-release-xen

yum -y update kernel --enablerepo=centos-virt-xen
yum -y install xen --enablerepo=centos-virt-xen
/bin/grub-bootxen.sh
reboot

 

これだけでした。

起動したらxl infoを実行してみましょう。

[root@xenhost7 ~]# xl info
host : xenhost7
release : 4.9.13-22.el7.x86_64
version : #1 SMP Sun Feb 26 22:15:59 UTC 2017
machine : x86_64
nr_cpus : 2
max_cpu_id : 1
nr_nodes : 1
cores_per_socket : 1
threads_per_core : 1
cpu_mhz : 1697
hw_caps : 078bf3ff:2193fbff:00000000:00000000:80a02001:00000000:000000e0:00000000
virt_caps :
total_memory : 2047
free_memory : 998
sharing_freed_memory : 0
sharing_used_memory : 0
outstanding_claims : 0
free_cpus : 0
xen_major : 4
xen_minor : 6
xen_extra : .3-8.el7
xen_version : 4.6.3-8.el7
xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p
xen_scheduler : credit
xen_pagesize : 4096
platform_params : virt_start=0xffff800000000000
xen_changeset : Wed Feb 15 02:12:22 2017 -0600 git:149e51c-dirty
xen_commandline : placeholder dom0_mem=1024M,max:1024M cpuinfo com1=115200,8n1 console=com1,tty loglvl=all guest_loglvl=all
cc_compiler : gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)
cc_compile_by : mockbuild
cc_compile_domain : centos.org
cc_compile_date : Tue Feb 28 14:33:09 UTC 2017
xend_config_format : 4

 

yum --enablerepo=centos-virt-xen -y install libvirt libvirt-daemon-xen virt-install

 

[root@xenhost7 ~]# systemctl enable libvirtd --now
[root@xenhost7 ~]# systemctl status libvirtd
● libvirtd.service - Virtualization daemon
Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2017-03-13 20:54:08 JST; 41s ago
Docs: man:libvirtd(8)
http://libvirt.org
Main PID: 1522 (libvirtd)
CGroup: /system.slice/libvirtd.service
tq1222 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt...
tq1223 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt...
mq1522 /usr/sbin/libvirtd

Mar 13 20:54:07 xenhost7 systemd[1]: Starting Virtualization daemon...
Mar 13 20:54:08 xenhost7 systemd[1]: Started Virtualization daemon.
Mar 13 20:54:11 xenhost7 dnsmasq[1222]: read /etc/hosts - 2 addresses
Mar 13 20:54:11 xenhost7 dnsmasq[1222]: read /var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses
Mar 13 20:54:11 xenhost7 dnsmasq-dhcp[1222]: read /var/lib/libvirt/dnsmasq/default.hostsfile
[root@xenhost7 ~]#

 

 

 

 

おわり

広告を非表示にする