Article 55JKP On Xen ; two vifs network interfaces are produced but no IP number is assigned and they are deleted after some minutes.

On Xen ; two vifs network interfaces are produced but no IP number is assigned and they are deleted after some minutes.

by
marietto2008
from LinuxQuestions.org on (#55JKP)
Hello.

I'm trying to boot Windows 10 (builder hvm) with the xen-hypervisor on Ubuntu 20.04. This is what I did in order to be able to do this :

1) before to create the vm,I run this script :

ip.sh

ifconfig xenbr0 192.168.200.12
ifconfig xenbr0 hw ether 22:61:34:00:00:01

these commands produce a network interface like this :

xenbr0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.200.12 netmask 255.255.255.0 broadcast 192.168.200.255
inet6 fe80::64ec:feff:fe7b:9a16 prefixlen 64 scopeid 0x20<link>
ether 22:61:34:00:00:02 txqueuelen 1000 (Ethernet)
RX packets 4 bytes 1700 (1.7 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 137 bytes 29385 (29.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

2) I run also this script :

#!/bin/bash

sudo /etc/init.d/xencommons start
sudo /etc/init.d/xendomains start
sudo /etc/init.d/xen-watchdog start
sudo /etc/init.d/xendriverdomain start

3) this is my xenwin.cfg conf file :

#kernel = "/usr/lib/xen-4.11/boot/hvmloader"
builder = 'hvm'
#vif = [ 'type=ioemu,bridge=xenbr0,ip=assigned-ip,mac=22:61:34:00:00:01' ]
vif = [ 'type=ioemu,bridge=xenbr0,ip=192.168.100.12,mac=22:61:34:00:00:01' ]
address = '192.168.100.12'
#address = 'assigned-ip'
netmask = '255.255.255.0'
memory = 8192
# shadow_memory = 64
name = "windows-10" # domain prefix name
# cdrom = 'file:/xen/Windows.iso' # name of iso image you created above
# disk = [ 'file:/xen/xenwin.img,hdc,w', 'file:/xen/Windows.iso,hdb:cdrom,r' ]
# disk = [ 'phy:/dev/sdb,ioemu:hdb,w' ]
disk = [ 'phy:/dev/sdb,ioemu:sdb,w' ]
#device_model = '/usr/lib/xen-default/bin/qemu-dm'

# boot on floppy (a), hard disk (c) or CD-ROM (d)
# default: hard disk, cd-rom, floppy
#### boot must be dc to install windows after that you change it to c or cd
# boot = "dc"
boot = "c"

# vnc = 1 # use VNC to insall and setup windows after that is done you can disable this
# vncconsole = 0
vncpasswd = 'mario'
# vncviewer = 1
# vncunused = 1
# vnclisten = 'Domain-0 IP'
vcpus = 6 # number of cpu's to assign
stdvga = 0
serial = 'pty'
usbdevice = 'tablet' # Required for USB mouse
on_poweroff = 'destroy'
on_reboot = 'destroy'
on_crash = 'destroy'

at this point,I create the vm with this command : xl create xenwin.cfg

two new network interfaces are produced,like these :

vif1.0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether fe:ff:ff:ff:ff:ff txqueuelen 32 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

vif1.0-emu: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::fcff:ffff:feff:ffff prefixlen 64 scopeid 0x20<link>
ether fe:ff:ff:ff:ff:ff txqueuelen 1000 (Ethernet)
RX packets 4 bytes 1756 (1.7 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 33 bytes 5325 (5.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

they don't have an IP number and they are deleted after some minutes. This is what I see between the processes :

root@ziomario-I9:/etc/xen# ps ax | grep avahi

1779 ? Ss 0:00 avahi-daemon: running [ziomario-I9.local]
1911 ? S 0:00 avahi-daemon: chroot helper
4227 ? S 0:00 avahi-autoipd: [xenbr0] sleeping
4228 ? S 0:00 avahi-autoipd: [xenbr0] callout dispatcher

I don't understand why they don't get any IP.latest?d=yIl2AUoC8zA latest?i=32mP8TK39QA:j9LAEB-iMRw:F7zBnMy latest?i=32mP8TK39QA:j9LAEB-iMRw:V_sGLiP latest?d=qj6IDK7rITs latest?i=32mP8TK39QA:j9LAEB-iMRw:gIN9vFw32mP8TK39QA
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments