ubuntu 16.04 使用virt-manager 安装win7 虚拟机
来源:互联网 发布:cs online mac 编辑:程序博客网 时间:2024/05/21 21:40
准备
自己找一个win7安装iso,大概4GB左右。
sudo apt install qemu virt-manager
sudo adduser $USER libvirtd
logout ##需要注销adduser才生效。
创建时不能改变路径,我们先手动做一个:
qemu-img create -f qcow2 win7.qcow2 70G
安装win7挂住:
Windows 7 Setup hangs at “Starting Windows”
It’s a (known) bug.Workaround: Change the display from ‘default’ to ‘cirrus’. You can find this setting under hardware > display.
Or, if you are creating the VM on the command line using virt-install, just add –video cirrus
建立网桥[2]:
主机桌面右上角网络->编辑->增加->桥接->增加->以太网->设备->选择具体的设备
vir-manager 客机使用桥接:
详情->NIC->网络源->指定共享设备名称->网桥名称
文件夹共享:
sudo apt install system-config-samba
sudo touch /etc/libuser.conf #规避system-config-samba不能启动的bug
sudo system-config-samba #配置unix-name和windows-name
至此基本可用了,下面是优化使用。
优化使用
全屏时显示模糊: virt-manager设置video qxl, display splice, win7里面装上[1]重启后生效, 并且需要把win7分辨率调成和主机一样,比如笔记本是1366x768(16:9)。
win7 cpu只显示2个: CPU拓扑需要改成slot 1 core 2 thread 4才能在win7里面显示4个
临时加上一个virtio storage设备,修改NIC为virtio,
在win7设备管理器里面更新驱动,使用光盘挂载iso[3]。
参考
[1] https://www.spice-space.org/download/windows/spice-guest-tools/spice-guest-tools-0.100.exe
[2]https://linuxconfig.org/simple-virtualization-with-ubuntu-16-04-and-kvm
[3]https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.126-2/virtio-win-0.1.126.iso
- ubuntu 16.04 使用virt-manager 安装win7 虚拟机
- Ubuntu下使用virt-manager创建虚拟机
- 利用virt-manager安装虚拟机
- virt-manager安装虚拟机无法使用键盘解决
- 使用virt-manager进行虚拟机实时迁移
- 使用virt-manager管理多台虚拟机
- Xen使用virt-manager创建虚拟机
- kvm 虚拟化概述及 virt-manager 安装虚拟机
- ubuntu使用virt 创建虚拟机参数代码
- 手动安装 virt-manager
- 手动安装 virt-manager
- Virt-manager虚拟机键盘错乱
- ubuntu下使用virt-install安装虚拟机并配置桥接网络
- 安装KVM监控virt-manager
- virt-manager安装xp.iso
- 使用qemu和virt-manager
- Ubuntu 16.04 下安装 win7 虚拟机
- virt-manager创建Xen虚拟机系统过程
- POJ 3426 Doors and... more doors 可能会
- 一大波蓝桥杯 BASIC-1~BASIC-6
- 策略模式学习1
- 设计模式六大原则
- 通过 Chrome 调试运行在 IOS-safari 上的页面
- ubuntu 16.04 使用virt-manager 安装win7 虚拟机
- QT打包
- HDU1258 Sum It Up (DFS)
- 系统架构相关文章
- 在mac上配置sublime text3时No such file or directory或者Operation not permitted
- codeforces 767C Garland 【dfs】
- javascript textarea的换行符
- python基础语法——循环(二)
- 【树莓派】添加rtl8192eu无线网卡驱动