yum install bluez*
蓝牙,bluetooth相关
yum install SDL
yum install libpng libgl libsdl libbluetoothsd
yum install esound-libs
yum install esound
缺esd
1 ls
2 gcc
3 exit
4 ls
5 cd test/
6 ls
7 qemu -hda disk.img -cdrom install-amd64-minimal-20130110.iso -boot d
8 yum install libsdl
9 yum install libsdl*
10 yum search SDL
11 yum install SDL.x86_64 SDL-devel.x86_64
12 yum remove SDL-static.x86_64
13 qemu -hda disk.img -cdrom install-amd64-minimal-20130110.iso -boot d
14 yum search SDL
15 yum install SDL
16 yum install SDL*
17 qemu -hda disk.img -cdrom install-amd64-minimal-20130110.iso -boot d
18 yum install libx11-dev
19 yum install libx11
20 yum install libX11
21 yum install libX11-dev
22 yum install libX11*
23 yum install libX11-dev
24 gcc
25 yum install gcc
26 history
27 ls
28 vim a.txt
29 ls
30 qemu-system-x86_64 -cdrom rhel-server-6.3-x86_64-dvd.iso -m 1024 -smp 2 -drive
31 cls
32 ls
33 cat a.txt
34 qemu-system-x86_64 -cdrom install-amd64-minimal-20130110.iso -m 1024 -smp 2 -drive file=f18,if=virtio -boot d -vnc :7
35 qemu-system-x86_64 -cdrom install-amd64-minimal-20130110.iso -m 1024 -smp 2 -drive file=disk.img,if=virtio -boot d -vnc :7
36 qemu-system-x86_64 -cdrom install-amd64-minimal-20130110.iso -m 256 -smp 2 -drive file=disk.img,if=virtio -boot d -vnc :7
37 vim a.txt
38 ls
39 history> history.txt
1 ls
2 pwd
3 df -h
4 freee
5 free
6 yum install qemu
7 qemu
8 yum update
9 yum install qemu
10 wget http://pkgs.repoforge.org/qemu/qemu-0.15.0-1.el6.rfx.x86_64.rpm
11 ls
12 wget http://pkgs.repoforge.org/qemu/qemu-img-0.15.0-1.el6.rfx.x86_64.rpm
13 rpm -ivh qemu-0.15.0-1.el6.rfx.x86_64.rpm
14 yum install qemu-img
15 yum install qemu
16 yum install qemu-kvm
17 qemu
18 qemu-kvm
19 cd /usr/share/qemu-kvm/
20 ls
21 cd
22 ls
23 rpm-ivh qemu-0.15.0-1.el6.rfx.x86_64.rpm
24 rpm -ivh qemu-0.15.0-1.el6.rfx.x86_64.rpm
25 yum install libpng libgl libsdl libbluetoothsd
26 yum install libpng libgl libsdl libbluetooth
27 rpm -ivh qemu-0.15.0-1.el6.rfx.x86_64.rpm
28 yum install libesd
29 qemu-kvm
30 qemu
31 yum install esd
32 yum install sdl
33 rpm -ivh qemu-0.15.0-1.el6.rfx.x86_64.rpm
34 yum install GL
35 yum search libGL
36 yum install mesa-libGL.x86_64 mesa-libGL-devel.x86_64
37 rpm -ivh qemu-0.15.0-1.el6.rfx.x86_64.rpm
38 yum search sdl
39 yum install SDL.x86_64 SDL-devel.x86_64 SDL-static.x86_64
40 rpm -ivh qemu-0.15.0-1.el6.rfx.x86_64.rpm
41 yum search libesd
42 yum search esd
43 yum install kdesdk.x86_64
44 rpm -ivh qemu-0.15.0-1.el6.rfx.x86_64.rpm
45 yum search esd
46 yum install kdesdk-devel.x86_64 kdesdk-libs.x86_64 kdesdk-utils.x86_64
47 rpm -ivh qemu-0.15.0-1.el6.rfx.x86_64.rpm
48 yum search bluetooth
49 yum install bluez*
50 rpm -ivh qemu-0.15.0-1.el6.rfx.x86_64.rpm
51 yum search bluetooth
52 yum install bluez.x86_64 bluez-libs.x86_64 bluez-libs-devel.x86_64
53 rpm -ivh qemu-0.15.0-1.el6.rfx.x86_64.rpm
54 yum install esound
55 rpm -ivh qemu-0.15.0-1.el6.rfx.x86_64.rpm
56 yum install esound-libs
57 rpm -ivh qemu-0.15.0-1.el6.rfx.x86_64.rpm
58 ls
59 qemu
60 qemu-img
61 pwd
62 ls
63 cd /usr/share/qemu
64 ls
65 cd
66 ls
67 mkdir test
68 ls
69 cd test/
70 ls
71 cd ..
72 ls
73 mkdir backup
74 mv qemu-0.15.0-1.el6.rfx.x86_64.rpm backup/
75 ls
76 rm qemu-img-0.15.0-1.el6.rfx.x86_64.rpm
77 ls
78 cd test/
79 ls
80 wget http://mirrors.sohu.com/gentoo/releases/amd64/current-iso/install-amd64-minimal-20130110.iso
81 pw
82 lpwd
83 pwd
84 ls
85 qemu-img create -f qcow disk.img 8G
86 ls
87 qemu -hda disk.img -cdrom install-amd64-minimal-20130110.iso -boot d
88 ls
89 yum install xorg-dev
90 yum install xorg
91 yum install libx11-dev
92 qemu -hda disk.img -cdrom install-amd64-minimal-20130110.iso -boot d
93 qemu-system-x86_64 -cdrom rhel-server-6.3-x86_64-dvd.iso -m 1024 -smp 2 -drive file=f18,if=virtio -boot d -vnc :7
94 vim a.txt
95 ps -ef|grep vnc
96 history >>history.txt
mkdir -p /data0/software/
cd /data0/software/
# 32位系统 centos 5.x
wget http://pkgs.repoforge.org/qemu/qemu-img-0.14.1-2.el5.rfx.i386.rpm
wget http://pkgs.repoforge.org/qemu/qemu-0.14.1-2.el5.rfx.i386.rpm
rpm -ivh qemu-img-0.14.1-2.el5.rfx.i386.rpm
rpm -ivh qemu-0.14.1-2.el5.rfx.i386.rpm
# 64位系统 centos 5.x
wget http://pkgs.repoforge.org/qemu/qemu-img-0.14.1-2.el5.rfx.x86_64.rpm
wget http://pkgs.repoforge.org/qemu/qemu-0.14.1-2.el5.rfx.x86_64.rpm
rpm -ivh qemu-img-0.14.1-2.el5.rfx.x86_64.rpm
rpm -ivh qemu-0.14.1-2.el5.rfx.x86_64.rpm
# 32位系统 centos 6.x
wget http://pkgs.repoforge.org/qemu/qemu-0.15.0-1.el6.rfx.i686.rpm
wget http://pkgs.repoforge.org/qemu/qemu-img-0.15.0-1.el6.rfx.i686.rpm
rpm -ivh qemu-0.15.0-1.el6.rfx.i686.rpm
rpm -ivh qemu-img-0.15.0-1.el6.rfx.i686.rpm
# 64位系统 centos 6.x
wget http://pkgs.repoforge.org/qemu/qemu-0.15.0-1.el6.rfx.x86_64.rpm
wget http://pkgs.repoforge.org/qemu/qemu-img-0.15.0-1.el6.rfx.x86_64.rpm
rpm -ivh qemu-0.15.0-1.el6.rfx.x86_64.rpm
rpm -ivh qemu-img-0.15.0-1.el6.rfx.x86_64.rpm
#安装完毕,qemu的bios的启动信息在 /usr/share/qemu下
#创建个虚拟机目录
mkdir /data0/software/win2003
cd /data0/software/win2003
#创建个10G硬盘镜像
qemu-img create disk.10G 10G
#假设win2003镜像位置在当前目录
#启动虚拟机的命令
#boot d 是从光驱启动 boot c 是硬盘
qemu -L /usr/share/qemu -m 512 -hda disk.10G -localtime -boot d -cdrom ./win2003.iso -localtime -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=no -net user
#如想修改VNC端口 参数是: -vnc localhost:2,to=4
# 就是从5902到5904本机。如果远程则 -vnc 123.123.123.123:1,to=4
# 未测试 -daemonize -usbdevice tablet
# 按 ctrl + alt 释放虚拟机中的鼠标
#网络桥虚拟网卡:
yum install tunctl
yum install bridge-utils
#rc.local启动脚本
iptables -t nat -A POSTROUTING -o eth0 -s 10.0.67.0/24 -j MASQUERADE
tunctl -t tap0
ifconfig tap0 10.0.67.1 netmask 255.255.255.0
#虚拟机里网关设置成 10.0.67.1 即可联网
___________________________________________________________
#以下为有问题后检查用
echo 1>/proc/sys/net/ipv4/ip_forward
查看 tun模块
lsmod | grep tun
modprobe tun
参考
https://blog.b999.net/post/99/