如果 Docker 和 QEMU 同時執行時,QEMU 內部透過 tap interface bridge 到 host network 的網路會出不去
這個問題的原因是 Docker 起來之後,會將 iptables 的 packet forward 預設變成 DROP
這時可以在 Docker 起來的時候將 bridge interface 加到 iptables 規則內即可,首先編輯 systemd docker service
Tag Archives: qemu
QEMU Network Problem When Run With Docker
Ubuntu 18.04 Change Mac Address on QEMU via Netplan
This is a quick note about how to modify mac address for qemu image with ubuntu 18.04 cloud image.
but I have not found a working way only change mac address in system
QEMU Run x86_64/AMD64 VM on ARM64/AARCH64
This is a work note for run x86_64/AM64 on ARM64/AARCH64 server .
Because they are different archeticture, so, run x86_64 on ARM server would be very slow.
and some functions might be different when run on different platform
Kdump in ubuntu 18.04 ARM64
kdump is very good tool to debug complex system like cloud data center, it can easy to save kernel status when crash.
Running kdump in ARM64 just like running in x86, but I met a strange problem on ARM64 platform.
The kernel version is HWE kernel, current version is 4.18.0-25, mihbt be encounter those problems
QEMU change default nat address configure file
In ubuntu, if install libvirt, it will bring up bridge interface virbr0 and configure the ip address 192.168.122.1
modify /etc/libvirt/qemu/networks/default.xml can change that
QEMU Share Directory with Host Without Networking
If Guest Support 9P and virtio.
Add this line to QEMU command
-virtfs local,path=/path/to/share,mount_tag=host0,security_model=passthrough,id=host0 |
and in guest os, edit /etc/fstab and add
host0 /wherever 9p trans=virtio,version=9p2000.L 0 0 |
ref.
https://superuser.com/questions/628169/how-to-share-a-directory-with-the-host-without-networking-in-qemu
aarch64/ARM64 virt-install 啟動方法
雖然 ubuntu 有好用的 uvttool-libvirt 可以管理 cloud image , 但是似乎在 aarch64/ARM64 的平台上會有問題,
參數傳進去的時候似乎都會叫起來 VGA (cirrus), 但是 QEMU aarch64 上不支援 VGA (至少我用的不支援)
替代方案就是用 Virt Manager
Read more »
近期留言