在安裝過程遇到的問題:
起初采用官網推薦的virt-install工具,客戶端沒有用virt-manager或者virt-view一直無法進行操作系統安裝,於是改用,直接啟動虛擬機,便ok了。
1、環境准備
下載suse 11sp3 iso鏡像
http://www.filewatcher.com/m/SLES-11-SP3-DVD-x86_64-GM-DVD1.iso.3362783232-0.html
2、安裝步驟
- 創建一個30G的磁盤鏡像
[root@soft-firewall home]#qemu-img create -f qcow2 suse_11sp3.qcow2 30G
- 為該磁盤鏡像的增加可執行權限
-
[root@soft-firewall home]#chmod a+x suse_11sp3.qcow2
- 修改該磁盤鏡像的所屬組與所屬用戶
-
[root@soft-firewall home]#chown qemu:qemu suse_11sp3.qcow2
- 啟動虛擬機
-
[root@soft-firewall home]#/usr/libexec/qemu-kvm -name suse_11sp3 -m 2048 -cdrom SLES-11-SP3-DVD-x86_64-GM-DVD1.iso -drive file=suse_11sp3.qcow2,if=virtio -boot d -net nic -net user -nographic -vnc :1
- 通過vnc客戶端連進
接下去就是安裝suse的操作系統了
- 進入/etc/udev/rules.d
-
\rm 70-persistent-net.rules
- 關閉防火牆
-
/etc/init.d/SuSEfirewall2_setup stop /etc/init.d/SuSEfirewall2_init stop chkconfig SuSEfirewall2_setup off chkconfig SuSEfirewall2_init off
- 壓縮鏡像
qemu-img -c suse_11sp3
