LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 07-10-2020, 04:56 PM   #1
marietto2008
LQ Newbie
 
Registered: May 2020
Posts: 23

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


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:02

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.

Last edited by marietto2008; 07-11-2020 at 09:49 AM.
 
  


Reply

Tags
netwoking, ubuntu, xenserver, xenvirtualization



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
When They've Got Your Cellphone Number, They've Really Got Your Number frankbell General 4 08-17-2019 03:49 AM
3 network interfaces - only works from boot with two interfaces enabled linux_driver Linux - Networking 4 11-26-2014 05:42 PM
dvd has no URL assigned, so I can't play dvd's(no url assigned is the error message) Zych Linux - Newbie 3 08-01-2010 07:26 AM
LXer: Managing Xen With Xen-Tools, Xen-Shell, And Argo LXer Syndicated Linux News 0 10-21-2006 11:33 PM
difference between distro produced by group vs. produced by single person lostsoul Linux - General 2 04-08-2004 01:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 04:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration