search
Homephp教程php手册openstack qcow2 镜像文件制作

openstack qcow2 镜像文件制作

一: Linux 镜像文件生成

A. 桥接网络设备脚本
[root@app10-051 ~]# cat /etc/qemu-ifup
#!/bin/bash
# 桥接网络设备
switch=br0
if [ -n $1 ];then
ip link set $1 up
brctl addif ${switch} $1
exit 0
else
echo "no interface!"
exit 1
fi
创建qcow2文件
qemu-img create -f qcow2 centos_6.5.qcow2 20G

制作linux镜像
/usr/libexec/qemu-kvm -m 1024 -cdrom iso/CentOS-6.5-x86_64-minimal.iso -drive file=centos6.5-30G.qcow2,if=virtio -net nic,model=virtio -net tap,script=no -boot d -nographic -vnc :0

启动已制作的linux镜像
/usr/libexec/qemu-kvm -m 4096 -drive file=CentOS6.5-x86_64-30G.qcow2,if=virtio -net nic,model=virtio -net tap -nographic -vnc :0

二:制作windows镜像

/usr/libexec/qemu-kvm -m 2048 -cdrom iso/cn_windows_7_ultimate_x64_dvd_x15-66043.iso \
-drive file=virtio-win-0.1-74.iso,media=cdrom -drive file=win7.qcow2,if=virtio \
-net nic,model=e1000 -net tap,ifname=tap2,script=no -boot d -nographic -vnc :2





Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools