日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

qemu安装

發(fā)布時(shí)間:2023/12/20 编程问答 38 豆豆
生活随笔 收集整理的這篇文章主要介紹了 qemu安装 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

https://kaisawind.oschina.io/2019/11/26/2019-11-26-qemu/
https://bbs.huaweicloud.com/forum/thread-27096-1-1.html

linux

  • ubuntu安裝qemu
    sudo apt-get install qemu
    sudo apt-get install qemu-arm
    sudo apt-get install qemu
    sudo apt-get install qemu-system
    sudo apt-get install qemu-user

  • 修改/var/run/libvirt/目錄下面的libvirt-sock文件權(quán)限為777

  • sudo apt-get install qemu-efi

    windows

    https://blog.csdn.net/csrh131/article/details/119205155
    https://blog.csdn.net/qq_33037487/article/details/112472759
    https://blog.csdn.net/vah101/article/details/116732656
    https://blog.csdn.net/qq_33037487/article/details/112472759

    qemu-img.exe create -f qcow2 D:\6.VirtualMachine\CentOS7_aarch64\centos7-aarch64.qcow2 50G

    “D:\Program Files\qemu\qemu-system-aarch64.exe” ^
    -m 4096 -cpu cortex-a72 -smp 2,sockets=1,cores=2 -M virt ^
    -bios D:\6.VirtualMachine\CentOS7_aarch64\QEMU_EFI.fd ^
    -device VGA -device nec-usb-xhci -device usb-mouse -device usb-kbd ^
    -drive if=none,file=D:\6.VirtualMachine\CentOS7_aarch64\centos7-aarch64.qcow2,id=hd0 -device virtio-blk-device,drive=hd0 ^
    -drive if=none,file=D:\14.Downloads\CentOS-7-aarch64-Minimal-2009.iso,id=cdrom,media=cdrom ^
    -device virtio-scsi-device -device scsi-cd,drive=cdrom ^
    -net nic -net tap,ifname=tap0

    “D:\Program Files\qemu\qemu-system-aarch64.exe” ^
    -m 4096 -cpu cortex-a72 -smp 2,sockets=1,cores=2 -M virt ^
    -bios D:\6.VirtualMachine\CentOS7_aarch64\QEMU_EFI.fd ^
    -device VGA -device nec-usb-xhci -device usb-mouse -device usb-kbd ^
    -drive if=none,file=D:\6.VirtualMachine\CentOS7_aarch64\centos7-aarch64.qcow2,id=hd0 -device virtio-blk-device,drive=hd0 ^
    -device virtio-scsi-device ^
    -net nic -net tap,ifname=tap0

    qemu-system-aarch64.exe -m 2048 -cpu cortex-a72 -smp 2,cores=2,threads=1,sockets=1 -M virt -bios D:\qemu\bios\QEMU_EFI.fd -net nic,model=pcnet -device VGA -drive if=none,file=D:\qemu\iso\ubuntu-18.04.5-server-arm64.iso,id=cdrom,media=cdrom -device virtio-scsi-device -device scsi-cd,drive=cdrom -drive if=none,file=D:\qemu\vm\test\hdd1.img,id=hd0 -device virtio-blk-device,drive=hd0

    c:\qemu\qemu-system-aarch64.exe -m 2048 -cpu cortex-a72 -smp 2,cores=2,threads=1,sockets=1 -M virt -bios D:\qemu\bios\QEMU_EFI.fd -net nic,model=pcnet -device VGA -drive if=none,file=d:\download\ubuntu-18.04.2-server-arm64.iso,id=cdrom,media=cdrom -device virtio-scsi-device -device scsi-cd,drive=cdrom -drive if=none,file=D:\qemu\vm\test_kunpeng\hdd01.img,id=hd0 -device virtio-blk-device,drive=hd0

    qemu-system-aarch64 -m 4096 -cpu cortex-a57 -smp 2 -M virt -bios QEMU_EFI.fd -nographic -drive if=none,file=ubuntu-18.04.3-server-arm64.iso,id=cdrom,media=cdrom -device virtio-scsi-device -device scsi-cd,drive=cdrom -drive if=none,file=ubuntu.img,id=hd0 -device virtio-blk-device,drive=hd0

    qemu-system-aarch64 -m 4096 -cpu cortex-a57 -smp 2 -M virt -bios QEMU_EFI.fd -drive if=none,file=uniontechos-desktop-20-professional-1030_arm64.iso,id=cdrom,media=cdrom -device virtio-scsi-device -device scsi-cd,drive=cdrom -drive if=none,file=uos.img,id=hd0 -device virtio-blk-device,drive=hd0

    qemu-system-aarch64.exe -m 8192 -cpu cortex-a72 -smp 4 -M virt -bios QEMU_EFI.fd -nographic -drive if=none,file=e:\arm64-centos8\disk1.qcow2,id=hd0 -device virtio-blk-device,drive=hd0 -drive if=none,file=e:\CentOS-8.1.1911-aarch64-dvd1.iso,id=cdrom,media=cdrom -device virtio-scsi-device -device scsi-cd,drive=cdrom -net nic -net user,hostfwd=tcp::2222-:22

    qemu-system-aarch64.exe -m 2048 -cpu cortex-a72 -smp 2,cores=2,threads=1,sockets=1 -M virt -bios QEMU_EFI.fd -net nic,model=pcnet -device VGA -drive if=none,file=ubuntu-20.04.3-live-server-arm64.iso,id=cdrom,media=cdrom -device virtio-scsi-device -device scsi-cd,drive=cdrom -drive if=none,file=ubuntu.img,id=hd0 -device virtio-blk-device,drive=hd0

    能夠顯示,但無(wú)法操作鼠標(biāo)和鍵盤
    qemu-system-aarch64.exe
    -m 2048
    -cpu cortex-a72
    -smp 2,cores=2,threads=1,sockets=1
    -M virt
    -bios QEMU_EFI.fd
    -net nic,model=pcnet
    -device VGA
    -drive if=none,file=uniontechos-desktop-20-professional-1030_arm64.iso,id=cdrom,media=cdrom
    -device virtio-scsi-device
    -device scsi-cd,drive=cdrom
    -drive if=none,file=uos.img,id=hd0
    -device virtio-blk-device,drive=hd0

    其他鏈接

    參考資料:https://kaisawind.oschina.io/2019/11/26/2019-11-26-qemu/

    # create_ubuntu.bat qemu-img create ubuntu.img 50Gqemu-system-aarch64 ^ -m 2048 ^ -cpu cortex-a72 ^ -smp 2,cores=2,threads=1,sockets=1 -M virt ^ -bios QEMU_EFI.fd ^ -net nic,model=pcnet ^ -device VGA -device nec-usb-xhci -device usb-mouse -device usb-kbd ^ -drive if=none,file=ubuntu-20.04.3-live-server-arm64.iso,id=cdrom,media=cdrom ^ -device virtio-scsi-device ^ -device scsi-cd,drive=cdrom ^ -drive if=none,file=ubuntu.img,id=hd0 ^ -device virtio-blk-device,drive=hd0 # create.bat qemu-img create uos.img 100Gqemu-system-aarch64 ^ -m 2048 ^ -cpu cortex-a72 ^ -smp 2,cores=2,threads=1,sockets=1 -M virt ^ -bios QEMU_EFI.fd ^ -net nic,model=pcnet ^ -device VGA -device nec-usb-xhci -device usb-mouse -device usb-kbd ^ -drive if=none,file=uniontechos-desktop-20-professional-1030_arm64.iso,id=cdrom,media=cdrom ^ -device virtio-scsi-device ^ -device scsi-cd,drive=cdrom ^ -drive if=none,file=uos.img,id=hd0 ^ -device virtio-blk-device,drive=hd0 # create_uos.bat qemu-img create uos.img 100Gqemu-system-aarch64 ^ -m 2048 ^ -cpu cortex-a72 ^ -smp 2,cores=2,threads=1,sockets=1 -M virt ^ -bios QEMU_EFI.fd ^ -net nic,model=pcnet ^ -device VGA -device nec-usb-xhci -device usb-mouse -device usb-kbd ^ -drive if=none,file=uniontechos-desktop-20-professional-1030_arm64.iso,id=cdrom,media=cdrom ^ -device virtio-scsi-device ^ -device scsi-cd,drive=cdrom ^ -drive if=none,file=uos.img,id=hd0 ^ -device virtio-blk-device,drive=hd0

    總結(jié)

    以上是生活随笔為你收集整理的qemu安装的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

    如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。