移植笔记:使用qemu模拟器运行Kylin FT1500A.iso

来源:互联网 发布:软件开发项目经费预算 编辑:程序博客网 时间:2024/06/05 09:42

试验环境:CentOS6.5 64


1. 安装qemu

2. 运行qemu虚拟机

vm#qemu-img create -f qcow2 disk1.qcow 20G

vm#qemu-system-aarch64 -m 1024M -machine virt -cpu cortex-a57 -smp 4,sockets=2,threads=2 -hda disk1.cow -net nic -net user -monitor telnet:127.0.0.1:9876,server,no wait -cdrom Kylin-4.0-2-server-xxx.iso -bios qemu_efi.fd -L /usr/local/share/qemu -display vnc=:1 -vga std -serial stdio

3. 使用VNC链接CentOS 5901端口(注意关闭FW)

4. 进入Kylin系统的grub命令行,使用single模式启动

5. 进入Kylin single模式,使用passed修改root密码,然后切换到level 3

6. 修改locale

7. 配置ssh反射,可以远程联入虚拟机

vm#ssh -c arcfour128 -fCNR 8022:127.0.0.1:22 root@working.pc

8. 挂件nfs文件系统,使livecd系统可以具有网络磁盘

vm#mount -t nfs -o rw working.pc:/home/test/exports /mnt

对此,需要在working.pc上开启nfs服务,配置如下:

working.pc#cat /etc/exports

/home/test/exports *(insecure,rw,async,no_root_squash)

working.pc#service nfs start


备注:

1. 配置sshd_config,增加GatewayPorts clientspecified配置,可以让ssh反向代理到指定接口地址(而不是127.0.0.1),相应的命令如下,其中x.x.x.x为中继服务器working.pc的公网ip

vm#ssh -c arcfour128 -fCNR x.x.x.x:8022:127.0.0.1:22 root@working.pc



参考链接

http://www.clfs.org/view/CLFS-3.0.0-SYSTEMD/x86_64/index.html

How to Run Ubuntu 16.04 Aarch64 (64-bit ARM) Cloud Images on Your Intel/AMD Linux Computer with QEMU: http://www.cnx-software.com/tag/qemu/

http://blog.csdn.net/sdcxyz/article/details/22760151

http://mirror.hust.edu.cn/gnu/

http://blog.chinaunix.net/uid-8107907-id-2034159.html

http://www.ibm.com/developerworks/cn/linux/l-embcmpl/

http://blog.csdn.net/groundhappy/article/details/51052837

https://www.aurel32.net/info/debian_arm_qemu.php

在qemu使用虚拟串口:http://mathslinux.org/?p=210

qemu_efi.fd下载地址:http://snapshots.linaro.org/components/kernel/leg-virt-tianocore-edk2-upstream/latest/QEMU-AARCH64/RELEASE_GCC5/

0 0
原创粉丝点击