sudo modprobe kvm-intel && sudo qemu-system-x86_64 -kernel /arch/x86_64/boot/bzImage -nographic -drive format=raw,file=~/buildroot/output/images/rootfs.ext4,if=virtio -append "root=/dev/vda console=ttyS0 nokaslr" -m 512M -accel kvm -cpu host -smp 1 -netdev user,id=nd0,hostfwd=tcp::8080-:80 -device virtio-net,netdev=nd0 -s
auto eth0Now, with these two changes, I see that my VM interfaces look like this
iface eth0 inet dhcp
# ifconfigI have a few questions about this setup:
eth0 Link encap:Ethernet HWaddr 52:54:00:12:34:56
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::fd5a:482c:3194:fa26/64 Scope:Link
inet6 addr: fec0::28e6:7439:6d58:6246/64 Scope:Site
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:29 errors:0 dropped:0 overruns:0 frame:0
TX packets:58 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4401 (4.2 KiB) TX bytes:6537 (6.3 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
1. You need to have some IP of the VM exposed out for connectivity.
2 & 3. Check for how the two locations are mounted.
RegardsPassion: https://sysplay.in (Playing with Systems)
--
You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inside_linux/CAHB2L%2BdrCx6VWHMB4ejX6Dp_rXoOxirfp5kbXWhyv4w5bUQUhg%40mail.gmail.com.