lost and found ( for me ? )

Fedora 12 Kernel-based Virtual Machine ( KVM )

Fedora12にしてから、KVMを使っていなかったので、guest os に WinXP Pro をインストールしてみた。

host: Fedora12
guest: WinXP Pro

[root@arizona ~]# cat /etc/fedora-release
Fedora release 12 (Constantine)

[root@arizona ~]# cat /proc/cpuinfo | grep "model name" | uniq
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 4800+

そろそろ、CPU買い換えようかな。。

[root@arizona ~]# rpm -qa | grep kvm
qemu-kvm-0.11.0-12.fc12.i686

Fedora 11 のときよりインストールが早くなった気がする。





Fedora 11 のときより、さくさくしているなー。( host の H/W の spec は同じ )

VMが保存されるディレクトリ

[root@arizona images]# pwd
/var/lib/libvirt/images

[root@arizona images]# file winxp-vm.img
winxp-vm.img: x86 boot sector, Microsoft Windows XP MBR, Serial 0xdc22dc22; partition 1: ID=0x7, active, starthead 1, startsector 63, 5233473 sectors, code offset 0xc0
[root@arizona images]#

次回はこのVMに paravirtual network drivers をインストールしてみよう。

[root@arizona ~]# ps aux | grep kvm | grep -v grep
qemu 3329 57.0 13.1 591184 541072 ? Sl 15:45 25:28 /usr/bin/qemu-kvm -S -M pc-0.11 -m 512 -smp 1 -name winxp-vm -uuid 9aab2fde-1d71-e411-de4c-4eda05e31889 -monitor unix:/var/lib/libvirt/qemu/winxp-vm.monitor,server,nowait -localtime -boot c -drive file=/var/lib/libvirt/images/winxp-vm.img,if=ide,index=0,boot=on,format=raw -drive file=/home/hattori/winxp_pro.iso,if=ide,media=cdrom,index=2 -net nic,macaddr=52:54:00:18:a6:18,vlan=0,name=nic.0 -net tap,fd=19,vlan=0,name=tap.0 -serial pty -parallel none -usb -usbdevice tablet -vnc 127.0.0.1:0 -vga cirrus -soundhw es1370

PID 3329 が開いているファイル。

[root@arizona ~]# lsof -p 3329
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
qemu-kvm 3329 qemu cwd DIR 8,3 4096 2 /
qemu-kvm 3329 qemu rtd DIR 8,3 4096 2 /
qemu-kvm 3329 qemu txt REG 8,3 2269852 6664266 /usr/bin/qemu-kvm
qemu-kvm 3329 qemu mem REG 8,3 40752 8241430 /lib/libcrypt-2.11.so
qemu-kvm 3329 qemu mem REG 8,3 56728 6664332 /usr/lib/libXi.so.6.1.0
qemu-kvm 3329 qemu mem REG 8,3 1026008 6663640 /usr/lib/libvorbisenc.so.2.0.6
qemu-kvm 3329 qemu mem REG 8,3 64080 8241442 /lib/libnss_files-2.11.so
qemu-kvm 3329 qemu mem REG 8,3 15452 6719555 /usr/lib/sasl2/libplain.so.2.0.23
qemu-kvm 3329 qemu mem REG 8,3 20872 6717829 /usr/lib/sasl2/libsasldb.so.2.0.23
qemu-kvm 3329 qemu mem REG 8,3 17596 6719804 /usr/lib/sasl2/libcrammd5.so.2.0.23
qemu-kvm 3329 qemu mem REG 8,3 1529644 8241954 /lib/libdb-4.7.so
qemu-kvm 3329 qemu mem REG 8,3 286412 8241936 /lib/libdbus-1.so.3.4.0
qemu-kvm 3329 qemu mem REG 8,3 30652 6664010 /usr/lib/libSM.so.6.0.0
qemu-kvm 3329 qemu mem REG 8,3 101380 6660910 /usr/lib/libsasl2.so.2.0.23
qemu-kvm 3329 qemu mem REG 8,3 281976 6661035 /usr/lib/libfreebl3.so
qemu-kvm 3329 qemu mem REG 8,3 431728 8208641 /usr/lib/libsndfile.so.1.0.20
qemu-kvm 3329 qemu mem REG 8,3 141780 8241942 /lib/libncurses.so.5.7
qemu-kvm 3329 qemu mem REG 8,3 964852 8241615 /lib/libasound.so.2.0.0
qemu-kvm 3329 qemu mem REG 8,3 15356 6719552 /usr/lib/sasl2/liblogin.so.2.0.23
qemu-kvm 3329 qemu mem REG 8,3 14912 6717826 /usr/lib/sasl2/libanonymous.so.2.0.23
qemu-kvm 3329 qemu mem REG 8,3 48032 6719807 /usr/lib/sasl2/libdigestmd5.so.2.0.23
qemu-kvm 3329 qemu mem REG 8,3 15756 8241929 /lib/libutil-2.11.so
qemu-kvm 3329 qemu mem REG 8,3 37080 8241953 /lib/libwrap.so.0.7.6
qemu-kvm 3329 qemu mem REG 8,3 16112 8241454 /lib/libuuid.so.1.3.0
qemu-kvm 3329 qemu mem REG 8,3 14820 6664041 /usr/lib/libpulse-simple.so.0.0.3
qemu-kvm 3329 qemu mem REG 8,3 70232 6664277 /usr/lib/libXext.so.6.4.0
qemu-kvm 3329 qemu mem REG 8,3 21944 8208631 /usr/lib/libXtst.so.6.1.0
qemu-kvm 3329 qemu mem REG 8,3 20960 8208656 /usr/lib/libasyncns.so.0.3.1
qemu-kvm 3329 qemu mem REG 8,3 179324 8241901 /lib/ld-2.11.so
qemu-kvm 3329 qemu mem REG 8,3 2402248 8241918 /lib/libc-2.11.so
qemu-kvm 3329 qemu mem REG 8,3 28364 8241924 /lib/libdl-2.11.so
qemu-kvm 3329 qemu mem REG 8,3 192880 8241919 /lib/libpthread-2.11.so
qemu-kvm 3329 qemu mem REG 8,3 54184 8241920 /lib/librt-2.11.so
qemu-kvm 3329 qemu mem REG 8,3 233056 8241930 /lib/libm-2.11.so
qemu-kvm 3329 qemu mem REG 8,3 76368 8241932 /lib/libz.so.1.2.3
qemu-kvm 3329 qemu mem REG 8,3 48996 6665959 /usr/lib/libpci.so.3.1.4
qemu-kvm 3329 qemu mem REG 8,3 252072 6663563 /usr/lib/libFLAC.so.8.2.0
qemu-kvm 3329 qemu mem REG 8,3 113292 8241926 /lib/libresolv-2.11.so
qemu-kvm 3329 qemu mem REG 8,3 118800 6663683 /usr/lib/libxcb.so.1.1.0
qemu-kvm 3329 qemu mem REG 8,3 10008 6665222 /usr/lib/libXau.so.6.0.0
qemu-kvm 3329 qemu mem REG 8,3 19464 8241935 /lib/libcap-ng.so.0.0.0
qemu-kvm 3329 qemu mem REG 8,3 290108 6664025 /usr/lib/libpulse.so.0.12.2
qemu-kvm 3329 qemu mem REG 8,3 338120 6661820 /usr/lib/libpulsecommon-0.9.21.so
qemu-kvm 3329 qemu mem REG 8,3 1274156 6663699 /usr/lib/libX11.so.6.3.0
qemu-kvm 3329 qemu mem REG 8,3 1588460 8208633 /usr/lib/libcrypto.so.1.0.0
qemu-kvm 3329 qemu mem REG 8,3 97344 6661562 /usr/lib/libICE.so.6.3.0
qemu-kvm 3329 qemu mem REG 8,3 13496 8241949 /lib/libgpg-error.so.0.4.0
qemu-kvm 3329 qemu mem REG 8,3 499184 8241950 /lib/libgcrypt.so.11.5.2
qemu-kvm 3329 qemu mem REG 8,3 99572 8241939 /lib/libtinfo.so.5.7
qemu-kvm 3329 qemu mem REG 8,3 158364 8241933 /lib/libnsl-2.11.so
qemu-kvm 3329 qemu mem REG 8,3 689616 8208638 /usr/lib/libgnutls.so.26.14.12
qemu-kvm 3329 qemu mem REG 8,3 69852 8208637 /usr/lib/libtasn1.so.3.1.6
qemu-kvm 3329 qemu mem REG 8,3 173472 8208648 /usr/lib/libvorbis.so.0.4.3
qemu-kvm 3329 qemu mem REG 8,3 23660 8208647 /usr/lib/libogg.so.0.6.0
qemu-kvm 3329 qemu mem REG 8,3 476368 8208697 /usr/lib/libSDL-1.2.so.0.11.2
qemu-kvm 3329 qemu mem REG 0,7 579 anon_inode:kvm-vcpu (stat: No such file or directory)
qemu-kvm 3329 qemu 0r CHR 1,3 0t0 2120 /dev/null
qemu-kvm 3329 qemu 1w REG 8,3 1249 9021455 /var/log/libvirt/qemu/winxp-vm.log
qemu-kvm 3329 qemu 2w REG 8,3 1249 9021455 /var/log/libvirt/qemu/winxp-vm.log
qemu-kvm 3329 qemu 3u CHR 10,232 0t0 6301 /dev/kvm
qemu-kvm 3329 qemu 4u 0000 0,7 0 579 anon_inode
qemu-kvm 3329 qemu 5r FIFO 0,6 0t0 238255 pipe
qemu-kvm 3329 qemu 6w FIFO 0,6 0t0 238255 pipe
qemu-kvm 3329 qemu 7u 0000 0,7 0 579 anon_inode
qemu-kvm 3329 qemu 8u REG 8,3 2684354560 9020480 /var/lib/libvirt/images/winxp-vm.img
qemu-kvm 3329 qemu 9u REG 8,3 611620864 10297369 /home/hattori/winxp_pro.iso
qemu-kvm 3329 qemu 10u unix 0xf3407400 0t0 238256 /var/lib/libvirt/qemu/winxp-vm.monitor
qemu-kvm 3329 qemu 11u CHR 5,2 0t0 2123 /dev/ptmx
qemu-kvm 3329 qemu 12u 0000 0,7 0 579 anon_inode
qemu-kvm 3329 qemu 13u IPv4 238262 0t0 TCP localhost:vnc-server (LISTEN)
qemu-kvm 3329 qemu 14u 0000 0,7 0 579 anon_inode
qemu-kvm 3329 qemu 15u 0000 0,7 0 579 anon_inode
qemu-kvm 3329 qemu 16u 0000 0,7 0 579 anon_inode
qemu-kvm 3329 qemu 17u unix 0xf3407e00 0t0 238264 /var/lib/libvirt/qemu/winxp-vm.monitor
qemu-kvm 3329 qemu 18u IPv4 238297 0t0 TCP localhost:vnc-server->localhost:46087 (ESTABLISHED)
qemu-kvm 3329 qemu 19u CHR 10,200 0t0 4261 /dev/net/tun
[root@arizona ~]#

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.