首先确定ubuntu 上linux kernel支持tap网卡,
2 host上运行 sudo /sbin/ifconfig tap0 192.168.2.10
3 启动虚拟机
sudo qemu-system-arm -M versatilepb -kernel output/images/zImage -dtb output/images/versatile-pb.dtb -drive file=output/images/rootfs.ext2,if=scsi,format=raw -append "root=/dev/sda console=ttyAMA0,115200" -serial stdio -net nic,model=rtl8139 -net tap
4 启动后 虚拟机内输入
ip addr add 192.168.2.110/24 dev eth0
5 配置root密码
System configuration ---> [*] Enable root login with password │ │
│ │ () Root password
6 配置ssh server
Target packages ---> Networking applications ---> [*] openssh
阅读(2694) | 评论(0) | 转发(0) |