Changes between Version 6 and Version 7 of KVM/install
- Timestamp:
- Sep 30, 2010, 2:12:40 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
KVM/install
v6 v7 26 26 * 只需一行指令即可安裝KVM及其所需相關工具 27 27 {{{ 28 sudo apt-get install kvm qemu-kvm bridge-utils libvirt-bin virtinst vtun28 $ sudo apt-get install kvm qemu-kvm bridge-utils libvirt-bin virtinst vtun 29 29 }}} 30 30 * 載入 KVM module for Intel Chip 31 31 {{{ 32 sudo modprobe kvm-intel32 $ sudo modprobe kvm-intel 33 33 }}} 34 34 * 載入 KVM module for AMD Chip 35 35 {{{ 36 sudo modprobe kvm-amd36 $ sudo modprobe kvm-amd 37 37 }}} 38 38 ---- … … 41 41 * 產生一個 10GB 的 QEMU disk image format 的檔案 42 42 {{{ 43 qemu-img create -f qcow2 xp.img 10G43 $ sudo qemu-img create -f qcow2 xp.img 10G 44 44 }}} 45 45 * 讀取光碟檔並開啟虛擬機器來安裝XP 46 46 {{{ 47 sudo qemu-system-x86_64 -cdrom /home/user/xp.iso -hda xp.img -boot d -m 1024 -localtime -net nic -net tap47 $ sudo qemu-system-x86_64 -cdrom /home/user/xp.iso -hda xp.img -boot d -m 1024 -localtime -net nic -net tap 48 48 }}} 49 49 * 開啟虛擬機器 50 50 {{{ 51 sudo qemu-system-x86_64 -hda xp.img -m 1024 -net nic -net tap51 $ sudo qemu-system-x86_64 -hda xp.img -m 1024 -net nic -net tap 52 52 }}} 53 53 ----