一、部署环境和软件包准备

  • 1.1 环要求

龙芯3A4000

  • 1.2 软件包清单
qemu-kvm-ev-2.12.0-33.1.lns7.3.loongnix.mips64el
libvirt-4.5.0-23.lns7.3.loongnix.mips64el
virt-install-1.5.0-7.lns7.3.loongnix.noarch
tigervnc-1.3.1-11.fc21.loongson.1.mips64el

二、环境搭建–服务器

  • 2.1 软件包安装

因为loongnix的yum源中已经包上述软件,因此直接通过yum安装即可

yum install -y qemu-kvm-ev libvirt virt-install
  • 2.2 服务启动
systemctl start libvirtd && systemctl enable libvirtd
  • 2.3 本地镜像准备
wget http://ftp.loongnix.org/os/loongnix-server/1.7/isos/mips64el/loongnix-server-1.7.2003.iso
  • 2.4 虚拟机配置xml文件准备
[root@node001 zwl]# cat /loongnix_test.xml
<!--WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:virsh edit kvm-7
or other application using the libvirt API.
-->
<domain type="kvm">
<name>loongnix_test</name>
<memory unit="KiB">8388608</memory>
<currentMemory unit="KiB">8388608</currentMemory>
<vcpu placement="static">2</vcpu>
<os>
<type arch="mips64el" machine="loongson3a">hvm</type>
<loader readonly="yes" type="rom">/usr/share/qemu/ls3a_bios.bin</loader>
<boot dev="hd"/>
</os>
<features>
<acpi/>
<apic/>
</features>
<cpu mode="custom" match="exact" check="partial">
<model fallback="allow">Loongson-3A4000-COMP</model>
</cpu>
<clock offset="utc"/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/qemu-system-mips64el</emulator>
<disk type="file" device="disk">
<driver name="qemu" type="qcow2"/>
<source file="/home/zwl/loongnix_test.qcow2"/>
<target dev="vda" bus="virtio"/>
<address type="pci" domain="0x0000" bus="0x00" slot="0x06" function="0x0"/>
</disk><disk type="file" device="cdrom"> <source file="/home/zwl/loongnix-server-1.7.2003.iso"/> <target dev="hdc" bus="virtio"/>
</disk> <controller type="usb" index="0" model="qemu-xhci">
<address type="pci" domain="0x0000" bus="0x00" slot="0x04" function="0x0"/>
</controller>
<controller type="pci" index="0" model="pci-root"/>
<controller type="virtio-serial" index="0">
<address type="pci" domain="0x0000" bus="0x00" slot="0x05" function="0x0"/>
</controller>
<interface type="direct">
<source dev="enp5s0f3" mode="bridge"/>
<model type="virtio"/>
<address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x0"/>
</interface>
<serial type="pty">
<target port="0"/>
</serial>
<console type="pty">
<target type="serial" port="0"/>
</console>
<channel type="unix">
<target type="virtio" name="org.qemu.guest_agent.0"/>
<address type="virtio-serial" controller="0" bus="0" port="1"/>
</channel>
<channel type="spicevmc">
<target type="virtio" name="com.redhat.spice.0"/>
<address type="virtio-serial" controller="0" bus="0" port="2"/>
</channel>
<input type="tablet" bus="usb">
<address type="usb" bus="0" port="1"/>
</input>
<input type="keyboard" bus="usb">
<address type="usb" bus="0" port="2"/>
</input>
<graphics type="spice" autoport="yes">
<listen type="address"/>
</graphics>
<video>
<model type="qxl" ram="65536" vram="65536" vgamem="16384" heads="1" primary="yes"/>
<address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0"/>
</video>
<memballoon model="virtio">
<address type="pci" domain="0x0000" bus="0x00" slot="0x07" function="0x0"/>
</memballoon><graphics type="vnc" port="-1" keymap="en-us" listen="0.0.0.0"/></devices>
</domain>

三、环境搭建–具有图形界面的客户机

yum install -y tigervnc

四、在服务器中创建虚拟机

  • 3.1 生成硬盘镜像文件
[root@node001 zwl]# qemu-img create -f qcow2 loongnix_test.qcow2 30G
Formatting 'loongnix_test.qcow2', fmt=qcow2 size=32212254720 cluster_size=65536 lazy_refcounts=off refcount_bits=16
  • 3.2 导入虚拟机配置
[root@node001 zwl]# virsh define loongnix_test.xml
定义域 loongnix_test(从 loongnix_test.xml)
  • 3.3 启动虚拟机
[root@node001 zwl]# virsh start loongnix_test
域 loongnix_test 已开始
  • 3.4 查看当前虚拟机状态
[root@node001 zwl]# virsh listId    名称                         状态
----------------------------------------------------16    loongnix_test                  running
  • 3.5 显虚拟机端口信息
[root@node001 zwl]# virsh vncdisplay loongnix_test
:1

五、通过客户机vnc链接已经启动虚拟

在客户机执行vncviewer,调出vnc客户端

输入服务器ip及虚拟机对应的端口,点击connect即连接,如下

10.130.56.127:1

六、虚拟机安装

连接后虚拟机安装步与正常物理机安装步骤一致,不再单独介绍

龙芯3A4000服务器部署kvm虚拟机指导相关推荐

  1. 自动化部署kvm虚拟机_自动化虚拟助手

    自动化部署kvm虚拟机 The automated virtual assistant or commonly called personal assistants, are developed to ...

  2. vmware 上部署 kvm虚拟机

    vmware 上部署 kvm虚拟机 1.新建虚拟机,并确保打开了cpu里面的支持vm虚拟化的3个选项. 2.mkdir /data 3.qemu-img create -f qcow2 /data/y ...

  3. 【它来了】搭载龙芯3A4000的国产办公电脑-桌面型机箱来了~

    焦点回顾:2019年金融时报曾爆出中国规划在未来的3年内用国产电脑替换机关事业单位的国外电脑,为此定下一个个目标,计划2020年替换掉30%,2021替换50%,2022年替换剩下的20%,且预计将有 ...

  4. 龙芯3A4000处理器解读①

    龙芯3A4000处理器解读 关于3A4000的处理器结构简单做一下自己的相关分析,希望可能通过此次深入分析,更加了解处理器的结构. 文章目录 龙芯3A4000处理器解读 简介 3号(3A)硬件结构 简 ...

  5. 龙芯3A4000+龙芯3B4000处理器数据手册

    龙芯3A4000+龙芯3B4000是龙芯3A3000/3B3000 四核处理器的微结构升级版本,采用相同的28nm FD-SOI 工艺,封装引脚全新定义.龙芯3A4000/3B4000是一个配置为单节 ...

  6. 银河麒麟V10龙芯3A4000桌面操作系统安装qt后,无法自动配置编译器,需手动添加方法

    此现象出现在龙芯3A4000版本V10操作系统中,x86和arm架构中目前未发现 一.qt安装 sudo  apt  update && apt install  qt5-qmake ...

  7. 龙芯3A4000处理器解读 ②

    龙芯3A4000处理器解读 2 第一章简述了3A4000的芯片结构,并对照结构图举例了访问7A的通道,那么本章节主要梳理CPU如何获取到一条分配给到7A的地址如何通过窗口命中正确访问到有效数据. 文章 ...

  8. 2700分+!统信UOS+龙芯3A4000最新Unixbench跑分出炉

    近日,第三方测试机构对搭载统信UOS和龙芯3A4000的电脑进行Unixbench测试,测试基于龙芯3A4000处理器(4核心,主频1.8GHz).编译器GCC 7.3.1和统信桌面操作系统UOS(内 ...

  9. 龙芯3A4000处理器实测:28nm工艺不变,性能可提升100%以上

    龙芯是中科院下属的计算机所研发的自主产权国产处理器,现在已经由中科龙芯公司商业化,再过几天他们又要发布新一代龙芯处理器--龙芯3A4000系列了,这是在现有的龙芯3A3000系列上的改进版. 根据之前 ...

最新文章

  1. DCM、PLL、PMCD、MMCM的区别与联系?
  2. Spring Boot 的静态资源处理
  3. 产品经理,你们做产品最孤独的时刻是什么?
  4. 4.Maven概念模型,maven的生命周期,Maven坐标,依赖管理(依赖范围,依赖声明),仓库管理,私服概念
  5. 几个有用的Linux命令
  6. 研诺首款D类音频放大器延长便携应用中的电池寿命
  7. Direct交换器-编写消费者
  8. LT8920无线通讯程序
  9. 前端使用正则表达式获取地址栏URL参数的值并将需要的参数值展示在页面
  10. 南邮计算机学院答辩,南京邮电大学答辩PPT模板讲述.pptx
  11. Docker(二十九)k8s 创建动态存储,基于nfs 的storageclass
  12. 高德地图输入地址获取经纬度_不打开地图也能获取地址-利用百度地图API和Python实现...
  13. C++递归算法经典实例详解
  14. iOS 逆向编程(二)越狱入门知识
  15. 西瓜错时上市销售,提高经济效益的背后是技术支持!
  16. 护理和母乳喂养文胸的全球与中国市场2022-2028年:技术、参与者、趋势、市场规模及占有率研究报告
  17. Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 8.074 s <<< FAILURE - in com.xxx.X
  18. 渗透测试工具(一) CS
  19. Ubuntu Github基本使用方法
  20. mybatis中使用小于号<

热门文章

  1. 新手必看CSDN积分获取方法
  2. JQuery实现移动9宫格图片自由切换移动
  3. 安装 Jupyter 开发工具
  4. oracle中创建数据库用户,并授权
  5. Hadoop 入门指南
  6. 【演讲篇】——人生就像一场直播
  7. MyBatis Plus简介和入门案例
  8. uniapp分包使用easycom自动按需加载
  9. HFSS 3D Components模型创建与使用--a3dcomp模型使用
  10. 解决:‘npm’不是内部命令或外部命令,也不是可运行的程序。npm ERR! code ELIFECYCLE npm ERR! errno 1