qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-discuss] No network in my Debian VM after installation


From: Fam Zheng
Subject: Re: [Qemu-discuss] No network in my Debian VM after installation
Date: Mon, 14 Nov 2016 09:55:42 +0800
User-agent: Mutt/1.7.1 (2016-10-04)

On Fri, 11/11 23:11, Berillions wrote:
> Hi,
> 
> When i use my Qemu's script to install Debian Sid in a VM, i use the
> NetInstall .iso.
> During the installation, the network works without problem because i
> download all packages need by the installation.
> 
> At the end, the VM reboot and after to login, "apt-get update" does not
> work, there isn't network.
> If i launch ifconfig, there isn't "etho" connection.

Can you see the virtio-net nic with ifconfig? If so, try start dhcp client
manually? It might be because of a change of IF name.

Fam

> 
> 
> I don't understand how i can have Internet during the installation and not
> after reboot too.
> 
> My qemu command :
> 
> qemu-system-x86_64 \
> > -enable-kvm \
> > -m 16000 \
> > -cpu host,kvm=off \
> > -smp sockets=1,cores=3,threads=2 \
> > -machine pc-q35-2.7,accel=kvm \
> > -soundhw hda \
> > -k fr \
> > -bios /usr/share/ovmf/OVMF.fd  \
> > -vga none \
> > -device qxl \
> > -device virtio-net-pci,netdev=user.0,mac=52:54:00:a0:66:43 \
> > -netdev user,id=user.0 \
> > -drive
> > file=/media/VM/Debian_Build_i386.img,if=none,id=drive-virtio-disk0,format=raw,cache=none
> > \
> > -device
> > virtio-blk-pci,scsi=off,addr=0x7,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1
> > \
> > -rtc base=localtime,driftfix=slew \
> > -usb \
> > -device usb-mouse \
> >
> 
> Thanks for your help
> Maxime



reply via email to

[Prev in Thread] Current Thread [Next in Thread]