qemu linux镜像包,可直接使用

1、qemu的大略参数的大略使用方法
https://xuanxuanblingbling.github.io/ctf/tools/2020/04/16/qemu/

2、debian的qemu qcow2直接加载包
2.1)
https://people.debian.org/~aurel32/qemu/ 包含了amd64的wheezy和squeeze版本。
摘录其中一段:When run on an amd64 host with hardware virtualization, and when the KVM module
is loaded and accessible to the user, it is possible to use the -enable-kvm
option to run the guest faster. By default QEMU emulates a machine with 128MiB
of RAM. The -m option increases or decreases the size of the RAM. If you don't
want to start QEMU in graphic mode, you can use the -curses option.

2.2)
镜像库 参考:https://ccmp.clustertech.com/index.php/zh/qcow2-images-download-zh/
CCMP使用Qcow2格式镜像让用户创建不同操作系统(Windows或Linux)的虚拟机。

预建Linux镜像
以下为预备好的qcow2镜像供免费下载。

这些镜像都使用CCMP平台定制各自相应的来源档,例如操作系统安装ISO后定制或直接定制qcow2镜像。镜像的定制包括了:1)安装openssh-server包,允许使用虚拟机登入密码或SSH 钥匙登入虚拟机;2)设置首个网卡:名称为eth0,使用DHCP IP;3)从为openStack定制的qcow2镜像移除cloud-init包。

CentOS-6-x86_64-GenericCloud-1602.qcow2.xz
http://cloud.centos.org/centos/6/images/CentOS-6-x86_64-GenericCloud-1602.qcow2.xz 138M压缩包

CentOS 6.8
大小:267 MB,md5sum:298df80c9569fb6fb1124f330e9093b4
来源:http://cloud.centos.org/centos/6/images/CentOS-6-x86_64-GenericCloud-1608.qcow2
CentOS 7
大小:422 MB,md5sum:883f0c3286cb0e46b583db2333f6566a
来源:http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud-1608.qcow2
Debian 8.6
大小:873 MB, md5sum:0e3a64911fe7c726b5f2c3f408dee1bd
来源:http://cdimage.debian.org/cdimage/openstack/archive/8.6.2/debian-8.6.2-openstack-amd64.raw
Fedora 25
大小:361 MB, md5sum:007e82ed5ed4fe0723d12cfcb00ff243
来源:https://download.fedoraproject.org/pub/fedora/linux/releases/25/CloudImages/x86_64/images/Fedora-Cloud-Base-25-1.3.x86_64.raw.xz
openSUSE 13.2
大小:420 MB, md5sum:202380cdc6015d8e63609dd739595e4d
来源:http://download.opensuse.org/repositories/Cloud:/Images:/openSUSE_13.2/images/openSUSE-13.2-OpenStack-Guest.x86_64.qcow2
Ubuntu 14.04
大小:653 MB, md5sum:ba4919597bbd2b812ecdf544653f9b8e
来源:http://releases.ubuntu.com/14.04/ubuntu-14.04.5-server-amd64.iso
Ubuntu 16.04
大小:1.3 GB, md5sum:12016ae76d96e9dad0bd3e3b88a5d577
来源:http://releases.ubuntu.com/16.04/ubuntu-16.04.1-server-amd64.iso

其中关于qemu arm启动debian wheezy 提到可以通过-append添加kernel command line参数 (https://people.debian.org/~aurel32/qemu/armel/)

1、启动
qemu-system-arm -M versatilepb -kernel vmlinuz-3.2.0-4-versatile -initrd initrd.img-3.2.0-4-versatile -hda debian_wheezy_armel_desktop.qcow2 -append "root=/dev/sda1 console=ttyAMA0"
2、
以上涉及到kernel command line 参考 https://www.kernel.org/doc/html/v4.14/admin-guide/kernel-parameters.html

Linux kernel parameter command line设置 https://www.cnblogs.com/shengs/p/4608519.html
name[=value_1][,value_2]…[,value_10] 只能10个参数 name1 name2 之间是空格

内核设置函数接收也没又被设置成环境变量的参数都将留给init进程处理,比如”single”。

3、
ttyS0是x86和x86_64体系结构上第一个UART串行端口的设备。如果您的PC主板带有串行端口,则可以使用ttySn来连接调制解调器或串行控制台。
ttyUSB0是第一个USB串行转换器的设备。如果您有USB串行电缆,则可以使用a ttyUSBn连接到路由器的串行端口。
ttyAMA0是ARM体系结构上第一个串行端口的设备。如果您有一个带有串行控制台且运行Android或OpenELEC的基于ARM的电视盒,则可以使用ttyAMAn将控制台连接到它。

posted @ 2020-12-11 08:48  helloweifa  阅读(3782)  评论(0编辑  收藏  举报