QEMU - Charles-Charmless/Charles-Charmless.github.io GitHub Wiki

sudo systemctl start libvirtd.socket
 965  sudo virsh net-list --all
 966  virsh -h
 967  sudo virsh net-list --all
 968  sudo virsh net-start default  sudo pacman -S dnsmasq

先创建存储系统的image qemu-img create -f raw image_file 4G raw,创建多少,占用多少 qemu-img create -f qcow2 image_file -o nocow=on 4G 使用多少,占用多少

qemu-system-x86_64 -M pc --enable-kvm -cpu host -m 8192 -smp cores=6,threads=12,sockets=1 ~/Project/System/ubuntu.img -nic user,hostfwd=tcp::60022-:22

ssh [email protected] -p 60022

逻辑卷 扩容

sudo lvextend -L +2G /dev/mapper/ubuntu--vg-ubuntu--lv
sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
qemu-system-aarch64 -machine mcimx7d-sabre -cpu cortex-a7 -accel tcg‘‘

qemu-system-arm -M mcimx7d-sabre -m 1024 -kernel /home/charles/Project/IMX7/NXP_LINUX/u-boot-imx7dsabresd_nand.imx -dtb /home/charles/Project/IMX7/NXP_LINUX/imx7d-sdb.dtb -drive file=./sd.img,if=sd,format=raw -append "root=/dev/mmcblk0p1 rw console=ttyAMA0,115200n8" -serial file:./txt -net nic,model=smc91c111 -net user -nographic

qemu-system-aarch64 -M xilinx-zynq-a9  -serial /dev/null -serial mon:stdio -display none -kernel ./uImage -dtb ./system.dtb -nographic -sd ./rootfsts.ext4 -append "root=/dev/mmcblk0 rw”
⚠️ **GitHub.com Fallback** ⚠️