ubuntu-kvm完成后,将xxx.qcow2格式的镜像拷贝到ubuntu-kvm这个虚拟机上面去。

1. 若是ubuntu server没有图形界面,可以先安装desktop,参考http://www.cnblogs.com/kex1n/p/5198480.html

安装完成后,参考http://www.howtogeek.com/117635/how-to-install-kvm-and-create-virtual-machines-on-ubuntu/  用xxx.qcow2进行create virtual machine。

(choose how would you like to install the operating system---import existing disk image)。

执行

$ sudo apt-get install virt-manager

安装virt-manager。

如果不用图形界面而用命令行在kvm虚拟机上创建virtual machine,参考

http://blog.allanglesit.com/2011/03/kvm-guests-using-virt-install-to-import-an-existing-disk-image/

https://help.ubuntu.com/community/KVM/CreateGuests

2.   此时启动virtual machine可能会报错,解决办法参考:http://ubuntuforums.org/showthread.php?t=1638708

具体步骤如下:

/etc/libvirt/qemu/youVmname.xml修改:

From
<devices>
<emulator>/usr/bin/kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/storage/vmimages/Windows7_x64-01/qcow2-60GB_HDD1.qcow2'/>
<target dev='hda' bus='ide'/>
</disk>
To
<devices>
<emulator>/usr/bin/kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/storage/vmimages/Windows7_x64-01/qcow2-60GB_HDD1.qcow2'/>
<target dev='hda' bus='ide'/>
</disk> 3.

# virsh

#connect qemu:///system

# define /etc/libvirt/qemu/newave.xml

# list --all

# start youVmname

# virt-manager

4. OK,剩下的就是配置virtual machine的网络了。

最新文章

  1. J a v a 的“多重继承”
  2. jquery插件 - 学习笔记 (插件参数及函数的调用)
  3. WebService处理大数据量数据
  4. Linux cscope命令
  5. Web 软件测试 Checklist 应用系列,第 1 部分: 数据输入
  6. 团队博客——Sprint计划会议1
  7. (转)mysql账号权限密码设置方法
  8. 软件工程课程作业(三)--四则运算3(C++)
  9. Leetcode-Construct Binary Tree from inorder and preorder travesal
  10. CSS hack——不同浏览器的CSS应对法
  11. poj 3181 Dollar Dayz
  12. AndroidTest工程的自定义gradle task
  13. Spring Cloud 之Eureka(一)
  14. 小程序2-基本架构讲解(一)WXML 模板
  15. CAS 策略已被 .NET Framework 弃用
  16. hashCode方法
  17. MyBatis -01- 初识 MyBatis + MyBatis 环境搭建
  18. 【Unity】UGUI的Text各种小问题
  19. 由SOAP说开去 - - 谈谈WebServices、RMI、RPC、SOA、REST、XML、JSON
  20. MySQL 通用查询日志和慢查询日志分析

热门文章

  1. .NET Core Linux 部署实践
  2. JavaScript里面的条件、循环语句以及异常处理
  3. Spring MVC表单标签
  4. Axios &amp; cookie
  5. Scala 基础(8)—— 占位符_和部分应用函数
  6. 【转】IDEA 2017破解 license server激活
  7. 7月10日day2总结
  8. Spring和ActiveMQ集成实现队列消息以及PUB/SUB模型
  9. centos 7 服务器网卡做bond
  10. [ CodeVS冲杯之路 ] P3038