Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1513748
  • 博文数量: 230
  • 博客积分: 474
  • 博客等级: 下士
  • 技术积分: 1955
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-19 18:40
文章分类

全部博文(230)

文章存档

2020年(3)

2019年(3)

2018年(12)

2017年(13)

2016年(11)

2015年(55)

2014年(74)

2013年(39)

2012年(2)

2011年(18)

我的朋友
KVM

分类: LINUX

2012-08-23 14:35:53

Creating a disk image for the guest/usr/local/kvm/bin/qemu-img create -f qcow2 vdisk.img 10G


Installing a guest operating systemsudo /usr/local/kvm/bin/qemu-system-x86_64 -hda vdisk.img -cdrom /path/to/boot-media.iso \ -boot d -m 384.

If have Error 'Could not access KVM kernel module: No such file or directory failed to initialize KVM: No such file or directory 
No accelerator found! ', please exe modprobe kvm-intel or kvm-amd. And make sure you have vt/svm capable CPU AND bios that support it.

Running the newly-installed guestsudo /usr/local/kvm/bin/qemu-system-x86_64 vdisk.img -m 384

or a slightly more complicated example, where it is assumed that bridged networking is available on tap0; see ["Kernel-optimizations"] for some setup hints:

/usr/local/kvm/bin/qemu-system-x86_64 -hda xp-curr.img -m 512 -soundhw es1370 -no-acpi -snapshot -localtime -boot c -usb -usbdevice tablet -net nic,vlan=0,macaddr=00:00:10:52:37:48 -net tap,vlan=0,ifname=tap0,script=no

(kvm doesn't make a distinction between i386 and x86_64 so even in i386 you should use `qemu-system-x86_64`)

If you're on Debian Etch, substitute `kvm` for `qemu-system-x86_64` (thanks to fromport, soren and mael_). See also the entries under the label "Ubuntu" on the page. qemu-system-x86_64`

If you're on Fedora/RHEL/CentOS (and installed a kvm package and not built kvm yourself from source) then substitute qemu-kvm for qemu-system-x86_64

阅读(1392) | 评论(0) | 转发(0) |
0

上一篇:ubuntu频繁掉线

下一篇:Linux常用命令总结

给主人留下些什么吧!~~