configurando rede no sistema operacional convidado no KVMtool

0

Estou tentando executar o Ubuntu 16.04 no kvmTool. Eu estou usando o seguinte comando para executar a imagem do Ubuntu no guest:

sudo ./lkvm run -k ~/kvmtool/guest_linux_kernel/linux-4.13/arch/x86_64/boot/bzImage -m 448 -c 4 --network mode=user --disk ~/kvmtool/ubuntu_disk/ubuntuD.img -i ~/kvmtool/guest_linux_kernel/linux-4.13/initrd-4.13.0-41-generic.img  -p "root=/dev/vda1"'

Falha ao configurar o dispositivo de rede corretamente. Aqui está a saída de lkvm run: link

Informações de rede:

ifconfig -a

enp0s0    Link encap:Ethernet  HWaddr 02:15:15:15:15:15  
      inet addr:192.168.33.15  Bcast:192.168.33.255  Mask:255.255.255.0
      inet6 addr: fe80::47f3:7c5b:78c4:93cc/64 Scope:Link
      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
      RX packets:23 errors:0 dropped:0 overruns:0 frame:0
      TX packets:63 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000 
      RX bytes:3710 (3.7 KB)  TX bytes:7908 (7.9 KB)

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:206 errors:0 dropped:0 overruns:0 frame:0
      TX packets:206 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000 
      RX bytes:14940 (14.9 KB)  TX bytes:14940 (14.9 KB)

ip a

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
   valid_lft forever preferred_lft forever
inet6 ::1/128 scope host 
   valid_lft forever preferred_lft forever

2: enp0s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
link/ether 02:15:15:15:15:15 brd ff:ff:ff:ff:ff:ff
inet 192.168.33.15/24 brd 192.168.33.255 scope global dynamic enp0s0
   valid_lft 14363sec preferred_lft 14363sec
inet6 fe80::47f3:7c5b:78c4:93cc/64 scope link 
   valid_lft forever preferred_lft forever

sudo cat /etc/network/interfaces

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

A imagem do disco funciona bem quando carregada com o Qemu.

Como posso habilitar interfaces de rede do Ubuntu usando o kvmtool?

    
por Proy 17.05.2018 / 19:17

0 respostas