User-Profile-Image
hankin
  • 5
  • centos7
  • docker
  • mysql
  • PostgreSQL
  • git/gitlab
  • ELK
  • python
    • python-Tornado
    • python-django
  • redis
  • nginx
  • kvm
  • proxmox
  • mongo
  • kubernetes
  • prometheus
  • GlusterFs
  • nfs
  • freeswitch
  • httpd
  • shell脚本
  • linux
  • fastdfs
  • nextcloud
  • openssl
  • openvpn
  • rabbitmq
  • sqlite
  • svn
  • java
  • ubuntu
  • vue2
  • wordpress
  • php
  • IOT物联网
  • 项目
  • 故障处理
  • 树莓派
  • 博客存档
  • 未分类
  • 杂项
  • #1742(无标题)
  • 新视野
  • 分类
    • 项目
    • 树莓派
    • 杂项
    • 未分类
    • 新视野
    • 故障处理
    • 博客存档
    • wordpress
    • vue2
    • ubuntu
    • svn
    • sqlite
    • shell脚本
    • redis
    • rabbitmq
    • python-django
    • python
    • proxmox
    • prometheus
    • PostgreSQL
    • php
    • openvpn
    • openssl
    • nginx
    • nfs
    • nextcloud
    • mysql
    • mongo
    • linux
    • kvm
    • kubernetes
    • java
    • IOT物联网
    • httpd
    • GlusterFs
    • git/gitlab
    • freeswitch
    • fastdfs
    • ELK
    • docker
    • centos7
  • 页面
    • #1742(无标题)
  • 友链
      请到[后台->主题设置->友情链接]中设置。
Help?

Please contact us on our email for need any support

Support
    首页   ›   proxmox   ›   正文
proxmox

proxmox安装centos7-使用qcow2

2022-10-31 15:18:12
1058  0 0

proxmox安装centos7-使用qcow2

下载镜像文件
    使用wget下载
    wget https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud-2111.qcow2
    或在web界面下载

web页面创建虚拟机
    详情选项参考下图


不创建硬盘
注意:cpu选择host型,避免虚拟机内部程序不兼容默认的kvm型

创建cloud-lnit


目的是为了创建用户密码、配置dns、ip

导入下载的qcow2格式镜像
    shell下操作
    qm importdisk 101 ./CentOS-7-x86_64-GenericCloud-2111.qcow2  sas900 --format=qcow2
    说明:101 刚才创建的虚拟机id;sas900 存储名字 --format指定导入格式,此处可忽略

    导入成功会提示:
        Successfully imported disk as 'unused0:sas900:101/vm-101-disk-0.qcow2'
使用磁盘


成功导入镜像后,web控制台的硬件部分会显示出一个未使用的磁盘
按上图默认操作即可

修改启动项


将新添的盘设为首选项,或取消其他选项

启动
    web页面启动
    我这个启动过程很慢,要好几分钟。ios镜像装的启动不慢,还没具体研究原因。
登录设置
    如果需要使用公钥登录,关闭:
    vi /etc/ssh/sshd_config 注释 PubkeyAuthentication yes
                            并确保PasswordAuthentication为yes
    开启root远程登录:
    vi /etc/ssh/sshd_config 将PermitRootLogin的值改成yes

    然后:
    systemctl daemon-reload && systemctl restart sshd
备用
    ps -ef |grep "kvm -id 101"
    qm start
    qm stop
评论 (0)

点击这里取消回复。

欢迎您 游客  

Copyright © 2025 网站备案号 : 蜀ICP备2022017747号
smarty_hankin 主题. Designed by hankin
主页
页面
  • #1742(无标题)
博主
tang.show
tang.show 管理员
linux、centos、docker 、k8s、mysql等技术相关的总结文档
210 文章 2 评论 194447 浏览
测试
测试